diff options
Diffstat (limited to 'include/dbs/bits/errno.h')
-rw-r--r-- | include/dbs/bits/errno.h | 220 |
1 files changed, 220 insertions, 0 deletions
diff --git a/include/dbs/bits/errno.h b/include/dbs/bits/errno.h new file mode 100644 index 0000000..2a4faa1 --- /dev/null +++ b/include/dbs/bits/errno.h @@ -0,0 +1,220 @@ +/* Gateway error codes */ +E(4000, "Unknown error") +E(4001, "Unknown opcode") +E(4002, "Decode error") +E(4003, "Not authenticated") +E(4004, "Authentication failed") +E(4005, "Already authenticated") +E(4007, "Invalid seq") +E(4008, "Rate limited") +E(4009, "Session timed out") +E(4010, "Invalid shard") +E(4011, "Sharding required") +E(4012, "Invalid API version") +E(4013, "Invalid intent(s)") +E(4014, "Disallowed intent(s)") + +/* JSON error opcodes */ +E(0, "General error (such as a malformed request body, amongst other things)") +E(10001, "Unknown account") +E(10002, "Unknown application") +E(10003, "Unknown channel") +E(10004, "Unknown guild") +E(10005, "Unknown integration") +E(10006, "Unknown invite") +E(10007, "Unknown member") +E(10008, "Unknown message") +E(10009, "Unknown permission overwrite") +E(10010, "Unknown provider") +E(10011, "Unknown role") +E(10012, "Unknown token") +E(10013, "Unknown user") +E(10014, "Unknown emoji") +E(10015, "Unknown webhook") +E(10016, "Unknown webhook service") +E(10020, "Unknown session") +E(10026, "Unknown ban") +E(10027, "Unknown SKU") +E(10028, "Unknown Store Listing") +E(10029, "Unknown entitlement") +E(10030, "Unknown build") +E(10031, "Unknown lobby") +E(10032, "Unknown branch") +E(10033, "Unknown store directory layout") +E(10036, "Unknown redistributable") +E(10038, "Unknown gift code") +E(10049, "Unknown stream") +E(10050, "Unknown premium server subscribe cooldown") +E(10057, "Unknown guild template") +E(10059, "Unknown discoverable server category") +E(10060, "Unknown sticker") +E(10062, "Unknown interaction") +E(10063, "Unknown application command") +E(10065, "Unknown voice state") +E(10066, "Unknown application command permissions") +E(10067, "Unknown Stage Instance") +E(10068, "Unknown Guild Member Verification Form") +E(10069, "Unknown Guild Welcome Screen") +E(10070, "Unknown Guild Scheduled Event") +E(10071, "Unknown Guild Scheduled Event User") +E(10087, "Unknown Tag") +E(20001, "Bots cannot use this endpoint") +E(20002, "Only bots can use this endpoint") +E(20009, "Explicit content cannot be sent to the desired recipient(s)") +E(20012, "You are not authorized to perform this action on this application") +E(20016, "This action cannot be performed due to slowmode rate limit") +E(20018, "Only the owner of this account can perform this action") +E(20022, "This message cannot be edited due to announcement rate limits") +E(20024, "Under minimum age") +E(20028, "The channel you are writing has hit the write rate limit") +E(20029, "The write action you are performing on the server has hit the write rate limit") +E(20031, "Your Stage topic, server name, server description, or channel names contain words that are not allowed") +E(20035, "Guild premium subscription level too low") +E(30001, "Maximum number of guilds reached (100)") +E(30002, "Maximum number of friends reached (1000)") +E(30003, "Maximum number of pins reached for the channel (50)") +E(30004, "Maximum number of recipients reached (10)") +E(30005, "Maximum number of guild roles reached (250)") +E(30007, "Maximum number of webhooks reached (15)") +E(30008, "Maximum number of emojis reached") +E(30010, "Maximum number of reactions reached (20)") +E(30011, "Maximum number of group DMs reached (10)") +E(30013, "Maximum number of guild channels reached (500)") +E(30015, "Maximum number of attachments in a message reached (10)") +E(30016, "Maximum number of invites reached (1000)") +E(30018, "Maximum number of animated emojis reached") +E(30019, "Maximum number of server members reached") +E(30030, "Maximum number of server categories has been reached (5)") +E(30031, "Guild already has a template") +E(30032, "Maximum number of application commands reached") +E(30033, "Maximum number of thread participants has been reached (1000)") +E(30034, "Maximum number of daily application command creates has been reached (200)") +E(30035, "Maximum number of bans for non-guild members have been exceeded") +E(30037, "Maximum number of bans fetches has been reached") +E(30038, "Maximum number of uncompleted guild scheduled events reached (100)") +E(30039, "Maximum number of stickers reached") +E(30040, "Maximum number of prune requests has been reached. Try again later") +E(30042, "Maximum number of guild widget settings updates has been reached. Try again later") +E(30046, "Maximum number of edits to messages older than 1 hour reached. Try again later") +E(30047, "Maximum number of pinned threads in a forum channel has been reached") +E(30048, "Maximum number of tags in a forum channel has been reached") +E(30052, "Bitrate is too high for channel of this type") +E(30056, "Maximum number of premium emojis reached (25)") +E(30058, "Maximum number of webhooks per guild reached (1000)") +E(30060, "Maximum number of channel permission overwrites reached (1000)") +E(30061, "The channels for this guild are too large") +E(40001, "Unauthorized. Provide a valid token and try again") +E(40002, "You need to verify your account in order to perform this action") +E(40003, "You are opening direct messages too fast") +E(40004, "Send messages has been temporarily disabled") +E(40005, "Request entity too large. Try sending something smaller in size") +E(40006, "This feature has been temporarily disabled server-side") +E(40007, "The user is banned from this guild") +E(40012, "Connection has been revoked") +E(40032, "Target user is not connected to voice") +E(40033, "This message has already been crossposted") +E(40041, "An application command with that name already exists") +E(40043, "Application interaction failed to send") +E(40058, "Cannot send a message in a forum channel") +E(40060, "Interaction has already been acknowledged") +E(40061, "Tag names must be unique") +E(40062, "Service resource is being rate limited") +E(40066, "There are no tags available that can be set by non-moderators") +E(40067, "A tag is required to create a forum post in this channel") +E(40074, "An entitlement has already been granted for this resource") +E(50001, "Missing access") +E(50002, "Invalid account type") +E(50003, "Cannot execute action on a DM channel") +E(50004, "Guild widget disabled") +E(50005, "Cannot edit a message authored by another user") +E(50006, "Cannot send an empty message") +E(50007, "Cannot send messages to this user") +E(50008, "Cannot send messages in a non-text channel") +E(50009, "Channel verification level is too high for you to gain access") +E(50010, "OAuth2 application does not have a bot") +E(50011, "OAuth2 application limit reached") +E(50012, "Invalid OAuth2 state") +E(50013, "You lack permissions to perform that action") +E(50014, "Invalid authentication token provided") +E(50015, "Note was too long") +E(50016, "Provided too few or too many messages to delete. Must provide at least 2 and fewer than 100 messages to delete") +E(50017, "Invalid MFA Level") +E(50019, "A message can only be pinned to the channel it was sent in") +E(50020, "Invite code was either invalid or taken") +E(50021, "Cannot execute action on a system message") +E(50024, "Cannot execute action on this channel type") +E(50025, "Invalid OAuth2 access token provided") +E(50026, "Missing required OAuth2 scope") +E(50027, "Invalid webhook token provided") +E(50028, "Invalid role") +E(50033, "Invalid Recipient(s)") +E(50034, "A message provided was too old to bulk delete") +E(50035, "Invalid form body (returned for both application/json and multipart/form-data bodies), or invalid Content-Type provided") +E(50036, "An invite was accepted to a guild the application's bot is not in") +E(50039, "Invalid Activity Action") +E(50041, "Invalid API version provided") +E(50045, "File uploaded exceeds the maximum size") +E(50046, "Invalid file uploaded") +E(50054, "Cannot self-redeem this gift") +E(50055, "Invalid Guild") +E(50057, "Invalid SKU") +E(50067, "Invalid request origin") +E(50068, "Invalid message type") +E(50070, "Payment source required to redeem gift") +E(50073, "Cannot modify a system webhook") +E(50074, "Cannot delete a channel required for Community guilds") +E(50080, "Cannot edit stickers within a message") +E(50081, "Invalid sticker sent") +E(50083, "Tried to perform an operation on an archived thread, such as editing a message or adding a user to the thread") +E(50084, "Invalid thread notification settings") +E(50085, "before value is earlier than the thread creation date") +E(50086, "Community server channels must be text channels") +E(50091, "The entity type of the event is different from the entity you are trying to start the event for") +E(50095, "This server is not available in your location") +E(50097, "This server needs monetization enabled in order to perform this action") +E(50101, "This server needs more boosts to perform this action") +E(50109, "The request body contains invalid JSON.") +E(50131, "Owner cannot be pending member") +E(50132, "Ownership cannot be transferred to a bot user") +E(50138, "Failed to resize asset below the maximum size: 262144") +E(50144, "Cannot mix subscription and non subscription roles for an emoji") +E(50145, "Cannot convert between premium emoji and normal emoji") +E(50146, "Uploaded file not found.") +E(50159, "Voice messages do not support additional content.") +E(50160, "Voice messages must have a single audio attachment.") +E(50161, "Voice messages must have supporting metadata.") +E(50162, "Voice messages cannot be edited.") +E(50163, "Cannot delete guild subscription integration") +E(50173, "You cannot send voice messages in this channel.") +E(50178, "The user account must first be verified") +E(50600, "You do not have permission to send this sticker.") +E(60003, "Two factor is required for this operation") +E(80004, "No users with DiscordTag exist") +E(90001, "Reaction was blocked") +E(90002, "User cannot use burst reactions") +E(110001, "Application not yet available. Try again later") +E(130000, "API resource is currently overloaded. Try again a little later") +E(150006, "The Stage is already open") +E(160002, "Cannot reply without permission to read message history") +E(160004, "A thread has already been created for this message") +E(160005, "Thread is locked") +E(160006, "Maximum number of active threads reached") +E(160007, "Maximum number of active announcement threads reached") +E(170001, "Invalid JSON for uploaded Lottie file") +E(170002, "Uploaded Lotties cannot contain rasterized images such as PNG or JPEG") +E(170003, "Sticker maximum framerate exceeded") +E(170004, "Sticker frame count exceeds maximum of 1000 frames") +E(170005, "Lottie animation maximum dimensions exceeded") +E(170006, "Sticker frame rate is either too small or too large") +E(170007, "Sticker animation duration exceeds maximum of 5 seconds") +E(180000, "Cannot update a finished event") +E(180002, "Failed to create stage needed for stage event") +E(200000, "Message was blocked by automatic moderation") +E(200001, "Title was blocked by automatic moderation") +E(220001, "Webhooks posted to forum channels must have a thread_name or thread_id") +E(220002, "Webhooks posted to forum channels cannot have both a thread_name and thread_id") +E(220003, "Webhooks can only create threads in forum channels") +E(220004, "Webhook services cannot be used in forum channels") +E(240000, "Message blocked by harmful links filter") +E(350000, "Cannot enable onboarding, requirements are not met") +E(350001, "Cannot update onboarding while below requirements") |