diff options
| author | acdenisSK <[email protected]> | 2018-08-02 15:55:05 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2018-08-02 15:56:31 +0200 |
| commit | dcbbfe7e38c4aa403e3b341fee3f7b5d3cea19b5 (patch) | |
| tree | 91599cfe96faed84e36fa5e28049ddb098a9fdf6 /examples | |
| parent | Don't delay Ready with cache enabled (diff) | |
| download | serenity-dcbbfe7e38c4aa403e3b341fee3f7b5d3cea19b5.tar.xz serenity-dcbbfe7e38c4aa403e3b341fee3f7b5d3cea19b5.zip | |
Use `Args::full` in the framework example
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/05_command_framework/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/05_command_framework/src/main.rs b/examples/05_command_framework/src/main.rs index be8ff41..9518f8a 100644 --- a/examples/05_command_framework/src/main.rs +++ b/examples/05_command_framework/src/main.rs @@ -263,7 +263,7 @@ fn admin_check(_: &mut Context, msg: &Message, _: &mut Args, _: &CommandOptions) } command!(some_long_command(_ctx, msg, args) { - if let Err(why) = msg.channel_id.say(&format!("Arguments: {:?}", args)) { + if let Err(why) = msg.channel_id.say(&format!("Arguments: {}", args.full())) { println!("Error sending message: {:?}", why); } }); |