diff options
| author | acdenisSK <[email protected]> | 2017-06-29 12:31:05 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-06-29 12:31:05 +0200 |
| commit | 35826915a174c7f3e5d82bbc320d3238ae308d8c (patch) | |
| tree | 7f59e067e778aa2eb6228eb0034bdcae46f7c1b1 /examples/06_voice | |
| parent | Whoops, and add a fail-safe to an upcomming pr to the compiler (diff) | |
| download | serenity-35826915a174c7f3e5d82bbc320d3238ae308d8c.tar.xz serenity-35826915a174c7f3e5d82bbc320d3238ae308d8c.zip | |
Also update examples
Diffstat (limited to 'examples/06_voice')
| -rw-r--r-- | examples/06_voice/src/main.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/examples/06_voice/src/main.rs b/examples/06_voice/src/main.rs index b194548..d1a0c11 100644 --- a/examples/06_voice/src/main.rs +++ b/examples/06_voice/src/main.rs @@ -10,12 +10,21 @@ #[macro_use] extern crate serenity; -use serenity::client::{CACHE, Client}; -use serenity::ext::voice; -use serenity::model::{ChannelId, Message, Mentionable}; +use serenity::prelude::*; +use serenity::client::CACHE; +use serenity::voice; +use serenity::model::*; use serenity::Result as SerenityResult; use std::env; +struct Handler; + +impl EventHandler for Handler { + fn on_ready(&self, _: Context, ready: Ready) { + println!("{} is connected!", ready.user.name); + } +} + fn main() { // Configure the client with your Discord bot token in the environment. let token = env::var("DISCORD_TOKEN") |