removeListener of anonymous or imported function
Hello,
I am currently building a bot that notifies people when someone goes live in a voice chat.
The issue is, that when I want to remove the listener, I can't because it's an anonymous function. When I try to introduce an imported/required function, it crashes because
oldState
and newState
are not defined.
How can I remove the listener?
4 Replies