Skip to content

Commit 364ba7e

Browse files
committed
Add flags regardless
1 parent 5633e44 commit 364ba7e

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/commands/modcommands/ban.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import * as banService from "#service/ban.ts";
1616
import { formatDuration } from "#utils/dateUtils.ts";
1717

1818
export default class BanCommand implements ApplicationCommand, MessageCommand {
19+
modCommand = true; // needed if invoked via text, not via slash
1920
name = "ban";
2021
description = "Joa, bannt halt einen ne?";
2122
requiredPermissions: readonly PermissionsString[] = ["BanMembers"];

src/commands/modcommands/ghostwriter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ import type { ApplicationCommand } from "#commands/command.ts";
1010
import type { BotContext } from "#context.ts";
1111

1212
export default class GhostwriterCommand implements ApplicationCommand {
13+
modCommand = true;
1314
name = "gw";
1415
description = "Goethe sein Vater";
1516
requiredPermissions: readonly PermissionsString[] = ["BanMembers"];
17+
1618
lastBlame: Date | null = null;
1719
get applicationCommand() {
1820
return new SlashCommandBuilder()

src/commands/modcommands/unban.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import type { BotContext } from "#context.ts";
1212
import * as banService from "#service/ban.ts";
1313

1414
export default class UnbanCommand implements ApplicationCommand, MessageCommand {
15+
modCommand = true; // needed if invoked via text, not via slash
1516
name = "unban";
1617
description = "Joa, unbannt halt einen ne?";
1718
requiredPermissions: readonly PermissionsString[] = ["BanMembers"];

0 commit comments

Comments
 (0)