Skip to content

Commit

Permalink
Fix command permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
imxeno committed Jun 26, 2024
1 parent 8a8bfa4 commit 912008c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion apps/bot/src/modules/boards/commands/board-debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ export class BoardDebugCommand extends Command {
super(context, {
...options,
runIn: CommandOptionsRunTypeEnum.GuildAny,
requiredUserPermissions: [PermissionFlagsBits.Administrator],
});
}

public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand((builder) =>
builder
.setDefaultMemberPermissions("0")
.setName("board-debug")
.setNameLocalizations({
pl: "forum-debug",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export class ManagedRolesManagedRoleCommand extends Command {
super(context, {
...options,
runIn: CommandOptionsRunTypeEnum.GuildAny,
requiredUserPermissions: [PermissionFlagsBits.Administrator],
});
}

Expand Down

0 comments on commit 912008c

Please sign in to comment.