• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN Script Dev - Help

Alfredo Lima Verde

Helping Hand
Hello, I'm trying to do (edit an existing script) to modify it to Discord but the script not finds the getClientCount, anyone have any idea?
 

Diesmon

Tuetchen Dominator
is awesome!
Contributor
Insider
My Idea:

Give us a code snippet or live with the answer: "then make it work"

What else do you expect us to say? It works for me? Ok so here it is.. it works for me.
 

Alfredo Lima Verde

Helping Hand
getClientCount for Discord
Error
Code:
Error in script (event clientMove): TypeError: Cannot access member 'getClientCount' of undefined at Comandos.js:31:13
 

Diesmon

Tuetchen Dominator
is awesome!
Contributor
Insider
Huray, that's the error log.
I still don't know how the code looks, but well...

It says it can't execute the methode getClientCount() of a empty (undefined) element/var at line 31 and column 13
Aka there is no channel at that position to get a client count from.
 
Last edited:
Top