mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
105 lines
5.0 KiB
TypeScript
105 lines
5.0 KiB
TypeScript
// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/discordeno/errors.ts
|
|
|
|
|
|
export enum Errors {
|
|
// Bot Role errors
|
|
BOTS_HIGHEST_ROLE_TOO_LOW = "BOTS_HIGHEST_ROLE_TOO_LOW",
|
|
// Channel Errors
|
|
CHANNEL_NOT_FOUND = "CHANNEL_NOT_FOUND",
|
|
CHANNEL_NOT_IN_GUILD = "CHANNEL_NOT_IN_GUILD",
|
|
CHANNEL_NOT_TEXT_BASED = "CHANNEL_NOT_TEXT_BASED",
|
|
CHANNEL_NOT_STAGE_VOICE = "CHANNEL_NOT_STAGE_VOICE",
|
|
MESSAGE_MAX_LENGTH = "MESSAGE_MAX_LENGTH",
|
|
RULES_CHANNEL_CANNOT_BE_DELETED = "RULES_CHANNEL_CANNOT_BE_DELETED",
|
|
UPDATES_CHANNEL_CANNOT_BE_DELETED = "UPDATES_CHANNEL_CANNOT_BE_DELETED",
|
|
INVALID_TOPIC_LENGTH = "INVALID_TOPIC_LENGTH",
|
|
// Guild Errors
|
|
GUILD_NOT_DISCOVERABLE = "GUILD_NOT_DISCOVERABLE",
|
|
GUILD_WIDGET_NOT_ENABLED = "GUILD_WIDGET_NOT_ENABLED",
|
|
GUILD_NOT_FOUND = "GUILD_NOT_FOUND",
|
|
MEMBER_NOT_FOUND = "MEMBER_NOT_FOUND",
|
|
MEMBER_NOT_IN_VOICE_CHANNEL = "MEMBER_NOT_IN_VOICE_CHANNEL",
|
|
MEMBER_SEARCH_LIMIT_TOO_HIGH = "MEMBER_SEARCH_LIMIT_TOO_HIGH",
|
|
MEMBER_SEARCH_LIMIT_TOO_LOW = "MEMBER_SEARCH_LIMIT_TOO_LOW",
|
|
PRUNE_MAX_DAYS = "PRUNE_MAX_DAYS",
|
|
ROLE_NOT_FOUND = "ROLE_NOT_FOUND",
|
|
// Thread errors
|
|
INVALID_THREAD_PARENT_CHANNEL_TYPE = "INVALID_THREAD_PARENT_CHANNEL_TYPE",
|
|
GUILD_NEWS_CHANNEL_ONLY_SUPPORT_PUBLIC_THREADS = "GUILD_NEWS_CHANNEL_ONLY_SUPPORT_PUBLIC_THREADS",
|
|
NOT_A_THREAD_CHANNEL = "NOT_A_THREAD_CHANNEL",
|
|
// Message Get Errors
|
|
INVALID_GET_MESSAGES_LIMIT = "INVALID_GET_MESSAGES_LIMIT",
|
|
// Message Delete Errors
|
|
DELETE_MESSAGES_MIN = "DELETE_MESSAGES_MIN",
|
|
PRUNE_MIN_DAYS = "PRUNE_MIN_DAYS",
|
|
// Interaction Errors
|
|
INVALID_SLASH_DESCRIPTION = "INVALID_SLASH_DESCRIPTION",
|
|
INVALID_SLASH_NAME = "INVALID_SLASH_NAME",
|
|
INVALID_SLASH_OPTIONS = "INVALID_SLASH_OPTIONS",
|
|
INVALID_SLASH_OPTIONS_CHOICES = "INVALID_SLASH_OPTIONS_CHOICES",
|
|
TOO_MANY_SLASH_OPTIONS = "TOO_MANY_SLASH_OPTIONS",
|
|
INVALID_SLASH_OPTION_CHOICE_NAME = "INVALID_SLASH_OPTION_CHOICE_NAME",
|
|
INVALID_SLASH_OPTIONS_CHOICE_VALUE_TYPE = "INVALID_SLASH_OPTIONS_CHOICE_VALUE_TYPE",
|
|
TOO_MANY_SLASH_OPTION_CHOICES = "TOO_MANY_SLASH_OPTION_CHOICES",
|
|
ONLY_STRING_OR_INTEGER_OPTIONS_CAN_HAVE_CHOICES = "ONLY_STRING_OR_INTEGER_OPTIONS_CAN_HAVE_CHOICES",
|
|
INVALID_SLASH_OPTION_NAME = "INVALID_SLASH_OPTION_NAME",
|
|
INVALID_SLASH_OPTION_DESCRIPTION = "INVALID_SLASH_OPTION_DESCRIPTION",
|
|
// Webhook Errors
|
|
INVALID_WEBHOOK_NAME = "INVALID_WEBHOOK_NAME",
|
|
INVALID_WEBHOOK_OPTIONS = "INVALID_WEBHOOK_OPTIONS",
|
|
// Permission Errors
|
|
MISSING_ADD_REACTIONS = "MISSING_ADD_REACTIONS",
|
|
MISSING_ADMINISTRATOR = "MISSING_ADMINISTRATOR",
|
|
MISSING_ATTACH_FILES = "MISSING_ATTACH_FILES",
|
|
MISSING_BAN_MEMBERS = "MISSING_BAN_MEMBERS",
|
|
MISSING_CHANGE_NICKNAME = "MISSING_CHANGE_NICKNAME",
|
|
MISSING_CONNECT = "MISSING_CONNECT",
|
|
MISSING_CREATE_INSTANT_INVITE = "MISSING_CREATE_INSTANT_INVITE",
|
|
MISSING_DEAFEN_MEMBERS = "MISSING_DEAFEN_MEMBERS",
|
|
MISSING_EMBED_LINKS = "MISSING_EMBED_LINKS",
|
|
MISSING_INTENT_GUILD_MEMBERS = "MISSING_INTENT_GUILD_MEMBERS",
|
|
MISSING_KICK_MEMBERS = "MISSING_KICK_MEMBERS",
|
|
MISSING_MANAGE_CHANNELS = "MISSING_MANAGE_CHANNELS",
|
|
MISSING_MANAGE_EMOJIS = "MISSING_MANAGE_EMOJIS",
|
|
MISSING_MANAGE_GUILD = "MISSING_MANAGE_GUILD",
|
|
MISSING_MANAGE_MESSAGES = "MISSING_MANAGE_MESSAGES",
|
|
MISSING_MANAGE_NICKNAMES = "MISSING_MANAGE_NICKNAMES",
|
|
MISSING_MANAGE_ROLES = "MISSING_MANAGE_ROLES",
|
|
MISSING_MANAGE_WEBHOOKS = "MISSING_MANAGE_WEBHOOKS",
|
|
MISSING_MENTION_EVERYONE = "MISSING_MENTION_EVERYONE",
|
|
MISSING_MOVE_MEMBERS = "MISSING_MOVE_MEMBERS",
|
|
MISSING_MUTE_MEMBERS = "MISSING_MUTE_MEMBERS",
|
|
MISSING_PRIORITY_SPEAKER = "MISSING_PRIORITY_SPEAKER",
|
|
MISSING_READ_MESSAGE_HISTORY = "MISSING_READ_MESSAGE_HISTORY",
|
|
MISSING_SEND_MESSAGES = "MISSING_SEND_MESSAGES",
|
|
MISSING_SEND_TTS_MESSAGES = "MISSING_SEND_TTS_MESSAGES",
|
|
MISSING_SPEAK = "MISSING_SPEAK",
|
|
MISSING_STREAM = "MISSING_STREAM",
|
|
MISSING_USE_VAD = "MISSING_USE_VAD",
|
|
MISSING_USE_EXTERNAL_EMOJIS = "MISSING_USE_EXTERNAL_EMOJIS",
|
|
MISSING_VIEW_AUDIT_LOG = "MISSING_VIEW_AUDIT_LOG",
|
|
MISSING_VIEW_CHANNEL = "MISSING_VIEW_CHANNEL",
|
|
MISSING_VIEW_GUILD_INSIGHTS = "MISSING_VIEW_GUILD_INSIGHTS",
|
|
// User Errors
|
|
NICKNAMES_MAX_LENGTH = "NICKNAMES_MAX_LENGTH",
|
|
USERNAME_INVALID_CHARACTER = "USERNAME_INVALID_CHARACTER",
|
|
USERNAME_INVALID_USERNAME = "USERNAME_INVALID_USERNAME",
|
|
USERNAME_MAX_LENGTH = "USERNAME_MAX_LENGTH",
|
|
USERNAME_MIN_LENGTH = "USERNAME_MIN_LENGTH",
|
|
NONCE_TOO_LONG = "NONCE_TOO_LONG",
|
|
INVITE_MAX_AGE_INVALID = "INVITE_MAX_AGE_INVALID",
|
|
INVITE_MAX_USES_INVALID = "INVITE_MAX_USES_INVALID",
|
|
// API Errors
|
|
RATE_LIMIT_RETRY_MAXED = "RATE_LIMIT_RETRY_MAXED",
|
|
REQUEST_CLIENT_ERROR = "REQUEST_CLIENT_ERROR",
|
|
REQUEST_SERVER_ERROR = "REQUEST_SERVER_ERROR",
|
|
REQUEST_UNKNOWN_ERROR = "REQUEST_UNKNOWN_ERROR",
|
|
// Component Errors
|
|
TOO_MANY_COMPONENTS = "TOO_MANY_COMPONENTS",
|
|
TOO_MANY_ACTION_ROWS = "TOO_MANY_ACTION_ROWS",
|
|
LINK_BUTTON_CANNOT_HAVE_CUSTOM_ID = "LINK_BUTTON_CANNOT_HAVE_CUSTOM_ID",
|
|
COMPONENT_LABEL_TOO_BIG = "COMPONENT_LABEL_TOO_BIG",
|
|
COMPONENT_CUSTOM_ID_TOO_BIG = "COMPONENT_CUSTOM_ID_TOO_BIG",
|
|
BUTTON_REQUIRES_CUSTOM_ID = "BUTTON_REQUIRES_CUSTOM_ID",
|
|
}
|