Skip to content

Commit 3bd2e4e

Browse files
authored
Fix README.md minor error (#2620)
Example was re-using the moved `framework` value.
1 parent 8ac1c46 commit 3bd2e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use serenity::async_trait;
4848
use serenity::prelude::*;
4949
use serenity::model::channel::Message;
5050
use serenity::framework::standard::macros::{command, group};
51-
use serenity::framework::standard::{StandardFramework, CommandResult};
51+
use serenity::framework::standard::{StandardFramework, Configuration, CommandResult};
5252
5353
#[group]
5454
#[commands(ping)]
@@ -62,7 +62,7 @@ impl EventHandler for Handler {}
6262
#[tokio::main]
6363
async fn main() {
6464
let framework = StandardFramework::new().group(&GENERAL_GROUP);
65-
framework.configure(|c| c.prefix("~")); // set the bot's prefix to "~"
65+
framework.configure(Configuration::new().prefix("~")); // set the bot's prefix to "~"
6666
6767
// Login with a bot token from the environment
6868
let token = env::var("DISCORD_TOKEN").expect("token");

0 commit comments

Comments
 (0)