3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 07:05:03 +00:00

Tags: don't attempt to send empty messages

This commit is contained in:
Dragory 2019-03-16 17:32:32 +02:00
parent d54a2c468c
commit 23b083e3ae

View file

@ -209,6 +209,8 @@ export class TagsPlugin extends ZeppelinPlugin<ITagsPluginConfig, ITagsPluginPer
}
}
if (body.trim() === "") return;
const channel = this.guild.channels.get(msg.channel_id) as TextChannel;
const responseMsg = await channel.createMessage(body);