Skip to content

Commit

Permalink
fix(emojisteal): fixed error on no emoji found/invalid value in `emoj…
Browse files Browse the repository at this point in the history
…i` input.
  • Loading branch information
SethCohen committed Aug 31, 2022
1 parent babd066 commit d67972b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/emojisteal.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports = {
const name = interaction.options.getString('name');
const stringEmoji = interaction.options.getString('emoji');
const verifiedEmoji = verifyEmojiString(stringEmoji);
if (!verifiedEmoji) return interaction.editReply({ embeds: [sendErrorFeedback(interaction.commandName, 'No emoji found in `emoji`.')] });
const url = getEmojiUrl(verifiedEmoji);

interaction.guild.emojis
Expand Down

0 comments on commit d67972b

Please sign in to comment.