Fix the event embeds not having the user's avatar on the thumbnail (#213)
This commit is contained in:
parent
0b498eb023
commit
d688d292c3
5 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,7 @@ export default async function GuildMemberAdd(member: GuildMember) {
|
|||
.setTitle('Member Joined')
|
||||
.setDescription(`${member.user} \`${member.user.tag}\``)
|
||||
.setFooter({ text: `Id: ${member.user.id}` })
|
||||
.setThumbnail(member.avatarURL())
|
||||
.addFields([
|
||||
{
|
||||
name: 'Created',
|
||||
|
|
|
@ -13,6 +13,7 @@ export default async function GuildMemberRemove(member: GuildMember) {
|
|||
.setTitle('Member Left')
|
||||
.setDescription(`${member.user} \`${member.user.tag}\``)
|
||||
.setFooter({ text: `Id: ${member.user.id}` })
|
||||
.setThumbnail(member.avatarURL())
|
||||
.addFields([
|
||||
{
|
||||
name: 'Joined',
|
||||
|
|
|
@ -14,6 +14,7 @@ export default async function NicknameChanged(oldMember: GuildMember, newMember:
|
|||
.setTitle('Nickname Changed')
|
||||
.setDescription(`${newMember.user} \`${newMember.user.tag}\``)
|
||||
.setFooter({ text: `Id: ${newMember.user.id}` })
|
||||
.setThumbnail(newMember.avatarURL())
|
||||
.addFields([
|
||||
{
|
||||
name: 'Before',
|
||||
|
|
|
@ -17,6 +17,7 @@ export default async function MessageDelete(message: Message) {
|
|||
.setColor(EmbedColours.Ok)
|
||||
.setTitle("Message Deleted")
|
||||
.setDescription(`${message.author} \`${message.author.tag}\``)
|
||||
.setThumbnail(message.author.avatarURL())
|
||||
.addFields([
|
||||
{
|
||||
name: "Channel",
|
||||
|
|
|
@ -18,6 +18,7 @@ export default async function MessageUpdate(oldMessage: Message, newMessage: Mes
|
|||
.setColor(EmbedColours.Ok)
|
||||
.setTitle("Message Edited")
|
||||
.setDescription(`${newMessage.author} \`${newMessage.author.tag}\``)
|
||||
.setThumbnail(newMessage.author.avatarURL())
|
||||
.addFields([
|
||||
{
|
||||
name: "Channel",
|
||||
|
|
Loading…
Reference in a new issue