Skip to content

Commit

Permalink
fix(uploademoji): fixed error on invalid value in name
Browse files Browse the repository at this point in the history
  • Loading branch information
SethCohen committed Aug 31, 2022
1 parent 0a81e09 commit babd066
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/uploademoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ module.exports = {
case 'Invalid Form Body\nname: String value did not match validation regex.':
interaction.editReply({ embeds: [sendErrorFeedback(interaction.commandName, 'Invalid value in `name`.\nMust only contain alphanumeric characters and underscores.')] });
break;
case 'Invalid Form Body\nname[STRING_TYPE_REGEX]: String value did not match validation regex.':
interaction.editReply({ embeds: [sendErrorFeedback(interaction.commandName, 'Invalid value in `name`.\nEmoji names must be at least 2 characters long and can only contain alphanumeric characters and underscores.')] });
break;
case 'Maximum number of emojis reached (50)':
interaction.editReply({ embeds: [sendErrorFeedback(interaction.commandName, 'No emoji slots available in server.')] });
break;
Expand Down

0 comments on commit babd066

Please sign in to comment.