Admin API / Types

SendDirectMessagePayload

Union

The result of sendDirectMessage. UnauthorizedError: the caller is chat-banned or shadow-banned, with requiredRole null. ChatMessageRejectedError: the caller's account is too new, or the text failed the content or spam check. UserNotFoundError: the recipient is not a member of the store. Nothing was written for an error.

union SendDirectMessagePayload = ChatMessageNotFoundError | ChatMessageRejectedError | DirectMessageRateLimitedError | DirectMessageRecipientNotEligibleError | IdempotencyConflictError | IncomingMessagesDisabledError | OrderNotFoundError | OrderParticipantMismatchError | SendDirectMessageSuccess | UnauthorizedError | UserNotFoundError

Members

Returned by