Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace builtins

Index

Variables

Variables

help: { command: Command; handler: (__namedParameters: HelpOptions) => DiscordExpressHandler }

Type declaration

  • command: Command
  • handler: (__namedParameters: HelpOptions) => DiscordExpressHandler
      • Help is a built in help command you can use

        example
        import {Client, createCommands, builtin} from "discord-express"

        const commands = createCommands({
        // Your commands
        help: builtin.help.command,
        })

        const client = new Client({
        intents: ["GUILD_MESSAGES", "GUILDS"],
        authToken: process.env.TOKEN,
        })

        client.registerCommands(commands, process.env.CLIENT_ID)
        client.initExpress()

        client.command("help", builtin.help.handler({commands}))

        Parameters

        Returns DiscordExpressHandler

Generated using TypeDoc