Admin API / Types
SendDirectMessagePayload
UnionThe 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 | UserNotFoundErrorMembers
ChatMessageNotFoundErrorChatMessageRejectedErrorDirectMessageRateLimitedErrorDirectMessageRecipientNotEligibleErrorIdempotencyConflictErrorIncomingMessagesDisabledErrorOrderNotFoundErrorOrderParticipantMismatchErrorSendDirectMessageSuccessUnauthorizedErrorUserNotFoundError