diff --git a/src/framework/create_command.rs b/src/framework/create_command.rs index 43460e5b783..4f3ab27db99 100644 --- a/src/framework/create_command.rs +++ b/src/framework/create_command.rs @@ -38,14 +38,14 @@ impl CreateCommand { /// # struct Handler; /// # impl EventHandler for Handler {} /// use serenity::client::{Client, Context}; - /// use serenity::framework::Command; + /// use serenity::framework::{Command, BuiltinFramework}; /// use serenity::model::Message; /// use std::env; /// use std::sync::Arc; /// /// let mut client = Client::new(&env::var("DISCORD_TOKEN").unwrap(), Handler); /// - /// client.with_framework(|f| f + /// client.with_framework(BuiltinFramework::new() /// .configure(|c| c.prefix("~")) /// .command("ping", |c| c /// .check(owner_check)