1.0.11 • Published 3 years ago

discord-help-command-creator v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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);
  }
}
1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago