mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 00:35:02 +00:00
Prevent crash when using !!emoji with no args
This commit is contained in:
parent
55b4e39b6e
commit
0a160218a6
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export const EmojiInfoCmd = utilityCmd({
|
||||||
},
|
},
|
||||||
|
|
||||||
async run({ message, args, pluginData }) {
|
async run({ message, args, pluginData }) {
|
||||||
const emojiIdMatch = args.emoji.match(customEmojiRegex);
|
const emojiIdMatch = args.emoji?.match(customEmojiRegex);
|
||||||
if (!emojiIdMatch?.[2]) {
|
if (!emojiIdMatch?.[2]) {
|
||||||
sendErrorMessage(pluginData, message.channel, "Emoji not found");
|
sendErrorMessage(pluginData, message.channel, "Emoji not found");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue