Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //NOTE: Get Supporter (Array)
- function getSupporter() {
- var supporter = [];
- var i = 0;
- backend.getClients().forEach(function(client) {
- client.getServerGroups().forEach(function(group) {
- client.getChannels().forEach(function(ch) {
- spg.spSupporterId.forEach(function(group2) {
- if (group.id() == group2) {
- //NOTE: AFK Channel new (v2)
- if (ch.id() == spc.spAfkChannel.id()) {
- engine.log('#fix - 22');
- } else {
- i = i + 1;
- supporter[i] = client.id();
- }
- }
- });
- });
- });
- )};
- return supporter;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement