Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Update interactionCreate.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev authored Jun 29, 2023
1 parent 972e322 commit 95cc63d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/events/guild/interactionCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module.exports = {
name: "interactionCreate",
async execute(client, Discord, interaction) {
try {
if(!interaction.guild) return;

if(interaction.isButton()) return await buttonInteraction(client, Discord, interaction);
if(interaction.isCommand()) return await commandInteraction(client, Discord, interaction);
} catch(err) {
Expand Down

0 comments on commit 95cc63d

Please sign in to comment.