Start of context menus
diff --git a/src/commands/mod/unban.ts b/src/commands/mod/unban.ts
index 81a29a2..d34f303 100644
--- a/src/commands/mod/unban.ts
+++ b/src/commands/mod/unban.ts
@@ -14,6 +14,7 @@
);
const callback = async (interaction: CommandInteraction): Promise<unknown> => {
+ if (!interaction.guild) return;
const bans = await interaction.guild.bans.fetch();
const user = interaction.options.getString("user");
let resolved = bans.find((ban) => ban.user.id === user);
@@ -107,6 +108,7 @@
};
const check = (interaction: CommandInteraction) => {
+ if (!interaction.guild) return;
const member = interaction.member as GuildMember;
const me = interaction.guild.me!;
// Check if Nucleus can unban members