diff --git a/src/main/java/net/dv8tion/jda/api/requests/ErrorResponse.java b/src/main/java/net/dv8tion/jda/api/requests/ErrorResponse.java index 024829c5a0..835b0b59f0 100644 --- a/src/main/java/net/dv8tion/jda/api/requests/ErrorResponse.java +++ b/src/main/java/net/dv8tion/jda/api/requests/ErrorResponse.java @@ -54,6 +54,7 @@ public enum ErrorResponse UNKNOWN_WEBHOOK( 10015, "Unknown Webhook"), UNKNOWN_WEBHOOK_SERVICE( 10016, "Unknown Webhook Service"), UNKNOWN_SESSION( 10020, "Unknown session"), + UNKNOWN_ASSET( 10021, "Unknown Asset"), UNKNOWN_BAN( 10026, "Unknown Ban"), UNKNOWN_SKU( 10027, "Unknown SKU"), UNKNOWN_STORE_LISTING( 10028, "Unknown Store Listing"), @@ -79,6 +80,7 @@ public enum ErrorResponse UNKNOWN_SCHEDULED_EVENT( 10070, "Unknown Scheduled Event"), UNKNOWN_SCHEDULED_EVENT_USER( 10071, "Unknown Scheduled Event User"), UNKNOWN_TAG( 10087, "Unknown Tag"), + UNKNOWN_SOUND( 10097, "Unknown sound"), BOTS_NOT_ALLOWED( 20001, "Bots cannot use this endpoint"), ONLY_BOTS_ALLOWED( 20002, "Only bots can use this endpoint"), EXPLICIT_CONTENT_CANNOT_SEND_TO_RECIPIENT(20009, "Explicit content cannot be sent to the desired recipient(s)"), @@ -114,6 +116,7 @@ public enum ErrorResponse MAX_STICKERS( 30039, "Maximum number of stickers reached"), MAX_PRUNE_REQUESTS( 30040, "Maximum number of prune requests has been reached. Try again later"), MAX_GUILD_WIDGET_UPDATES( 30042, "Maximum number of guild widget settings updates has been reached. Try again later"), + MAX_SOUNDBOARD_SOUNDS( 30045, "Maximum number of soundboard sounds reached"), MAX_OLD_MESSAGE_EDITS( 30046, "Maximum number of edits to messages older than 1 hour reached. Try again later"), MAX_PINNED_THREADS_IN_FORUM( 30047, "Maximum number of pinned threads in a forum channel has been reached"), MAX_FORUM_TAGS( 30048, "Maximum number of tags in a forum channel has been reached"), @@ -192,12 +195,16 @@ public enum ErrorResponse SERVER_MONETIZATION_DISABLED( 50097, "This server needs monetization enabled in order to perform this action"), SERVER_NOT_ENOUGH_BOOSTS( 50101, "This server needs more boosts to perform this action"), INVALID_REQUEST_BODY( 50109, "The request body contains invalid JSON."), + INVALID_FILE( 50110, "The provided file is invalid."), + INVALID_FILE_TYPE( 50123, "The provided file type is invalid."), + INVALID_FILE_EXCEEDS_MAXIMUM_LENGTH( 50124, "The provided file duration exceeds maximum of 5.2 seconds."), OWNER_CANNOT_BE_PENDING( 50131, "Owner cannot be pending member"), OWNER_TRANSFER_TO_BOT( 50132, "Ownership cannot be transferred to a bot user"), CANNOT_RESIZE_BELOW_MAXIMUM( 50138, "Failed to resize asset below the maximum size: 262144"), MIXED_PREMIUM_ROLES_FOR_EMOJI( 50144, "Cannot mix subscription and non subscription roles for an emoji"), ILLEGAL_EMOJI_CONVERSION( 50145, "Cannot convert between premium emoji and normal emoji"), UNKNOWN_UPLOADED_FILE( 50146, "Uploaded file not found"), + INVALID_EMOJI( 50151, "The specified emoji is invalid"), VOICE_MESSAGE_ADDITIONAL_CONTENT( 50159, "Voice messages do not support additional content"), VOICE_MESSAGE_TOO_MANY_AUDIO_ATTACHMENTS( 50160, "Voice messages must have a single audio attachment"), VOICE_MESSAGE_MISSING_METADATA( 50161, "Voice messages must have supporting metadata"), @@ -205,6 +212,7 @@ public enum ErrorResponse CANNOT_DELETE_GUILD_INTEGRATION( 50163, "Cannot delete guild subscription integration"), CANNOT_SEND_VOICE_MESSAGE( 50173, "You cannot send voice messages in this channel"), USER_MUST_BE_VERIFIED( 50178, "The user account must first be verified"), + INVALID_FILE_DURATION( 50192, "The provided file does not have a valid duration"), CANNOT_SEND_STICKER( 50600, "You do not have permission to send this sticker"), MFA_NOT_ENABLED( 60003, "MFA auth required but not enabled"), NO_USER_WITH_TAG_EXISTS( 80004, "No users with DiscordTag exist"),