File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ use serenity::async_trait;
4848use serenity::prelude::*;
4949use serenity::model::channel::Message;
5050use 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]
6363async 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");
You can’t perform that action at this time.
0 commit comments