Start of context menus
diff --git a/src/actions/tickets/delete.ts b/src/actions/tickets/delete.ts
index 0db4232..33860b7 100644
--- a/src/actions/tickets/delete.ts
+++ b/src/actions/tickets/delete.ts
@@ -4,9 +4,10 @@
import getEmojiByName from "../../utils/getEmojiByName.js";
export default async function (interaction: Discord.CommandInteraction) {
+ if (!interaction.guild) return;
const { log, NucleusColors, entry, renderUser, renderChannel, renderDelta } = client.logger;
- const config = await client.database.guilds.read(interaction.guild!.id);
+ const config = await client.database.guilds.read(interaction.guild.id);
let thread = false;
if (interaction.channel instanceof Discord.ThreadChannel) thread = true;
const threadChannel = interaction.channel as Discord.ThreadChannel;