From 7276abf3e3a4d66b62ad3d537445aa17fb06e0dc Mon Sep 17 00:00:00 2001 From: Nex4922 <72197572+Nex2944@users.noreply.github.com> Date: Sun, 20 Feb 2022 15:19:32 +0500 Subject: [PATCH] Update index.js Updated footers & authors as the MessageEmbed footers & authors now each take an object in discord.js@13.6.0 --- src/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index a959de2..42882b8 100644 --- a/src/index.js +++ b/src/index.js @@ -88,8 +88,8 @@ client.on("interactionCreate", async (interaction) => { await paginator.start({ interaction }); } else { const embed = new MessageEmbed() - .setAuthor(snipe.author) - .setFooter(`#${channel.name}`) + .setAuthor({ name: snipe.author }) + .setFooter({ text: `#${channel.name}` }) .setTimestamp(snipe.createdAt); if (snipe.content) embed.setDescription(snipe.content); if (snipe.attachments.length) embed.setImage(snipe.attachments[0]); @@ -110,8 +110,8 @@ client.on("interactionCreate", async (interaction) => { embeds: [ new MessageEmbed() .setDescription(snipe.content) - .setAuthor(snipe.author) - .setFooter(`#${channel.name}`) + .setAuthor({ name: snipe.author }) + .setFooter({ text: `#${channel.name}` }) .setTimestamp(snipe.createdAt), ], } @@ -130,8 +130,8 @@ client.on("interactionCreate", async (interaction) => { snipe.emoji )} on [this message](${snipe.messageURL})` ) - .setAuthor(snipe.user) - .setFooter(`#${channel.name}`) + .setAuthor({ name: snipe.user }) + .setFooter({ text: `#${channel.name}` }) .setTimestamp(snipe.createdAt), ], }