You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Development best practices for twilight are currently hard to discover. For example, most bots developed with twilight will have a Context struct like this:
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.The text was updated successfully, but these errors were encountered: