You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I am using the code snippet from @jirwin that he gave me in #434 I need to know from which server a meassage is send. Is there a way to get this value?
The text was updated successfully, but these errors were encountered:
@MTRNord you could include the client in your listeners, so in your function you always have the appropriate client available.
varclient1=Client(...);varclient2=Client(...);varclients=[client1,client2];functioneventHandler(callback){console.log("Now when this function is called, 'this' is equal to the client that received the message");};functionaddListener(event,callback){clients.forEach(function(client){client.addListener(event,eventHandler.bind(client));});}
that is not working :/ now the bot is not working anymore :/ i will better leave it as before. (the function is triggered but bot is not responding anymore.
Since I am using the code snippet from @jirwin that he gave me in #434 I need to know from which server a meassage is send. Is there a way to get this value?
The text was updated successfully, but these errors were encountered: