Browse Source

Explicit namespacing in the PermissionOverwrite example.

Apparently some people get confused by this.
pull/2107/head
Rapptz 6 years ago
parent
commit
390bce6033
  1. 2
      discord/abc.py

2
discord/abc.py

@ -543,7 +543,7 @@ class GuildChannel:
Using :class:`PermissionOverwrite` ::
overwrite = PermissionOverwrite()
overwrite = discord.PermissionOverwrite()
overwrite.send_messages = False
overwrite.read_messages = True
await channel.set_permissions(member, overwrite=overwrite)

Loading…
Cancel
Save