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

Transfer ownership #12

Closed not-so-smart closed 2 years ago

not-so-smart commented 3 years ago

Group#transferOwnershipTo(newOwner: string): Promise<Group>

Transfers ownership of a group to another user.

Usage:

const group = client.groups.cache.get('12345')
group.transferOwnershipTo('67890');

Apparently, the API only does change_owner requests in bulk for some reason. This is dumb, so the library will not reflect this bulk transfer operation. Instead, transfers will be done directly on Group instances and each call will only send one change_owner request, despite the API allowing for multiple to be sent at once.

striker4150 commented 2 years ago

I think this is already implemented?