AbstractRuns when an autocomplete interaction is called for this function.
Autocomplete interaction.
AbstractcreateAbstractexecuteRuns when the command is run.
Command interaction
User who ran it
AbstractgetThe name of the command.
The name
If this command is a global command
If this command is a guild command
Runs when the command is run only if the command is run in a DM or in a server without the bot
Command interaction
The base class for creating commands.
See Bot.refreshCommands for an example implementation.