• 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 getPermissions() does not work with ServerGroup object.

Pheeko

Active Member
When I try to retrieve ServerGroup permission list it prompts with this error: Error in script (event chat): TypeError: 'getPermissions' is not a function
Methods id() and name() works perfectly.
The others like: icon() and getPermissions() returns same error:
Here's the code.
var raw_groups = ev.client.getServerGroups(); raw_groups.forEach(function(e){ engine.log(e.getPermissions()); });
What am I doing wrong?
Thanks in advance.
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
What version are you using? It only got implemented recently.
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Yeah it's our fault to be honest, it wasn't mentioned in the docs.
Thanks, you too ;)
 
Top