Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mezotv committed Jul 6, 2024
2 parents 611ada3 + 1b9a784 commit f7f442c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/buttons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ const buttonInteractionEvent: Event = {
setTimeout(() => client.used.delete(cooldownKey!), cooldown);
}

if (guildDb == null) return;

const guildDB: IGuildModel = guildDb;

return button.execute(interaction, client, guildDB);
return button.execute(interaction, client, guildDb as IGuildModel);
},
};

Expand Down

0 comments on commit f7f442c

Please sign in to comment.