aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-02-11 18:07:52 -0800
committerZeyla Hellyer <[email protected]>2017-02-11 18:07:52 -0800
commit46d6cd4dda754db095f88dd864d05eaae8d3cba6 (patch)
treea38c9bab6450bd8b55c4c3df360d4e3cefed97ea /examples
parentSmall amount of voice docs (diff)
downloadserenity-46d6cd4dda754db095f88dd864d05eaae8d3cba6.tar.xz
serenity-46d6cd4dda754db095f88dd864d05eaae8d3cba6.zip
Update voice example to latest changes
Diffstat (limited to 'examples')
-rw-r--r--examples/07_voice/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/07_voice/src/main.rs b/examples/07_voice/src/main.rs
index 35dcedf..c70a7c3 100644
--- a/examples/07_voice/src/main.rs
+++ b/examples/07_voice/src/main.rs
@@ -63,7 +63,7 @@ command!(deafen(context, message) {
},
};
- if handler.is_deafened() {
+ if handler.self_deaf {
check_msg(context.say("Already deafened"));
} else {
handler.deafen(true);
@@ -147,7 +147,7 @@ command!(mute(context, message) {
},
};
- if handler.is_muted() {
+ if handler.self_mute {
check_msg(context.say("Already muted"));
} else {
handler.mute(true);