aboutsummaryrefslogtreecommitdiff
path: root/examples/07_sample_bot_structure/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/07_sample_bot_structure/src')
-rw-r--r--examples/07_sample_bot_structure/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/07_sample_bot_structure/src/main.rs b/examples/07_sample_bot_structure/src/main.rs
index 37227cc..7fc415c 100644
--- a/examples/07_sample_bot_structure/src/main.rs
+++ b/examples/07_sample_bot_structure/src/main.rs
@@ -15,7 +15,7 @@ extern crate serenity;
mod commands;
use serenity::prelude::*;
-use serenity::framework::BuiltinFramework;
+use serenity::framework::StandardFramework;
use std::env;
struct Handler; impl EventHandler for Handler {}
@@ -23,7 +23,7 @@ struct Handler; impl EventHandler for Handler {}
fn main() {
let mut client = Client::new(&env::var("DISCORD_TOKEN").unwrap(), Handler);
- client.with_framework(BuiltinFramework::new()
+ client.with_framework(StandardFramework::new()
.configure(|c| c.prefix("~"))
.command("ping", |c| c.exec(commands::meta::ping))
.command("latency", |c| c.exec(commands::meta::latency))