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;