File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import * as banService from "#service/ban.ts";
1616import { formatDuration } from "#utils/dateUtils.ts" ;
1717
1818export 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" ] ;
Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ import type { ApplicationCommand } from "#commands/command.ts";
1010import type { BotContext } from "#context.ts" ;
1111
1212export 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 ( )
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import type { BotContext } from "#context.ts";
1212import * as banService from "#service/ban.ts" ;
1313
1414export 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" ] ;
You can’t perform that action at this time.
0 commit comments