beelzebub
A client for Discord's HTTP REST API.
Structure
Beelzebub draws inspiration from skwair/harmony in terms of design.
Discord resources that are instanced and scoped to an ID, or more, live in their own packages, which can be found in the flies
directory. Each resource can be created with its respective method (e.g., Guild(), User(), etc) found on the main Devil
type.
Some resources do not have a respective subpackage. One such instance of this is Emoji, as they are scoped to a Guild. So to perform operations on an Emoji, one would first need to create a Guild resource (henceforth "Fly" (because Beelzebub, get it?)) with its respective factory, and then perform whatever operations needed.
Tests
You may have noticed there are no tests of any kind in this package. Perhaps controversially, due to the nature of what Beelzebub does, I've opted to omit tests. The consequences of this decision are noted, but I'm going to roll with the punches. If you have the willpower, time, and/or patience to write unit tests, by all means, go ahead and PR it.
License
MIT