Support voice text channel

This commit is contained in:
2022-06-29 18:59:06 +07:00
parent 7d4b3add14
commit 6110dd876e
4 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ class Discord {
// Handling mentions
this.client.on('messageCreate', async (message: Message) => {
// TODO: Handle DMs commands soon
if (!(message.channel instanceof TextChannel)) return;
if (!(message.channel instanceof BaseGuildTextChannel || message.channel instanceof BaseGuildVoiceChannel)) return;
if (message.author.bot) return;
if (typeof message.guild?.id === 'undefined') return;