Fix embeds: expected object, got string

This commit is contained in:
SileNce5k 2023-12-07 14:04:08 +01:00
parent fdcb897e42
commit 1303b19350
No known key found for this signature in database
GPG key ID: 961132EB78C8915F
3 changed files with 7 additions and 7 deletions

View file

@ -13,7 +13,7 @@ module.exports = {
.setColor(15780145)
.setTitle("Information about bot")
.setTimestamp()
.setAuthor(client.user.username, client.user.avatarURL({ dynamic: true, size: 4096 }))
.setAuthor({name: client.user.username, iconURL: client.user.avatarURL({ dynamic: true, size: 4096 })})
.addFields({
name: "General info", value: `Name: ${client.user.username}\nPrefix: ${prefix}\nTotal Servers: ${guildCount}\nCreation Date: ${getCreationDate(client)}\nSource: [Click Here](https://github.com/SileNce5k/discord_bot)`,
},)