3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +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 3491f3e0a2
commit a8d274c054

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