-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve new user documentation #1629
Labels
t-docs
A change to the documentation
Comments
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: