The basics of using commands

In Discord Bots, it is important to first know how commands are used, with legacy prefixed commands and the new Slash Commands system, it may get confusing with how many ways there are to use commands.

In the end, it all boils down to preferences!

How to Read Command Documentation:

Commands are documented by including their arguments / parameters in the command line. It is just text.

The different types of brackets pertain to whether a command argument is required or optional.

  • <arg_name>: The <less than and greater than> symbols mean that this command argument is required.
  • [arg_name]: The [square] brackets mean that this command argument is optional.

Infinite input:

  • <arg name...>: The ellipses mean that this command argument is infinite and all text going beyond will be considered as one argument.

  • [arg name...]: The ellipses mean that this command argument is infinite, yet optional and all text going beyond will be considered as one argument.

Slash Commands:

Discord’s Slash Commands are the standard way of using bot commands. Simply type / in the chat bar and browse through the available commands.

Example:

/help

This will run the help command.