Skip to content

Commit c5f1e45

Browse files
committed
Add error responses
1 parent bf699f4 commit c5f1e45

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/net/dv8tion/jda/api/requests/ErrorResponse.java

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public enum ErrorResponse
5454
UNKNOWN_WEBHOOK( 10015, "Unknown Webhook"),
5555
UNKNOWN_WEBHOOK_SERVICE( 10016, "Unknown Webhook Service"),
5656
UNKNOWN_SESSION( 10020, "Unknown session"),
57+
UNKNOWN_ASSET( 10021, "Unknown Asset"),
5758
UNKNOWN_BAN( 10026, "Unknown Ban"),
5859
UNKNOWN_SKU( 10027, "Unknown SKU"),
5960
UNKNOWN_STORE_LISTING( 10028, "Unknown Store Listing"),
@@ -79,6 +80,7 @@ public enum ErrorResponse
7980
UNKNOWN_SCHEDULED_EVENT( 10070, "Unknown Scheduled Event"),
8081
UNKNOWN_SCHEDULED_EVENT_USER( 10071, "Unknown Scheduled Event User"),
8182
UNKNOWN_TAG( 10087, "Unknown Tag"),
83+
UNKNOWN_SOUND( 10097, "Unknown sound"),
8284
BOTS_NOT_ALLOWED( 20001, "Bots cannot use this endpoint"),
8385
ONLY_BOTS_ALLOWED( 20002, "Only bots can use this endpoint"),
8486
EXPLICIT_CONTENT_CANNOT_SEND_TO_RECIPIENT(20009, "Explicit content cannot be sent to the desired recipient(s)"),
@@ -114,6 +116,7 @@ public enum ErrorResponse
114116
MAX_STICKERS( 30039, "Maximum number of stickers reached"),
115117
MAX_PRUNE_REQUESTS( 30040, "Maximum number of prune requests has been reached. Try again later"),
116118
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"),
117120
MAX_OLD_MESSAGE_EDITS( 30046, "Maximum number of edits to messages older than 1 hour reached. Try again later"),
118121
MAX_PINNED_THREADS_IN_FORUM( 30047, "Maximum number of pinned threads in a forum channel has been reached"),
119122
MAX_FORUM_TAGS( 30048, "Maximum number of tags in a forum channel has been reached"),
@@ -192,19 +195,24 @@ public enum ErrorResponse
192195
SERVER_MONETIZATION_DISABLED( 50097, "This server needs monetization enabled in order to perform this action"),
193196
SERVER_NOT_ENOUGH_BOOSTS( 50101, "This server needs more boosts to perform this action"),
194197
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."),
195201
OWNER_CANNOT_BE_PENDING( 50131, "Owner cannot be pending member"),
196202
OWNER_TRANSFER_TO_BOT( 50132, "Ownership cannot be transferred to a bot user"),
197203
CANNOT_RESIZE_BELOW_MAXIMUM( 50138, "Failed to resize asset below the maximum size: 262144"),
198204
MIXED_PREMIUM_ROLES_FOR_EMOJI( 50144, "Cannot mix subscription and non subscription roles for an emoji"),
199205
ILLEGAL_EMOJI_CONVERSION( 50145, "Cannot convert between premium emoji and normal emoji"),
200206
UNKNOWN_UPLOADED_FILE( 50146, "Uploaded file not found"),
207+
INVALID_EMOJI( 50151, "The specified emoji is invalid"),
201208
VOICE_MESSAGE_ADDITIONAL_CONTENT( 50159, "Voice messages do not support additional content"),
202209
VOICE_MESSAGE_TOO_MANY_AUDIO_ATTACHMENTS( 50160, "Voice messages must have a single audio attachment"),
203210
VOICE_MESSAGE_MISSING_METADATA( 50161, "Voice messages must have supporting metadata"),
204211
CANNOT_EDIT_VOICE_MESSAGE( 50162, "Voice messages cannot be edited"),
205212
CANNOT_DELETE_GUILD_INTEGRATION( 50163, "Cannot delete guild subscription integration"),
206213
CANNOT_SEND_VOICE_MESSAGE( 50173, "You cannot send voice messages in this channel"),
207214
USER_MUST_BE_VERIFIED( 50178, "The user account must first be verified"),
215+
INVALID_FILE_DURATION( 50192, "The provided file does not have a valid duration"),
208216
CANNOT_SEND_STICKER( 50600, "You do not have permission to send this sticker"),
209217
MFA_NOT_ENABLED( 60003, "MFA auth required but not enabled"),
210218
NO_USER_WITH_TAG_EXISTS( 80004, "No users with DiscordTag exist"),

0 commit comments

Comments
 (0)