From 1303b1935000ac2125d07fc8ec088c31c524f25c Mon Sep 17 00:00:00 2001
From: SileNce5k <ozzynexus@gmail.com>
Date: Thu, 7 Dec 2023 14:04:08 +0100
Subject: [PATCH] Fix embeds: expected object, got string

---
 commands/info/botinfo.js  |  2 +-
 commands/info/help.js     |  2 +-
 commands/info/userinfo.js | 10 +++++-----
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/commands/info/botinfo.js b/commands/info/botinfo.js
index f9fb01c..a6678fb 100644
--- a/commands/info/botinfo.js
+++ b/commands/info/botinfo.js
@@ -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)`,
 			},)
diff --git a/commands/info/help.js b/commands/info/help.js
index c3529da..edcc801 100644
--- a/commands/info/help.js
+++ b/commands/info/help.js
@@ -30,7 +30,7 @@ module.exports = {
 			.setColor(15780145)
 			.setTitle("Commands")
 			.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 })})
 
 		for (const file of commandFiles) {
 			const command = require(`../../${file}`);
diff --git a/commands/info/userinfo.js b/commands/info/userinfo.js
index 858a2da..c326eb3 100644
--- a/commands/info/userinfo.js
+++ b/commands/info/userinfo.js
@@ -50,15 +50,15 @@ module.exports = {
 			discriminator = "";
 		let username = `**${user.user.username}#${user.user.discriminator}**${nickname}`
 		const embed = new EmbedBuilder()
-			.setThumbnail(user.user.avatarURL({ format: 'png', dynamic: true, size: 2048 }))
-			.setColor(roleColor)
+			.setThumbnail({url: user.user.avatarURL({ format: 'png', dynamic: true, size: 2048 })})
+			.setColor({color: roleColor})
 			.setTimestamp()
-			.setAuthor(user.user.username, user.user.avatarURL({ format: 'png', dynamic: true, size: 2048 }))
-			.addFields()([
+			.setAuthor({name: user.user.username, iconURL: user.user.avatarURL({ dynamic: true, size: 4096 })})
+			.addFields([
 				{ name: "Username", value: username, inline: false },
 				{ name: "Status", value: status, inline: true },
 
-			])
+			]);
 		if (isPresence)
 			embed.addFields([{ name: "Presence", value: user.presence.activities[0].name, inline: false }])
 		if (presenceDetails != 0)