forked from Supositware/Haha-Yes
Add user permission
This commit is contained in:
parent
c24520dd24
commit
0f64fd79f2
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
import { SlashCommandBuilder, ButtonBuilder, ButtonStyle, ActionRowBuilder } from 'discord.js';
|
||||
import { SlashCommandBuilder, ButtonBuilder, ButtonStyle, ActionRowBuilder, PermissionFlagsBits } from 'discord.js';
|
||||
import db from '../../models/index.js';
|
||||
|
||||
export default {
|
||||
|
@ -6,6 +6,7 @@ export default {
|
|||
.setName('autoresponse')
|
||||
.setDescription('Enable or disable autoresponse'),
|
||||
category: 'utility',
|
||||
userPermissions: [PermissionFlagsBits.ManageMessages],
|
||||
async execute(interaction, args, client) {
|
||||
const autoresponseStat = await db.autoresponseStat.findOne({ where: { serverID: interaction.guild.id } });
|
||||
|
||||
|
|
Loading…
Reference in a new issue