Removed all instances of client.interaction with import client from utils
diff --git a/src/commands/user/avatar.ts b/src/commands/user/avatar.ts
index eb9042a..9a84118 100644
--- a/src/commands/user/avatar.ts
+++ b/src/commands/user/avatar.ts
@@ -4,6 +4,7 @@
import generateEmojiEmbed from "../../utils/generateEmojiEmbed.js";
import getEmojiByName from "../../utils/getEmojiByName.js";
import generateKeyValueList from "../../utils/generateKeyValueList.js";
+import client from "../../client.js"
const command = (builder: SlashCommandSubcommandBuilder) =>
builder
@@ -12,8 +13,7 @@
.addUserOption(option => option.setName("user").setDescription("The user to get the avatar of | Default: Yourself"))
const callback = async (interaction: CommandInteraction) => {
- // @ts-ignore
- const { renderUser } = interaction.client.logger
+ const { renderUser } = client.logger
let member = (interaction.options.getMember("user") || interaction.member) as Discord.GuildMember;
await interaction.reply({embeds: [new generateEmojiEmbed()
.setTitle("User Info")