discord.com support for quotation
This commit is contained in:
parent
021e98272d
commit
4f6bc78084
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue