Removed all instances of client.interaction with import client from utils
diff --git a/src/commands/mod/mute.ts b/src/commands/mod/mute.ts
index 854f38f..1ae8dff 100644
--- a/src/commands/mod/mute.ts
+++ b/src/commands/mod/mute.ts
@@ -22,8 +22,7 @@
.addChoices([["Yes", "yes"], ["No", "no"]]))
const callback = async (interaction: CommandInteraction): Promise<any> => {
- // @ts-ignore
- const { log, NucleusColors, renderUser, entry } = interaction.client.logger
+ const { log, NucleusColors, renderUser, entry } = client.logger
const user = interaction.options.getMember("user") as GuildMember
const reason = interaction.options.getString("reason")
const time = {
@@ -200,7 +199,7 @@
guild: interaction.guild.id
}
}
- log(data, interaction.client);
+ log(data, client);
} else {
await interaction.editReply({embeds: [new generateEmojiEmbed()
.setEmoji("PUNISH.MUTE.GREEN")