diff options
| author | Rapptz <[email protected]> | 2017-05-22 07:21:23 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-22 07:21:23 -0400 |
| commit | f5888765871b9f6ba1b7affca9271b1a3d0c8a8e (patch) | |
| tree | 91d014b91dc7e9c8b3e3233a20f4a621975d3095 /discord/utils.py | |
| parent | Raise when an invalid permission is passed to PermissionOverwrite. (diff) | |
| download | discord.py-f5888765871b9f6ba1b7affca9271b1a3d0c8a8e.tar.xz discord.py-f5888765871b9f6ba1b7affca9271b1a3d0c8a8e.zip | |
Use Python3Lexer instead of PythonLexer for pygments.
Diffstat (limited to 'discord/utils.py')
| -rw-r--r-- | discord/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/utils.py b/discord/utils.py index 2f9f61f9..35044836 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -188,19 +188,19 @@ def get(iterable, **attrs): Basic usage: - .. code-block:: python + .. code-block:: python3 member = discord.utils.get(message.guild.members, name='Foo') Multiple attribute matching: - .. code-block:: python + .. code-block:: python3 channel = discord.utils.get(guild.channels, name='Foo', type=ChannelType.voice) Nested attribute matching: - .. code-block:: python + .. code-block:: python3 channel = discord.utils.get(client.get_all_channels(), guild__name='Cool', name='general') |