mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 00:35:02 +00:00
Change to make the emoji required
This commit is contained in:
parent
0a160218a6
commit
4c2bba4ce3
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ export const EmojiInfoCmd = utilityCmd({
|
||||||
permission: "can_emojiinfo",
|
permission: "can_emojiinfo",
|
||||||
|
|
||||||
signature: {
|
signature: {
|
||||||
emoji: ct.string({ required: false }),
|
emoji: ct.string({ required: true }),
|
||||||
},
|
},
|
||||||
|
|
||||||
async run({ message, args, pluginData }) {
|
async run({ message, args, pluginData }) {
|
||||||
const emojiIdMatch = args.emoji?.match(customEmojiRegex);
|
const emojiIdMatch = args.emoji.match(customEmojiRegex);
|
||||||
if (!emojiIdMatch?.[2]) {
|
if (!emojiIdMatch?.[2]) {
|
||||||
sendErrorMessage(pluginData, message.channel, "Emoji not found");
|
sendErrorMessage(pluginData, message.channel, "Emoji not found");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue