From 12d6f12f60bd3a3f58ba943db3d34dec22af176b Mon Sep 17 00:00:00 2001 From: Wolfdragon24 Date: Tue, 12 Nov 2024 23:02:51 +1100 Subject: [PATCH] Fix embed option usage of strings with objects --- commands/handbook.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/commands/handbook.js b/commands/handbook.js index 78ac9387..9b86cde6 100644 --- a/commands/handbook.js +++ b/commands/handbook.js @@ -59,7 +59,10 @@ module.exports = { .setTitle(title) .setURL(`${handbookURL}/${code}`) .setColor(0x3a76f8) - .setAuthor(`Course Info: ${code} (${UOC} UOC)`, "https://i.imgur.com/EE3Q40V.png") + .setAuthor({ + name: `Course Info: ${code} (${UOC} UOC)`, + iconURL: "https://i.imgur.com/EE3Q40V.png", + }) .addFields( { name: "Overview", @@ -106,7 +109,9 @@ module.exports = { /* }, */ ) .setTimestamp() - .setFooter("Data fetched from Circles' Api"); + .setFooter({ + text: "Data fetched from Circles' Api", + }); await interaction.reply({ embeds: [courseInfo] }); } },