Small changes on client doc
This commit is contained in:
parent
1890235ac5
commit
1941a0127f
|
@ -17,8 +17,7 @@ use serenity::{prelude::GatewayIntents, Client as DiscordClient};
|
||||||
///
|
///
|
||||||
/// let credentials = ClientCredentials {
|
/// let credentials = ClientCredentials {
|
||||||
/// discord_token: &discord_token,
|
/// discord_token: &discord_token,
|
||||||
/// db_credentials: DatabaseCredentials::parse(mongo_uri).await.expect("Failed parsing
|
/// db_credentials: DatabaseCredentials::parse(mongo_uri).await.expect("Failed parsing credentials"),
|
||||||
/// credentials"),
|
|
||||||
/// };
|
/// };
|
||||||
///
|
///
|
||||||
/// let mut client = Client::new(credentials).await.expect("Error creating client");
|
/// let mut client = Client::new(credentials).await.expect("Error creating client");
|
||||||
|
|
Loading…
Reference in a new issue