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

DE Wie bekommt man groupIds

Status
Not open for further replies.

flyth

is reticulating splines
Staff member
Developer
Contributor
Bis dahin ist wohl nur die ID und nicht der Name verfügbar.

Code:
if (ev.clientServerGroups) {
    ev.clientServerGroups.forEach(function(group) {
        log('Group found: ' + group);
    });
} else {
    log('No groups found.');
}
 
Darauf bekomme ich

2015/08/24 09:18:47 626411f0 4e86d506 INFO Group found: [object Object]
2015/08/24 09:18:47 626411f0 4e86d506 INFO Group found: [object Object]
2015/08/24 09:18:47 626411f0 4e86d506 INFO Group found: [object Object]
 

flyth

is reticulating splines
Staff member
Developer
Contributor
Dann hab' ich mich vertan und es ist doch schon die neue Variante, nur dass die Felder statt id und name i und n heißen, sorry.
Sobald das alles stabil ist, gibt's auch eine ordentliche Doku.

Code:
if (ev.clientServerGroups) {
    ev.clientServerGroups.forEach(function(group) {
        log('Group found: ' + group.n + ', #' + group.i);
    });
} else {
    log('No groups found.');
}
 
Status
Not open for further replies.
Top