discord.com support for quotation

This commit is contained in:
loicbersier 2020-07-04 22:07:47 +02:00
parent 021e98272d
commit 4f6bc78084

View file

@ -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];