From 0204ed737a82b84deb20b65bac0c271c41bf2980 Mon Sep 17 00:00:00 2001 From: Usoka <27248545+Usoka@users.noreply.github.com> Date: Sun, 15 Aug 2021 02:29:25 +1200 Subject: [PATCH] Prevent crash when using !emoji with no args (#221) --- backend/src/plugins/Utility/commands/EmojiInfoCmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/EmojiInfoCmd.ts b/backend/src/plugins/Utility/commands/EmojiInfoCmd.ts index b863b344..7a60eda6 100644 --- a/backend/src/plugins/Utility/commands/EmojiInfoCmd.ts +++ b/backend/src/plugins/Utility/commands/EmojiInfoCmd.ts @@ -11,7 +11,7 @@ export const EmojiInfoCmd = utilityCmd({ permission: "can_emojiinfo", signature: { - emoji: ct.string({ required: false }), + emoji: ct.string({ required: true }), }, async run({ message, args, pluginData }) {