File tree Expand file tree Collapse file tree 3 files changed +73
-0
lines changed
Expand file tree Collapse file tree 3 files changed +73
-0
lines changed Original file line number Diff line number Diff line change 304304 - `` description `` : The description of the customization to be set for the user.
305305- ** Subcommands:** None
306306
307+ # UWFLOW
308+ ## uwflow
309+ - ** Aliases:** None
310+ - ** Description:** Handle UWFlow commands.
311+ - ** Examples:**
312+ - ** Options:** None
313+ - ** Subcommands:** ` info `
314+
315+ ## uwflow info
316+ - ** Aliases:** ` information ` , ` i `
317+ - ** Description:** Get info about courses using UWFlow.
318+ - ** Examples:** <br >` .uwflow info ` <br >` .uwflow information ` <br >` .uwflow i `
319+ - ** Options:** None
320+ - ** Subcommands:** None
321+
307322# SUGGESTION
308323## suggestion
309324- ** Aliases:** `` suggest ``
Original file line number Diff line number Diff line change 1+ import { container } from '@sapphire/framework' ;
2+ import {
3+ CodeyCommandDetails ,
4+ SapphireMessageExecuteType ,
5+ SapphireMessageResponse ,
6+ } from '../../codeyCommand' ;
7+
8+ const uwflowInfoExecuteCommand : SapphireMessageExecuteType = async (
9+ _client ,
10+ _messageFromUser ,
11+ _args ,
12+ ) : Promise < SapphireMessageResponse > => {
13+ return 'UWFlow is a website where students can view course reviews and ratings.' ;
14+ } ;
15+
16+ export const uwflowInfoCommandDetails : CodeyCommandDetails = {
17+ name : 'info' ,
18+ aliases : [ 'information' , 'i' ] ,
19+ description : 'Get info about courses using UWFlow.' ,
20+ detailedDescription : `**Examples:**
21+ \`${ container . botPrefix } uwflow info\`
22+ \`${ container . botPrefix } uwflow information\`
23+ \`${ container . botPrefix } uwflow i\`` ,
24+
25+ isCommandResponseEphemeral : false ,
26+ messageWhenExecutingCommand : 'Getting information about UWFlow:' ,
27+ executeCommand : uwflowInfoExecuteCommand ,
28+ options : [ ] ,
29+ subcommandDetails : { } ,
30+ } ;
Original file line number Diff line number Diff line change 1+ import { Command } from '@sapphire/framework' ;
2+ import { uwflowInfoCommandDetails } from '../../commandDetails/uwflow/info' ;
3+ import { CodeyCommand , CodeyCommandDetails } from '../../codeyCommand' ;
4+
5+ const uwflowCommandDetails : CodeyCommandDetails = {
6+ name : 'uwflow' ,
7+ aliases : [ ] ,
8+ description : 'Handle UWFlow commands.' ,
9+ detailedDescription : `**Examples:**` ,
10+ options : [ ] ,
11+ subcommandDetails : {
12+ info : uwflowInfoCommandDetails ,
13+ } ,
14+ defaultSubcommandDetails : uwflowInfoCommandDetails ,
15+ } ;
16+
17+ export class UWFlowCommand extends CodeyCommand {
18+ details = uwflowCommandDetails ;
19+
20+ public constructor ( context : Command . Context , options : Command . Options ) {
21+ super ( context , {
22+ ...options ,
23+ aliases : uwflowCommandDetails . aliases ,
24+ description : uwflowCommandDetails . description ,
25+ detailedDescription : uwflowCommandDetails . detailedDescription ,
26+ } ) ;
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments