diff options
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') |