JSPM

getadminsofsteamgroup

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q38226F
  • License MIT

Used to get Admins/Moderators SteamID's of a steamgroup

Package Exports

  • getadminsofsteamgroup

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (getadminsofsteamgroup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Get Admins Of Steam Group

Build Status

Usage Example

const getAdminsOfSteamGroup = require('getAdminsOfSteamGroup'); // CommonJS
import getAdmins from 'getadminsofsteamgroup' //TypeScript


getAdmins.getMembers('tradingcards', getAdminsOfSteamGroup.EGroupRank.Both)
    .then(members => {
        //Pretty log members to console
        console.log(JSON.stringify(members, null, "\t"))
    })
    .catch(err => {
        console.error(err);
    })

Types

enum EGroupRank {
    "Owners": 0,
    "Moderators": 1,
    "Both": 2
}
type Members = {
    name: string,
    steamID64: string,
    rank: "Owner" | "Officer" | "Moderator"
}

Method

getMembers(groupID, groupRank[, cookies])

  • groupID - Required. groups64ID or the part after /groups/
  • groupRank - Required. typeof EGroupRank
  • cookies - Optional. Array of cookies to get members of private groups. Type:key=value
  • Returns Promise<Members[]> Array Of Members