aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-07-04 17:38:44 -0400
committerRapptz <[email protected]>2017-07-04 17:38:44 -0400
commit115c22633c8181cf7e1be965c122366387d013f3 (patch)
treed3c7cc9038d2f3b3f4afb3646ae04dd1baaad831
parentFix afk_channel being None in Client.edit_server (diff)
downloaddiscord.py-115c22633c8181cf7e1be965c122366387d013f3.tar.xz
discord.py-115c22633c8181cf7e1be965c122366387d013f3.zip
Change yield from to await in some docstrings.
Fix #625.
-rw-r--r--discord/client.py2
-rw-r--r--discord/voice_client.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index 51e2332f..0d6c3e36 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -3027,7 +3027,7 @@ class Client:
overwrite = discord.PermissionOverwrite()
overwrite.read_messages = True
overwrite.ban_members = False
- yield from client.edit_channel_permissions(message.channel, message.author, overwrite)
+ await client.edit_channel_permissions(message.channel, message.author, overwrite)
Parameters
-----------
diff --git a/discord/voice_client.py b/discord/voice_client.py
index b70ddf91..647e3401 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -367,7 +367,7 @@ class VoiceClient:
Basic usage: ::
- voice = yield from client.join_voice_channel(channel)
+ voice = await client.join_voice_channel(channel)
player = voice.create_ffmpeg_player('cool.mp3')
player.start()