forked from Supositware/Haha-Yes
added channel in embed
This commit is contained in:
parent
88cef376ce
commit
c89679e0f2
1 changed files with 18 additions and 14 deletions
|
@ -44,6 +44,7 @@ class MessageReactionAddListener extends Listener {
|
||||||
.setColor(reaction.message.member.displayHexColor)
|
.setColor(reaction.message.member.displayHexColor)
|
||||||
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
.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})`)
|
.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)
|
.setFooter(reaction.count + ' ' + staremote)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
|
@ -56,11 +57,12 @@ class MessageReactionAddListener extends Listener {
|
||||||
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
||||||
.setDescription(messageContent)
|
.setDescription(messageContent)
|
||||||
.addField('Jump to', `[message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`)
|
.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)
|
.setFooter(reaction.count + ' ' + staremote)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
return channel.send(`in: ${reaction.message.channel}`, {files: messageAttachments, embed: starEmbed})
|
return channel.send({files: messageAttachments, embed: starEmbed})
|
||||||
.catch(() => channel.send(`${reaction.message.author.username}, in: ${reaction.message.channel}`, { embed: starEmbed}));
|
.catch(() => channel.send(messageAttachments, { embed: starEmbed}));
|
||||||
}
|
}
|
||||||
|
|
||||||
let shameboardChannel;
|
let shameboardChannel;
|
||||||
|
@ -91,6 +93,7 @@ class MessageReactionAddListener extends Listener {
|
||||||
.setColor(reaction.message.member.displayHexColor)
|
.setColor(reaction.message.member.displayHexColor)
|
||||||
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
.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})`)
|
.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)
|
.setFooter(reaction.count + ' ' + shameemote)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
|
@ -103,11 +106,12 @@ class MessageReactionAddListener extends Listener {
|
||||||
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
||||||
.setDescription(messageContent)
|
.setDescription(messageContent)
|
||||||
.addField('Jump to', `[message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`)
|
.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)
|
.setFooter(reaction.count + ' ' + shameemote)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
return channel.send(`in: ${reaction.message.channel}`,{files: messageAttachments, embed: shameEmbed})
|
return channel.send({files: messageAttachments, embed: shameEmbed})
|
||||||
.catch(() => channel.send(`${reaction.message.author.username}, in: ${reaction.message.channel}`, { embed: shameEmbed}));
|
.catch(() => channel.send(messageAttachments, { embed: shameEmbed}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue