Skip to content

Commit

Permalink
Fix README.md minor error (#2620)
Browse files Browse the repository at this point in the history
Example was re-using the moved `framework` value.
  • Loading branch information
LaytonGB authored Nov 26, 2023
1 parent 8ac1c46 commit 3bd2e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use serenity::async_trait;
use serenity::prelude::*;
use serenity::model::channel::Message;
use serenity::framework::standard::macros::{command, group};
use serenity::framework::standard::{StandardFramework, CommandResult};
use serenity::framework::standard::{StandardFramework, Configuration, CommandResult};
#[group]
#[commands(ping)]
Expand All @@ -62,7 +62,7 @@ impl EventHandler for Handler {}
#[tokio::main]
async fn main() {
let framework = StandardFramework::new().group(&GENERAL_GROUP);
framework.configure(|c| c.prefix("~")); // set the bot's prefix to "~"
framework.configure(Configuration::new().prefix("~")); // set the bot's prefix to "~"
// Login with a bot token from the environment
let token = env::var("DISCORD_TOKEN").expect("token");
Expand Down

0 comments on commit 3bd2e4e

Please sign in to comment.