Skip to content

Commit

Permalink
🐛 Fix addemoji command
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Jul 28, 2020
1 parent 570710b commit baf4410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/Administration/addemoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Addemoji extends Command {
return message.error("administration/addemoji:MISSING_URL");
}

const name = args[1].replace(/[^a-z0-9]/gi, "");
const name = args[1] ? args[1].replace(/[^a-z0-9]/gi, "") : null;
if (!name) {
return message.error("administration/addemoji:MISSING_NAME");
}
Expand Down

0 comments on commit baf4410

Please sign in to comment.