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
IllegalArgumentException
- when the constructor of the command listener is not public
Return
CommandClientBuilder!: the CommandClientBuilder
See Also
MessageReceivedCommandListenerMessageEditCommandListener