3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Change to make the emoji required

This commit is contained in:
Usoka 2021-05-26 07:30:12 +12:00 committed by GitHub
parent 0a160218a6
commit 4c2bba4ce3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,11 +11,11 @@ export const EmojiInfoCmd = utilityCmd({
permission: "can_emojiinfo",
signature: {
emoji: ct.string({ required: false }),
emoji: ct.string({ required: true }),
},
async run({ message, args, pluginData }) {
const emojiIdMatch = args.emoji?.match(customEmojiRegex);
const emojiIdMatch = args.emoji.match(customEmojiRegex);
if (!emojiIdMatch?.[2]) {
sendErrorMessage(pluginData, message.channel, "Emoji not found");
return;