Skip to content

Commit 1af826e

Browse files
authored
Fix embed option usage of strings with objects (#207)
1 parent 9ec8cd1 commit 1af826e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

commands/handbook.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ module.exports = {
5959
.setTitle(title)
6060
.setURL(`${handbookURL}/${code}`)
6161
.setColor(0x3a76f8)
62-
.setAuthor(`Course Info: ${code} (${UOC} UOC)`, "https://i.imgur.com/EE3Q40V.png")
62+
.setAuthor({
63+
name: `Course Info: ${code} (${UOC} UOC)`,
64+
iconURL: "https://i.imgur.com/EE3Q40V.png",
65+
})
6366
.addFields(
6467
{
6568
name: "Overview",
@@ -106,7 +109,9 @@ module.exports = {
106109
/* }, */
107110
)
108111
.setTimestamp()
109-
.setFooter("Data fetched from Circles' Api");
112+
.setFooter({
113+
text: "Data fetched from Circles' Api",
114+
});
110115
await interaction.reply({ embeds: [courseInfo] });
111116
}
112117
},

0 commit comments

Comments
 (0)