Skip to content

Commit

Permalink
fix(commands/warn): Add required permissions to run the command
Browse files Browse the repository at this point in the history
fixes #915
  • Loading branch information
kdev committed Dec 29, 2023
1 parent 8f5ad78 commit e1bd164
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/Warn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import type {
} from 'discord.js';
import type { Config } from '../base/Command';
import Command from '../base/Command';
import { PermissionFlagsBits } from 'discord-api-types/v10';

export default class Warn extends Command {
constructor() {
const cmd = new SlashCommandBuilder()
.setName('warn')
.setDescription('warn command')
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages)
.addUserOption(userOption =>
userOption
.setName('user')
Expand Down

0 comments on commit e1bd164

Please sign in to comment.