discord-help-command-creator
v1.0.11
Published
A utility for discord.js to create a help command
Downloads
3
Readme
Discord Help-Command Creator
ONLY WORKS IN THE SAPPHIRE FRAMEWORK!!
Typescript example:
- Create a help command file.
- Add some boilerplate:
import { ApplyOptions } from '@sapphire/decorators';
import {
ApplicationCommandRegistry,
Command,
CommandOptions,
RegisterBehavior,
} from '@sapphire/framework';
import type { CommandInteraction, EmbedField } from 'discord.js';
import {
PaginatedMessage,
type PaginatedMessagePage,
} from '@sapphire/discord.js-utilities';
import { createHelpCommand } from 'discord-help-command-creator';
@ApplyOptions<CommandOptions>({
requiredClientPermissions: ['EMBED_LINKS', 'SEND_MESSAGES'],
})
export class UserCommand extends Command {
public async messageRun(message: Message) {
createHelpCommand(this.container.stores.get('commands'), message);
}
}