Open vilgotf opened 2 years ago
twilight's support for the tracing crate goes unnoticed unless people look at examples, most libs mention it, optionally linking to the readme or docs of the crate. i think this used to be the case with twilight, it'd be nice to have it back
Development best practices for twilight are currently hard to discover. For example, most bots developed with twilight will have a
Context
struct like this:Structuring one's code like this brings two major advantages:
Context
need only take&self
instead ofInMemoryCache
,Cluster
etc.Arc
for multi-threadingBut only
/examples/lavalink-basic-bot
implement this scheme, so it's not easily discoverable for new users.lavalink-basic-bot
is also the only example of a fully functional bot, I believe new users would find additional, longer examples useful.