Skip to content

Commit

Permalink
fix: correct command permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tippfehlr committed Aug 30, 2024
1 parent a1388b5 commit eb22769
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/modules/commands/addActivityRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
APIRole,
SlashCommandBuilder,
ComponentType,
Colors,
} from 'discord.js';

import { Command } from '../commandHandler';
Expand Down
2 changes: 1 addition & 1 deletion src/modules/commands/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from 'discord.js';

import { Command } from '../commandHandler';
import { __, discordTranslations, log } from '../messages';
import { __, discordTranslations } from '../messages';
import { db, getLang } from '../db';

export default {
Expand Down
11 changes: 10 additions & 1 deletion src/modules/commands/setStatusRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@ import { db, getLang } from './../db';
import { Command } from '../commandHandler';

import { __, discordTranslations, getEnumKey } from '../messages';
import { ActivityType, APIRole, Colors, EmbedBuilder, Role, SlashCommandBuilder } from 'discord.js';
import {
ActivityType,
APIRole,
Colors,
EmbedBuilder,
PermissionsBitField,
Role,
SlashCommandBuilder,
} from 'discord.js';
export default {
data: new SlashCommandBuilder()
.setName('setstatusrole')
.setDescription('role to assign on LISTENING/WATCHING/etc.')
.setDescriptionLocalizations(discordTranslations('role to assign on LISTENING/WATCHING/etc.'))
.setDMPermission(false)
.setDefaultMemberPermissions(PermissionsBitField.Flags.ManageRoles)
.addStringOption(option =>
option
.setName('event')
Expand Down

0 comments on commit eb22769

Please sign in to comment.