diff --git a/docs/errors.mdx b/docs/errors.mdx index 7319912..eaee8a9 100644 --- a/docs/errors.mdx +++ b/docs/errors.mdx @@ -29,6 +29,7 @@ import { DiscordInlineCode } from '@skyra/discord-components-react'; | 17 | SUGGESTION_RESOLUTION_ERROR | [click](#suggestion-resolution-error) | | 18 | MISSING_SEND_PERMISSIONS_IN_SUGGESTION_CHANNEL | [click](#missing-send-permissions-in-suggestions-channel) | | 19 | MISSING_THREAD_CREATE_PERMISSIONS | [click](#missing-thread-create-permissions) | +| 20 | QUEUE_IMBALANCE | [click](#queue-imbalance) | ## Error Information @@ -225,4 +226,18 @@ This error is thrown when the bot cannot create threads in your suggestions chan Alternatively, ask your administrator to disable automatic thread creation using /config thread disable } - code={19} /> \ No newline at end of file + code={19} /> + +### Queue Imbalance + +This error is thrown when you attempt to use a suggestion in a queue which has already been used +in a separate queue. + + + This suggestion has already been handled in another queue. + + } + code={20} /> \ No newline at end of file diff --git a/src/constants.ts b/src/constants.ts index f41bf0a..9130320 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -26,7 +26,8 @@ export enum ErrorCode { MISSING_TRANSLATION = 16, SUGGESTION_RESOLUTION_ERROR = 17, MISSING_SEND_PERMISSIONS_IN_SUGGESTION_CHANNEL = 18, - MISSING_THREAD_CREATE_PERMISSIONS = 19 + MISSING_THREAD_CREATE_PERMISSIONS = 19, + QUEUE_IMBALANCE = 20 } export type EmbedProps = {