• 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 Client:getChannelGroups undefined

Ron

Donor
is awesome!
Seems like Client:getChannelGroups() does not exist. Keep getting errors that it's undefined.

Running the latest beta. Has it been replaced by another function/property?
 
The scripting doc is wrong here.

its actually getChannelGroup() instead of getChannelGroups()

which makes more sense, because you can only have one channel group at a time afaik.
Also it will not return an array (which is also wrong in the doc) but instead will return a single group object directly

#vote4docfix

PS: client.getURL() is also not documented at all in the docs, pls add. kthxbye
 
Last edited:
Seems like getChannelGroup() does work, but only partly.

It seems to cache data permanently, it keeps the old one even if I change my channel group, or if I switch channels, etc.
Is there a way to manually purge the cache?
 
yep, can confirm. Looks like the channelgroup the client had the first time seeing him is stored permanently.
 
  • Like
Reactions: Ron
Also another bug since I don't know if I should open another thread for this:

Using Client:getAudioChannel() sometimes causes a nullptr exception, while using Client:getChannels() and getting the first entry doesn't pose any issues.
 
Back
Top Bottom