Interface CommandListUpdateAction

All Superinterfaces:

public interface CommandListUpdateAction extends RestAction<List<Command>>
Specialized RestAction used to replace existing commands of a guild or globally.
Any commands that currently exist and are not listed through addCommands(CommandData...) will be DELETED!

This operation is idempotent. Commands will persist between restarts of your bot, you only have to create a command once.