From 4f6bc780845efb81c01ec32aacc232f578a25c11 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 4 Jul 2020 22:07:47 +0200 Subject: [PATCH] discord.com support for quotation --- event/listeners/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/listeners/message.js b/event/listeners/message.js index a473acc7..cbe45bdc 100644 --- a/event/listeners/message.js +++ b/event/listeners/message.js @@ -248,7 +248,7 @@ class messageListener extends Listener { */ const quotationstat = await quotationStat.findOne({where: {serverID: message.guild.id, stat: 'enable'}}); - if (quotationstat && message.content.includes('discordapp.com/channels/')) { + if (quotationstat && (message.content.includes('discordapp.com/channels/') || message.content.includes('discord.com/channels/'))) { let url = message.content.split('/'); let guildID = url[4]; let channelID = url[5];