3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 06:11:49 +00:00

Update backend/src/plugins/Utility/commands/ColorCmd.ts

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
Usoka 2021-05-26 07:31:13 +12:00 committed by GitHub
parent 29da6c5354
commit beda091049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;