forked from Supositware/Haha-Yes
Added star count and chnaged embed layout
This commit is contained in:
parent
fc36b6dfce
commit
b3230a1287
1 changed files with 7 additions and 3 deletions
|
@ -46,8 +46,10 @@ class MessageReactionAddListener extends Listener {
|
||||||
|
|
||||||
const starEmbed = new MessageEmbed()
|
const starEmbed = new MessageEmbed()
|
||||||
.setColor(reaction.message.member.displayHexColor)
|
.setColor(reaction.message.member.displayHexColor)
|
||||||
.setDescription(`[Jump to message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})\n\n${messageContent}`)
|
|
||||||
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
||||||
|
.setDescription(messageContent)
|
||||||
|
.addField('Jumo to', `[message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`)
|
||||||
|
.setFooter(reaction.count + ' ' + staremote)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
return channel.send(`in: ${reaction.message.channel}`, {files: messageAttachments, embed: starEmbed})
|
return channel.send(`in: ${reaction.message.channel}`, {files: messageAttachments, embed: starEmbed})
|
||||||
|
@ -84,8 +86,10 @@ class MessageReactionAddListener extends Listener {
|
||||||
|
|
||||||
const shameEmbed = new MessageEmbed()
|
const shameEmbed = new MessageEmbed()
|
||||||
.setColor(reaction.message.member.displayHexColor)
|
.setColor(reaction.message.member.displayHexColor)
|
||||||
.setDescription(`[Jump to message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})\n\n${messageContent}`)
|
|
||||||
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
||||||
|
.setDescription(messageContent)
|
||||||
|
.addField('Jumo to', `[message](https://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id})`)
|
||||||
|
.setFooter(reaction.count + ' ' + shameemote)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
return channel.send(`in: ${reaction.message.channel}`,{files: messageAttachments, embed: shameEmbed})
|
return channel.send(`in: ${reaction.message.channel}`,{files: messageAttachments, embed: shameEmbed})
|
||||||
|
|
Loading…
Reference in a new issue