From 4c2bba4ce3727aa495d00ec49b23968ca9411c1c Mon Sep 17 00:00:00 2001 From: Usoka <27248545+Usoka@users.noreply.github.com> Date: Wed, 26 May 2021 07:30:12 +1200 Subject: [PATCH] Change to make the emoji required --- backend/src/plugins/Utility/commands/EmojiInfoCmd.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/plugins/Utility/commands/EmojiInfoCmd.ts b/backend/src/plugins/Utility/commands/EmojiInfoCmd.ts index 4c771946..c16de9ed 100644 --- a/backend/src/plugins/Utility/commands/EmojiInfoCmd.ts +++ b/backend/src/plugins/Utility/commands/EmojiInfoCmd.ts @@ -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;