diff options
| author | Zeyla Hellyer <[email protected]> | 2017-02-11 18:07:52 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-02-11 18:07:52 -0800 |
| commit | 46d6cd4dda754db095f88dd864d05eaae8d3cba6 (patch) | |
| tree | a38c9bab6450bd8b55c4c3df360d4e3cefed97ea /examples | |
| parent | Small amount of voice docs (diff) | |
| download | serenity-46d6cd4dda754db095f88dd864d05eaae8d3cba6.tar.xz serenity-46d6cd4dda754db095f88dd864d05eaae8d3cba6.zip | |
Update voice example to latest changes
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/07_voice/src/main.rs | 4 |
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); |