mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix empty !tag eval crash
This commit is contained in:
parent
9dbf80ce58
commit
32fee53a8d
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@ export const TagEvalCmd = tagsCmd({
|
|||
},
|
||||
{ member: msg.member },
|
||||
);
|
||||
|
||||
if (!rendered.content && !rendered.embed) {
|
||||
sendErrorMessage(pluginData, msg.channel, "Evaluation resulted in an empty text");
|
||||
return;
|
||||
}
|
||||
|
||||
msg.channel.createMessage(rendered);
|
||||
} catch (e) {
|
||||
if (e instanceof TemplateParseError) {
|
||||
|
|
Loading…
Add table
Reference in a new issue