diff options
| author | Mei <[email protected]> | 2017-05-16 21:24:42 -0400 |
|---|---|---|
| committer | zeyla <[email protected]> | 2017-05-16 18:24:42 -0700 |
| commit | ae395f44361a9a9b488b31d6ac0cb54e0ee9e7a1 (patch) | |
| tree | 85d7c87b52e1f02e7e1ce727d1a1e74d19b96fe1 | |
| parent | Don't skip everyone role when checking channel overwrites (diff) | |
| download | serenity-ae395f44361a9a9b488b31d6ac0cb54e0ee9e7a1.tar.xz serenity-ae395f44361a9a9b488b31d6ac0cb54e0ee9e7a1.zip | |
Remove deprecated login_bot function from docs
`Client::login_bot` is now deprecated.
Users should instead use `Client::login`.
| -rw-r--r-- | README.md | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -8,8 +8,7 @@ Serenity is a Rust library for the Discord API. View the [examples] on how to make and structure a bot. -Serenity supports both bot and user login via the use of [`Client::login_bot`] -and [`Client::login_user`]. +Serenity supports bot login via the use of [`Client::login`]. You may also check your tokens prior to login via the use of [`validate_token`]. @@ -47,7 +46,7 @@ use std::env; fn main() { // Login with a bot token from the environment - let mut client = Client::login_bot(&env::var("DISCORD_TOKEN").expect("token")); + let mut client = Client::login(&env::var("DISCORD_TOKEN").expect("token")); client.with_framework(|f| f .configure(|c| c.prefix("~")) // set the bot's prefix to "~" .on("ping", ping)); @@ -136,8 +135,7 @@ Voice+youtube-dl: - [discordrb][rel:discordrb] (Ruby) [`Cache`]: https://serenity.zey.moe/serenity/ext/cache/struct.Cache.html -[`Client::login_bot`]: https://serenity.zey.moe/serenity/client/struct.Client.html#method.login_bot -[`Client::login_user`]: https://serenity.zey.moe/serenity/client/struct.Client.html#method.login_user +[`Client::login`]: https://serenity.zey.moe/serenity/client/struct.Client.html#method.login [`Client::on_message`]: https://serenity.zey.moe/serenity/client/struct.Client.html#method.on_message [`Shard`]: https://serenity.zey.moe/serenity/client/gateway/struct.Shard.html [`Context`]: https://serenity.zey.moe/serenity/client/struct.Context.html |