removeEventListener

abstract fun removeEventListener(listener: Any)(source)

Unregisters the listener from JDA and BC events.

Only methods annotated by @BEventListener will be unregistered, use your JDA or ShardManager instance to unregister event listeners that use CoroutineEventListener, ListenerAdapter or EventListener.