@@ -54,6 +54,7 @@ public enum ErrorResponse
54
54
UNKNOWN_WEBHOOK ( 10015 , "Unknown Webhook" ),
55
55
UNKNOWN_WEBHOOK_SERVICE ( 10016 , "Unknown Webhook Service" ),
56
56
UNKNOWN_SESSION ( 10020 , "Unknown session" ),
57
+ UNKNOWN_ASSET ( 10021 , "Unknown Asset" ),
57
58
UNKNOWN_BAN ( 10026 , "Unknown Ban" ),
58
59
UNKNOWN_SKU ( 10027 , "Unknown SKU" ),
59
60
UNKNOWN_STORE_LISTING ( 10028 , "Unknown Store Listing" ),
@@ -79,6 +80,7 @@ public enum ErrorResponse
79
80
UNKNOWN_SCHEDULED_EVENT ( 10070 , "Unknown Scheduled Event" ),
80
81
UNKNOWN_SCHEDULED_EVENT_USER ( 10071 , "Unknown Scheduled Event User" ),
81
82
UNKNOWN_TAG ( 10087 , "Unknown Tag" ),
83
+ UNKNOWN_SOUND ( 10097 , "Unknown sound" ),
82
84
BOTS_NOT_ALLOWED ( 20001 , "Bots cannot use this endpoint" ),
83
85
ONLY_BOTS_ALLOWED ( 20002 , "Only bots can use this endpoint" ),
84
86
EXPLICIT_CONTENT_CANNOT_SEND_TO_RECIPIENT (20009 , "Explicit content cannot be sent to the desired recipient(s)" ),
@@ -114,6 +116,7 @@ public enum ErrorResponse
114
116
MAX_STICKERS ( 30039 , "Maximum number of stickers reached" ),
115
117
MAX_PRUNE_REQUESTS ( 30040 , "Maximum number of prune requests has been reached. Try again later" ),
116
118
MAX_GUILD_WIDGET_UPDATES ( 30042 , "Maximum number of guild widget settings updates has been reached. Try again later" ),
119
+ MAX_SOUNDBOARD_SOUNDS ( 30045 , "Maximum number of soundboard sounds reached" ),
117
120
MAX_OLD_MESSAGE_EDITS ( 30046 , "Maximum number of edits to messages older than 1 hour reached. Try again later" ),
118
121
MAX_PINNED_THREADS_IN_FORUM ( 30047 , "Maximum number of pinned threads in a forum channel has been reached" ),
119
122
MAX_FORUM_TAGS ( 30048 , "Maximum number of tags in a forum channel has been reached" ),
@@ -192,19 +195,25 @@ public enum ErrorResponse
192
195
SERVER_MONETIZATION_DISABLED ( 50097 , "This server needs monetization enabled in order to perform this action" ),
193
196
SERVER_NOT_ENOUGH_BOOSTS ( 50101 , "This server needs more boosts to perform this action" ),
194
197
INVALID_REQUEST_BODY ( 50109 , "The request body contains invalid JSON." ),
198
+ INVALID_FILE ( 50110 , "The provided file is invalid." ),
199
+ INVALID_FILE_TYPE ( 50123 , "The provided file type is invalid." ),
200
+ INVALID_FILE_EXCEEDS_MAXIMUM_LENGTH ( 50124 , "The provided file duration exceeds maximum of 5.2 seconds." ),
195
201
OWNER_CANNOT_BE_PENDING ( 50131 , "Owner cannot be pending member" ),
196
202
OWNER_TRANSFER_TO_BOT ( 50132 , "Ownership cannot be transferred to a bot user" ),
197
203
CANNOT_RESIZE_BELOW_MAXIMUM ( 50138 , "Failed to resize asset below the maximum size: 262144" ),
198
204
MIXED_PREMIUM_ROLES_FOR_EMOJI ( 50144 , "Cannot mix subscription and non subscription roles for an emoji" ),
199
205
ILLEGAL_EMOJI_CONVERSION ( 50145 , "Cannot convert between premium emoji and normal emoji" ),
200
206
UNKNOWN_UPLOADED_FILE ( 50146 , "Uploaded file not found" ),
207
+ INVALID_EMOJI ( 50151 , "The specified emoji is invalid" ),
201
208
VOICE_MESSAGE_ADDITIONAL_CONTENT ( 50159 , "Voice messages do not support additional content" ),
202
209
VOICE_MESSAGE_TOO_MANY_AUDIO_ATTACHMENTS ( 50160 , "Voice messages must have a single audio attachment" ),
203
210
VOICE_MESSAGE_MISSING_METADATA ( 50161 , "Voice messages must have supporting metadata" ),
204
211
CANNOT_EDIT_VOICE_MESSAGE ( 50162 , "Voice messages cannot be edited" ),
205
212
CANNOT_DELETE_GUILD_INTEGRATION ( 50163 , "Cannot delete guild subscription integration" ),
213
+ CANNOT_SEND_VOICE_EFFECT ( 50167 , "Cannot send voice effect when user is server muted, deafened or suppressed" ),
206
214
CANNOT_SEND_VOICE_MESSAGE ( 50173 , "You cannot send voice messages in this channel" ),
207
215
USER_MUST_BE_VERIFIED ( 50178 , "The user account must first be verified" ),
216
+ INVALID_FILE_DURATION ( 50192 , "The provided file does not have a valid duration" ),
208
217
CANNOT_SEND_STICKER ( 50600 , "You do not have permission to send this sticker" ),
209
218
MFA_NOT_ENABLED ( 60003 , "MFA auth required but not enabled" ),
210
219
NO_USER_WITH_TAG_EXISTS ( 80004 , "No users with DiscordTag exist" ),
0 commit comments