diff options
| author | Maiddog <[email protected]> | 2017-08-27 17:54:16 -0500 |
|---|---|---|
| committer | alex <[email protected]> | 2017-08-28 00:54:16 +0200 |
| commit | 4e360cf86a74051e2d4f98758c65ae29b97b7b8b (patch) | |
| tree | 6f2a02381b507432b089dbdeeabeb89ff496efe8 /examples/03_struct_utilities/src | |
| parent | Prevent malformed opus data from crashing the bot process (#149) (diff) | |
| download | serenity-4e360cf86a74051e2d4f98758c65ae29b97b7b8b.tar.xz serenity-4e360cf86a74051e2d4f98758c65ae29b97b7b8b.zip | |
Fix examples (#151)
Diffstat (limited to 'examples/03_struct_utilities/src')
| -rw-r--r-- | examples/03_struct_utilities/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/03_struct_utilities/src/main.rs b/examples/03_struct_utilities/src/main.rs index 5f777bd..e08cf00 100644 --- a/examples/03_struct_utilities/src/main.rs +++ b/examples/03_struct_utilities/src/main.rs @@ -17,7 +17,7 @@ impl EventHandler for Handler { // In this case, you can direct message a User directly by simply // calling a method on its instance, with the content of the // message. - if let Err(why) = msg.author.dm("Hello!") { + if let Err(why) = msg.author.dm(|m| m.content("Hello!")) { println!("Error when direct messaging user: {:?}", why); } } |