mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 18:59:09 +00:00
parent
7b806667cd
commit
115c22633c
discord
@ -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
|
||||
-----------
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user