Skip to content

Possibility to remove Events from EventEmitter #79

@tomhatzer

Description

@tomhatzer

Hi guys!

I'm still working with coffea and I really like it :)

As I can see, there are 3 events that get created by the ".on()" method.

eg.

function parseCmd(event) {

}
client.on('command', parseCmd);

Normally I could call

client.removeListener('command', parseCmd);

and the event would be gone, but not here. If I do execute the removeListener, nothing happens and the events stay where they are. Nothing gets removed.

Do you have an idea how I can remove the events properly?

Thanks!

Tom

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions