added channel in embed

This commit is contained in:
Supositware 2019-03-29 21:15:30 +01:00
parent 88cef376ce
commit c89679e0f2

View file

@ -44,6 +44,7 @@ class MessageReactionAddListener extends Listener {
.setColor(reaction.message.member.displayHexColor)
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
.setDescription(`[Jump to message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`)
.addField('Channel', reaction.message.channel)
.setFooter(reaction.count + ' ' + staremote)
.setTimestamp();
@ -56,11 +57,12 @@ class MessageReactionAddListener extends Listener {
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
.setDescription(messageContent)
.addField('Jump to', `[message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`)
.addField('Channel', reaction.message.channel)
.setFooter(reaction.count + ' ' + staremote)
.setTimestamp();
return channel.send(`in: ${reaction.message.channel}`, {files: messageAttachments, embed: starEmbed})
.catch(() => channel.send(`${reaction.message.author.username}, in: ${reaction.message.channel}`, { embed: starEmbed}));
return channel.send({files: messageAttachments, embed: starEmbed})
.catch(() => channel.send(messageAttachments, { embed: starEmbed}));
}
let shameboardChannel;
@ -91,6 +93,7 @@ class MessageReactionAddListener extends Listener {
.setColor(reaction.message.member.displayHexColor)
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
.setDescription(`[Jump to message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`)
.addField('Channel', reaction.message.channel)
.setFooter(reaction.count + ' ' + shameemote)
.setTimestamp();
@ -103,11 +106,12 @@ class MessageReactionAddListener extends Listener {
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
.setDescription(messageContent)
.addField('Jump to', `[message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`)
.addField('Channel', reaction.message.channel)
.setFooter(reaction.count + ' ' + shameemote)
.setTimestamp();
return channel.send(`in: ${reaction.message.channel}`,{files: messageAttachments, embed: shameEmbed})
.catch(() => channel.send(`${reaction.message.author.username}, in: ${reaction.message.channel}`, { embed: shameEmbed}));
return channel.send({files: messageAttachments, embed: shameEmbed})
.catch(() => channel.send(messageAttachments, { embed: shameEmbed}));
}
}
}