pretty big font for such a wrong answer... the function does not existev.client.getServerGroupByName
it tells you the groups of the client!
Dint u posted this xd, i am tired, srypretty big font for such a wrong answer... the function does not exist
if (hasServerGroupWithName(client, "foogroup")) {
// do stuff
}
function hasServerGroupWithName(client, name)
return client.getServerGroups().some(function (group) {
return group.name() == name
})
}