discord-help-command-creator
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

Discord Help-Command Creator

ONLY WORKS IN THE SAPPHIRE FRAMEWORK!!

Typescript example:

  1. Create a help command file.
  2. 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);
  }
}

Readme

Keywords

Package Sidebar

Install

npm i discord-help-command-creator

Weekly Downloads

0

Version

1.0.11

License

MIT

Unpacked Size

54.7 kB

Total Files

9

Last publish

Collaborators

  • majesticstring