groupme-js / node-groupme

The only GroupMe API library for NodeJS that isn't a million years old.
https://groupme.js.org
MIT License
27 stars 11 forks source link

Get active groups #4

Closed not-so-smart closed 2 years ago

not-so-smart commented 3 years ago

GroupManager#fetch(): Promise<Collection<string, Group>> GroupManager#fetch(id: string): Promise<Group> GroupManager#fetch(ids: string[]): Promise<Collection<string, Group | null>>

Fetches groups. If called with no parameters, fetches all groups. If a single group ID is specified, fetches only that group. If an array of group IDs is specified, fetches those groups and returns a Collection of groups fetched.

Usage:

client.groups.fetch()
client.groups.fetch('123456789')
client.groups.fetch(['123456789', '987654321'])