From beda091049272b389feeadd5617fae065ab09406 Mon Sep 17 00:00:00 2001 From: Usoka <27248545+Usoka@users.noreply.github.com> Date: Wed, 26 May 2021 07:31:13 +1200 Subject: [PATCH] Update backend/src/plugins/Utility/commands/ColorCmd.ts Co-authored-by: Almeida --- backend/src/plugins/Utility/commands/ColorCmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/ColorCmd.ts b/backend/src/plugins/Utility/commands/ColorCmd.ts index 44a5d47e..8f53afed 100644 --- a/backend/src/plugins/Utility/commands/ColorCmd.ts +++ b/backend/src/plugins/Utility/commands/ColorCmd.ts @@ -16,7 +16,7 @@ export const ColorCmd = utilityCmd({ }, async run({ message, args, pluginData }) { - const hexcodeMatch = args.color?.match(hexColorRegex); + const hexcodeMatch = args.color.match(hexColorRegex); if (!hexcodeMatch?.[1]) { sendErrorMessage(pluginData, message.channel, "Invalid hex code"); return;