discordjs / RPC

A simple RPC client for Discord
MIT License
466 stars 191 forks source link

refactor: cleanup & general refactor #91

Open NotSugden opened 3 years ago

NotSugden commented 3 years ago

reference: this pr is apart of the chain of prs requested from https://github.com/discordjs/RPC/pull/89#issuecomment-693537755

This PR is a general refactor to cleanup some code, return correct values as outlined by the documentation (see previous PR #90)

This PR also adds (back?) the custom Error class to handle errors

important note: some of the documentation around the diff changes will be incorrect, #90 has these changes and should be merged before this

NotSugden commented 3 years ago

i suck at git - apologies for that