use channel name

This commit is contained in:
loicbersier 2020-03-05 22:43:11 +01:00
parent b60057e110
commit 0ad53eac4b

View file

@ -261,7 +261,7 @@ class messageListener extends Listener {
.setColor(quote.member.displayHexColor) .setColor(quote.member.displayHexColor)
.setAuthor(quote.author.username, quote.author.displayAvatarURL()) .setAuthor(quote.author.username, quote.author.displayAvatarURL())
.addField('Jump to', `[message](https://discordapp.com/channels/${message.guild.id}/${channelID}/${messageID})`, true) .addField('Jump to', `[message](https://discordapp.com/channels/${message.guild.id}/${channelID}/${messageID})`, true)
.addField('In channel', quote.channel, true) .addField('In channel', quote.channel.name, true)
.addField('Quoted by', message.author, true) .addField('Quoted by', message.author, true)
.setDescription(quote.content) .setDescription(quote.content)
.setTimestamp(quote.createdTimestamp); .setTimestamp(quote.createdTimestamp);