1.0.11 • Published 2 years ago

discord-help-command-creator v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago