• 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.

Problem retrieving server groups

Status
Not open for further replies.

LmGOD

New Member
I want to make a script that, when a channel is created, the bot edit the description something like this:
Channel created by: [Group] Nickname at xx:xx.

The problem is when I try to rescue the player's groups, since I tried to use getServerGroups() anyway, but without success. :(

If anyone can show me a basic way to recover these groups (even without a condition), I'll be grateful.
 

Diesmon

Tuetchen Dominator
is awesome!
Contributor
Insider
event.on("channelCreate", function(createEvent){
var allGroupsFromTheClient = createEvent.invoker.getServerGroups()
});

Formatting is fucked cause I'm on mobile, but that's how you get the server Groups (as Array) of the client who created the channel.
 
Status
Not open for further replies.
Top