Skip to main content
Removes a previously registered event listener.

Signature

Parameters

Returns

this โ€” the client instance, allowing method chaining.
You must pass the same function reference that was used with on(). Anonymous functions canโ€™t be removed.

Example

More Information

Last modified on November 3, 2026