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:
parent
0a160218a6
commit
4c2bba4ce3
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue