diff options
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); } } |