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, |
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 |
}, |
}, |
144 |
// ] |
// ] |
145 |
// }); |
// }); |
146 |
} |
} |
|
} |
|
147 |
|
} |