Skip to content

Commit

Permalink
Fix embed option usage of strings with objects (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Domin0de authored Nov 12, 2024
1 parent 9ec8cd1 commit 1af826e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions commands/handbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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] });
}
},
Expand Down

0 comments on commit 1af826e

Please sign in to comment.