@@ -25,17 +25,17 @@ The simplest prefix command needs one command class with an argument schema and
2525import { PrefixArg , PrefixCommand } from ' @spraxium/common' ;
2626
2727@PrefixCommand ({
28- name: ' roll' ,
29- aliases: [' r' , ' dice' ],
30- description: ' Roll one or more dice.' ,
31- category: ' Fun' ,
32- usage: ' !roll [sides] [count]' ,
33- cooldown: 3 ,
28+ name: ' roll' ,
29+ aliases: [' r' , ' dice' ],
30+ description: ' Roll one or more dice.' ,
31+ category: ' Fun' ,
32+ usage: ' !roll [sides] [count]' ,
33+ cooldown: 3 ,
3434})
3535export class RollCommand {
36- @PrefixArg .Integer (' sides' , { required: false , min: 2 , max: 1000 })
37- @PrefixArg .Integer (' count' , { required: false , min: 1 , max: 25 })
38- build() {}
36+ @PrefixArg .Integer (' sides' , { required: false , min: 2 , max: 1000 })
37+ @PrefixArg .Integer (' count' , { required: false , min: 1 , max: 25 })
38+ build() {}
3939}
4040
4141````
@@ -78,23 +78,27 @@ For command families like `!mod warn`, `!mod kick`, and `!mod ban`, use _@Prefix
7878import { PrefixArg, PrefixCommand, PrefixSubcommand } from ' @spraxium/common' ;
7979
8080@PrefixCommand({
81- name: ' mod' , aliases: [' m' ], description: ' Moderation commands.' , category: ' Moderation' , usage: ' !mod <warn|kick|ban> <user> [reason]' ,
81+ name: ' mod' ,
82+ aliases: [' m' ],
83+ description: ' Moderation commands.' ,
84+ category: ' Moderation' ,
85+ usage: ' !mod <warn|kick|ban> <user> [reason]' ,
8286})
8387export class ModCommand {
84- @PrefixSubcommand ({ name: ' warn' , description: ' Warn a user' })
85- @PrefixArg .User (' target' )
86- @PrefixArg .Rest (' reason' , { required: false })
87- warn() {}
88-
89- @PrefixSubcommand ({ name: ' kick' , description: ' Kick a user' })
90- @PrefixArg .User (' target' )
91- @PrefixArg .Rest (' reason' , { required: false })
92- kick() {}
93-
94- @PrefixSubcommand ({ name: ' ban' , description: ' Ban a user' })
95- @PrefixArg .User (' target' )
96- @PrefixArg .Rest (' reason' , { required: false })
97- ban() {}
88+ @PrefixSubcommand ({ name: ' warn' , description: ' Warn a user' })
89+ @PrefixArg .User (' target' )
90+ @PrefixArg .Rest (' reason' , { required: false })
91+ warn() {}
92+
93+ @PrefixSubcommand ({ name: ' kick' , description: ' Kick a user' })
94+ @PrefixArg .User (' target' )
95+ @PrefixArg .Rest (' reason' , { required: false })
96+ kick() {}
97+
98+ @PrefixSubcommand ({ name: ' ban' , description: ' Ban a user' })
99+ @PrefixArg .User (' target' )
100+ @PrefixArg .Rest (' reason' , { required: false })
101+ ban() {}
98102}
99103
100104` ` ` `
0 commit comments