Peter
Peter
`ChatManager#fetch(): Promise` `ChatManager#fetch(options: ChatFetchOptions): Promise` Fetches chats from the API. The `options` parameter can be used to specify pagination. Usage: ```js client.chats.fetch() ```
`ClientMember#setNickname(nickname: string): Promise` Changes the client member's nickname in the group. Usage: ```js const group = client.groups.cache.get('12345') group.me.setNickname('Pete') ```
This implementation would need to resolve the `Promise` returned from `Group#add`. this could either be done by long-polling the API or maybe via websockets? if the average `add` call doesn't...
`Group#add(id): Promise` `Group#add(ids: []): Promise` Add a user (or users) to a group. Usage: ```js const group = client.groups.cache.get('12345') group.add('67890') group.add(['67890', '24680']) ```
# Polymorphic send this is going to involve a lot of overload signatures and type checking. `Group#send(text: string): Promise` `Group#send(options: GroupSendMessageOptions): Promise` Sends a message to a group. Usage: ```js...
`FormerGroup#rejoin(): Promise` Rejoins a group that had previously been left. Usage: ```js const formerGroup = client.groups.former.cache.get('12345') formerGroup.rejoin() ```
Some properties on the `Client` object (`Client.user`) rely on asynchronous operations (fetching `/users/me`). Perhaps making the constructor private and providing an async function that returns a new Client object would...