feat(Constants): Update more Discord API Error
This commit is contained in:
parent
71e91d3761
commit
6b698183f9
@ -1148,15 +1148,21 @@ exports.APIErrors = {
|
||||
UNKNOWN_GUILD_SCHEDULED_EVENT_USER: 10071,
|
||||
BOT_PROHIBITED_ENDPOINT: 20001,
|
||||
BOT_ONLY_ENDPOINT: 20002,
|
||||
RPC_PROXY_DISALLOWED: 20003,
|
||||
CANNOT_SEND_EXPLICIT_CONTENT: 20009,
|
||||
ACCOUNT_SCHEDULED_FOR_DELETION: 20011,
|
||||
NOT_AUTHORIZED: 20012,
|
||||
ACCOUNT_DISABLED: 20013,
|
||||
SLOWMODE_RATE_LIMIT: 20016,
|
||||
ACCOUNT_OWNER_ONLY: 20018,
|
||||
ANNOUNCEMENT_EDIT_LIMIT_EXCEEDED: 20022,
|
||||
UNDER_MINIMUM_AGE: 20024,
|
||||
QUARANTINED: 20026,
|
||||
CHANNEL_HIT_WRITE_RATELIMIT: 20028,
|
||||
SERVER_HIT_WRITE_RATELIMIT: 20029,
|
||||
CONTENT_NOT_ALLOWED: 20031,
|
||||
GUILD_PREMIUM_LEVEL_TOO_LOW: 20035,
|
||||
VANITY_URL_REQUIRED_FOR_PUBLISHED_GUILDS: 20040,
|
||||
MAXIMUM_GUILDS: 30001,
|
||||
MAXIMUM_FRIENDS: 30002,
|
||||
MAXIMUM_PINS: 30003,
|
||||
@ -1171,6 +1177,7 @@ exports.APIErrors = {
|
||||
MAXIMUM_INVITES: 30016,
|
||||
MAXIMUM_ANIMATED_EMOJIS: 30018,
|
||||
MAXIMUM_SERVER_MEMBERS: 30019,
|
||||
NOT_ENOUGH_GUILD_MEMBERS: 30029,
|
||||
MAXIMUM_NUMBER_OF_SERVER_CATEGORIES: 30030,
|
||||
GUILD_ALREADY_HAS_TEMPLATE: 30031,
|
||||
MAXIMUM_THREAD_PARTICIPANTS: 30033,
|
||||
@ -1183,11 +1190,15 @@ exports.APIErrors = {
|
||||
UNAUTHORIZED: 40001,
|
||||
ACCOUNT_VERIFICATION_REQUIRED: 40002,
|
||||
DIRECT_MESSAGES_TOO_FAST: 40003,
|
||||
SEND_MESSAGE_TEMPORARILY_DISABLED: 40004,
|
||||
REQUEST_ENTITY_TOO_LARGE: 40005,
|
||||
FEATURE_TEMPORARILY_DISABLED: 40006,
|
||||
USER_BANNED: 40007,
|
||||
CONNECTION_REVOKED: 40012,
|
||||
DELETE_ACCOUNT_TRANSFER_TEAM_OWNERSHIP: 40028,
|
||||
TARGET_USER_NOT_CONNECTED_TO_VOICE: 40032,
|
||||
ALREADY_CROSSPOSTED: 40033,
|
||||
TAG_REQUIRED: 40067,
|
||||
MISSING_ACCESS: 50001,
|
||||
INVALID_ACCOUNT_TYPE: 50002,
|
||||
CANNOT_EXECUTE_ON_DM: 50003,
|
||||
@ -1205,9 +1216,12 @@ exports.APIErrors = {
|
||||
NOTE_TOO_LONG: 50015,
|
||||
INVALID_BULK_DELETE_QUANTITY: 50016,
|
||||
INVALID_MFA_LEVEL: 50017,
|
||||
INVALID_PASSWORD: 50018,
|
||||
CANNOT_PIN_MESSAGE_IN_OTHER_CHANNEL: 50019,
|
||||
INVALID_OR_TAKEN_INVITE_CODE: 50020,
|
||||
CANNOT_EXECUTE_ON_SYSTEM_MESSAGE: 50021,
|
||||
INVALID_PHONE_NUMBER: 50022,
|
||||
INVALID_CLIENT_ID: 50023,
|
||||
CANNOT_EXECUTE_ON_CHANNEL_TYPE: 50024,
|
||||
INVALID_OAUTH_TOKEN: 50025,
|
||||
MISSING_OAUTH_SCOPE: 50026,
|
||||
@ -1221,6 +1235,7 @@ exports.APIErrors = {
|
||||
FILE_UPLOADED_EXCEEDS_MAXIMUM_SIZE: 50045,
|
||||
INVALID_FILE_UPLOADED: 50046,
|
||||
GIFT_CODE_CLAIMED: 50050,
|
||||
INVALID_GIFT_REDEMPTION_OWNED: 50051,
|
||||
CANNOT_SELF_REDEEM_GIFT: 50054,
|
||||
INVALID_GUILD: 50055,
|
||||
INVALID_MESSAGE_TYPE: 50068,
|
||||
@ -1231,13 +1246,39 @@ exports.APIErrors = {
|
||||
INVALID_THREAD_NOTIFICATION_SETTINGS: 50084,
|
||||
PARAMETER_EARLIER_THAN_CREATION: 50085,
|
||||
GUILD_NOT_AVAILABLE_IN_LOCATION: 50095,
|
||||
INVALID_CANNOT_FRIEND_SELF: 50096,
|
||||
GUILD_MONETIZATION_REQUIRED: 50097,
|
||||
INSUFFICIENT_BOOSTS: 50101,
|
||||
INVALID_USER_SETTINGS_DATA: 50105,
|
||||
INVALID_ACTIVITY_LAUNCH_NO_ACCESS: 50106,
|
||||
INVALID_ACTIVITY_LAUNCH_PREMIUM_TIER: 50107,
|
||||
INVALID_ACTIVITY_LAUNCH_CONCURRENT_ACTIVITIES: 50108,
|
||||
INVALID_JSON: 50109,
|
||||
INVALID_FILE_ASSET_SIZE_RESIZE_GIF: 50138,
|
||||
TWO_FACTOR_ENABLED: 60001,
|
||||
TWO_FACTOR_DISABLED: 60002,
|
||||
TWO_FACTOR_REQUIRED: 60003,
|
||||
TWO_FACTOR_UNVERIFIED: 60004,
|
||||
TWO_FACTOR_INVALID_SECRET: 60005,
|
||||
TWO_FACTOR_INVALID_TICKET: 60006,
|
||||
INVALID_TWO_FACTOR_CODE: 60008,
|
||||
TWO_FACTOR_INVALID_SESSION: 60009,
|
||||
PHONE_NUMBER_UNABLE_TO_SEND: 70003,
|
||||
PHONE_VERIFICATION_REQUIRED: 70007,
|
||||
RELATIONSHIP_INCOMING_DISABLED: 80000,
|
||||
RELATIONSHIP_INCOMING_BLOCKED: 80001,
|
||||
RELATIONSHIP_INVALUD_USER_BOT: 80002,
|
||||
RELATIONSHIP_INVALID_SELF: 80003,
|
||||
NO_USERS_WITH_DISCORDTAG_EXIST: 80004,
|
||||
RELATIONSHIP_ALREADY_FRIENDS: 80007,
|
||||
REACTION_BLOCKED: 90001,
|
||||
INVALID_GIFT_REDEMPTION_SUBSCRIPTION_MANAGED: 100021,
|
||||
INVALID_GIFT_REDEMPTION_SUBSCRIPTION_INCOMPATIBLE: 100023,
|
||||
INVALID_GIFT_REDEMPTION_INVOICE_OPEN: 100024,
|
||||
BILLING_NON_REFUNDABLE_PAYMENT_SOURCE: 100060,
|
||||
LISTING_ALREADY_JOINED: 120000,
|
||||
LISTING_TOO_MANY_MEMBERS: 120001,
|
||||
LISTING_JOIN_BLOCKED: 120002,
|
||||
RESOURCE_OVERLOADED: 130000,
|
||||
STAGE_ALREADY_OPEN: 150006,
|
||||
CANNOT_REPLY_WITHOUT_READ_MESSAGE_HISTORY_PERMISSION: 160002,
|
||||
@ -1252,8 +1293,12 @@ exports.APIErrors = {
|
||||
LOTTIE_ANIMATION_MAXIMUM_DIMENSIONS_EXCEEDED: 170005,
|
||||
STICKER_FRAME_RATE_IS_TOO_SMALL_OR_TOO_LARGE: 170006,
|
||||
STICKER_ANIMATION_DURATION_EXCEEDS_MAXIMUM_OF_5_SECONDS: 170007,
|
||||
POGGERMODE_TEMPORARILY_DISABLED: 170008,
|
||||
CANNOT_UPDATE_A_FINISHED_EVENT: 180000,
|
||||
FAILED_TO_CREATE_STAGE_NEEDED_FOR_STAGE_EVENT: 180002,
|
||||
AUTOMOD_MESSAGE_BLOCKED: 200000,
|
||||
AUTOMOD_TITLE_BLOCKED: 200001,
|
||||
HARMFUL_LINK_MESSAGE_BLOCKED: 240000,
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user