aboutsummaryrefslogtreecommitdiff
path: root/examples/06_voice/src/main.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-14 19:37:37 -0700
committerZeyla Hellyer <[email protected]>2017-06-14 19:37:37 -0700
commitd3b094aad90b5387b79de01b83ba5f1d7e766705 (patch)
tree71c8444b0d57e0ec4b531d380eb042d64d0cd5c6 /examples/06_voice/src/main.rs
parentReset shard handling on reconnects (diff)
downloadserenity-d3b094aad90b5387b79de01b83ba5f1d7e766705.tar.xz
serenity-d3b094aad90b5387b79de01b83ba5f1d7e766705.zip
Run clippy on examples
Diffstat (limited to 'examples/06_voice/src/main.rs')
-rw-r--r--examples/06_voice/src/main.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/06_voice/src/main.rs b/examples/06_voice/src/main.rs
index 5236376..b194548 100644
--- a/examples/06_voice/src/main.rs
+++ b/examples/06_voice/src/main.rs
@@ -43,7 +43,7 @@ fn main() {
}
command!(deafen(ctx, msg) {
- let guild_id = match CACHE.read().unwrap().get_guild_channel(msg.channel_id) {
+ let guild_id = match CACHE.read().unwrap().guild_channel(msg.channel_id) {
Some(channel) => channel.read().unwrap().guild_id,
None => {
check_msg(msg.channel_id.say("Groups and DMs not supported"));
@@ -89,7 +89,7 @@ command!(join(ctx, msg, args) {
},
};
- let guild_id = match CACHE.read().unwrap().get_guild_channel(msg.channel_id) {
+ let guild_id = match CACHE.read().unwrap().guild_channel(msg.channel_id) {
Some(channel) => channel.read().unwrap().guild_id,
None => {
check_msg(msg.channel_id.say("Groups and DMs not supported"));
@@ -105,7 +105,7 @@ command!(join(ctx, msg, args) {
});
command!(leave(ctx, msg) {
- let guild_id = match CACHE.read().unwrap().get_guild_channel(msg.channel_id) {
+ let guild_id = match CACHE.read().unwrap().guild_channel(msg.channel_id) {
Some(channel) => channel.read().unwrap().guild_id,
None => {
check_msg(msg.channel_id.say("Groups and DMs not supported"));
@@ -127,7 +127,7 @@ command!(leave(ctx, msg) {
});
command!(mute(ctx, msg) {
- let guild_id = match CACHE.read().unwrap().get_guild_channel(msg.channel_id) {
+ let guild_id = match CACHE.read().unwrap().guild_channel(msg.channel_id) {
Some(channel) => channel.read().unwrap().guild_id,
None => {
check_msg(msg.channel_id.say("Groups and DMs not supported"));
@@ -176,7 +176,7 @@ command!(play(ctx, msg, args) {
return Ok(());
}
- let guild_id = match CACHE.read().unwrap().get_guild_channel(msg.channel_id) {
+ let guild_id = match CACHE.read().unwrap().guild_channel(msg.channel_id) {
Some(channel) => channel.read().unwrap().guild_id,
None => {
check_msg(msg.channel_id.say("Error finding channel info"));
@@ -206,7 +206,7 @@ command!(play(ctx, msg, args) {
});
command!(undeafen(ctx, msg) {
- let guild_id = match CACHE.read().unwrap().get_guild_channel(msg.channel_id) {
+ let guild_id = match CACHE.read().unwrap().guild_channel(msg.channel_id) {
Some(channel) => channel.read().unwrap().guild_id,
None => {
check_msg(msg.channel_id.say("Error finding channel info"));
@@ -225,7 +225,7 @@ command!(undeafen(ctx, msg) {
});
command!(unmute(ctx, msg) {
- let guild_id = match CACHE.read().unwrap().get_guild_channel(msg.channel_id) {
+ let guild_id = match CACHE.read().unwrap().guild_channel(msg.channel_id) {
Some(channel) => channel.read().unwrap().guild_id,
None => {
check_msg(msg.channel_id.say("Error finding channel info"));