Let user optout when the bot is installed to the user

This commit is contained in:
Supositware 2024-06-25 18:04:33 +02:00
parent a86044c7f6
commit 427d3449d5

View file

@ -6,6 +6,8 @@ export default {
.setName('optout')
.setDescription('Opt out of the non commands features and arguments logging (for debugging purposes)'),
category: 'utility',
integration_types: [0, 1],
async execute(interaction, args, client) {
const isOptOut = await db.optout.findOne({ where: { userID: interaction.user.id } });