mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-08 11:37:20 +00:00
Fixes, refactoring and PR feedback
This commit is contained in:
parent
0be54912c4
commit
893a77d562
202 changed files with 1037 additions and 1069 deletions
|
@ -17,13 +17,13 @@ export const EmojiInfoCmd = utilityCmd({
|
|||
async run({ message, args, pluginData }) {
|
||||
const emojiId = getCustomEmojiId(args.emoji);
|
||||
if (!emojiId) {
|
||||
pluginData.getPlugin(CommonPlugin).sendErrorMessage(message, "Emoji not found");
|
||||
void pluginData.state.common.sendErrorMessage(message, "Emoji not found");
|
||||
return;
|
||||
}
|
||||
|
||||
const embed = await getEmojiInfoEmbed(pluginData, emojiId);
|
||||
if (!embed) {
|
||||
pluginData.getPlugin(CommonPlugin).sendErrorMessage(message, "Emoji not found");
|
||||
void pluginData.state.common.sendErrorMessage(message, "Emoji not found");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue