/[sudobot]/trunk/src/commands/settings/HelpCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/settings/HelpCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 548 by rakin, Mon Jul 29 17:30:28 2024 UTC revision 549 by rakin, Mon Jul 29 17:30:46 2024 UTC
# Line 45  export default class HelpCommand extends Line 45  export default class HelpCommand extends
45    
46      async run(client: DiscordClient, message: Message | CommandInteraction, options: CommandOptions | InteractionOptions) {      async run(client: DiscordClient, message: Message | CommandInteraction, options: CommandOptions | InteractionOptions) {
47          if ((options.isInteraction && !options.options.getString('command')) || (!options.isInteraction && options.args[0] === undefined)) {          if ((options.isInteraction && !options.options.getString('command')) || (!options.isInteraction && options.args[0] === undefined)) {
48              const pagination = new Pagination(getAllCommandData(), {              const commandData = getAllCommandData();
49                const pagination = new Pagination(commandData, {
50                  channel_id: message.channel!.id,                  channel_id: message.channel!.id,
51                  guild_id: message.guild!.id,                  guild_id: message.guild!.id,
52                  limit: 10,                  limit: 10,
# Line 66  export default class HelpCommand extends Line 67  export default class HelpCommand extends
67                          },                          },
68                          description,                          description,
69                          footer: {                          footer: {
70                              text: `Page ${currentPage} of ${maxPages}`                              text: `Page ${currentPage} of ${maxPages} • ${commandData.length} commands total`
71                          }                          }
72                      });                      });
73                  },                  },
# Line 143  export default class HelpCommand extends Line 144  export default class HelpCommand extends
144          //     ]          //     ]
145          // });          // });
146      }      }
 }  
147    }

Legend:
Removed from v.548  
changed lines
  Added in v.549

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26