This commit is contained in:
Victor Mignot 2022-10-18 23:39:39 -04:00
parent 3a80a0fad6
commit 2c1dc5d098
No known key found for this signature in database
GPG key ID: FFE4EF056FB5E0D0

View file

@ -13,13 +13,15 @@ use serenity::{prelude::GatewayIntents, Client as DiscordClient};
/// # async fn run() { /// # async fn run() {
/// use yorokobot::client::{Client, ClientCredentials}; /// use yorokobot::client::{Client, ClientCredentials};
/// ///
/// let token = String::from("Your discord token"); /// let discord_token = String::from("Your discord token");
/// let mongo_uri = String::from("Your Mongo URI");
/// ///
/// let credentials = ClientCredentials { /// let credentials = ClientCredentials {
/// discord_token: &token, /// discord_token: &discord_token,
/// mongo_uri: &mongo_uri,
/// }; /// };
/// ///
/// let mut client = Client::new(credentials).await; /// let mut client = Client::new(credentials).await.expect("Error creating client");
/// ///
/// client.connect().await; /// client.connect().await;
/// ///