node-groupme icon indicating copy to clipboard operation
node-groupme copied to clipboard

Asynchronous client construction

Open not-so-smart opened this issue 3 years ago • 0 comments

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 be a better idea?

This way, all properties on the Client object can be definitely assigned in the constructor. (no more unnecessary ? types)

not-so-smart avatar Aug 30 '21 18:08 not-so-smart