common / me.schlaubi.regnumutils.command / CommandClientBuilder / setCommandListener

setCommandListener

open fun setCommandListener(@NotNull commandListener: @NotNull Class<out CommandListenerBase!>): CommandClientBuilder!

Sets the Class of the currently set CommandListenerBase. Changing this from an MessageReceivedCommandListener to an MessageEditCommandListener will also parse MESSAGE_UPDATE events as commands

Exceptions

IllegalArgumentException - when the constructor of the command listener is not public

Return
CommandClientBuilder!: the CommandClientBuilder

See Also
MessageReceivedCommandListenerMessageEditCommandListener