Skip to content

Commit

Permalink
fix: unknown interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetfulskybro committed Jan 1, 2024
1 parent 6cd96f1 commit 9e30d2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/events/interactionCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { captureException } from "@sentry/node";
const event: Event = {
event: "interactionCreate",
execute: async (client: WouldYou, interaction: Interaction) => {
if (!interaction || !interaction.channel) return;

const user = await UserModel.findOne({ userID: interaction.user.id });

if (!user) {
Expand Down

0 comments on commit 9e30d2e

Please sign in to comment.