diff options
| author | alexandrianlibrarian <[email protected]> | 2019-12-16 03:38:40 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-12-17 00:15:16 -0500 |
| commit | def012e2815159a0cc5e6bf323e308ef35434609 (patch) | |
| tree | feeff094f49dc5e1006fec19d3f376bc02fd8385 | |
| parent | Removed MEMBER_LIST_DISABLED, added PUBLIC_DISABLED (diff) | |
| download | discord.py-def012e2815159a0cc5e6bf323e308ef35434609.tar.xz discord.py-def012e2815159a0cc5e6bf323e308ef35434609.zip | |
Be more explicit in the utils.find example code.
| -rw-r--r-- | discord/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py index bc281502..aa88d0a5 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -180,7 +180,7 @@ def find(predicate, seq): """A helper to return the first element found in the sequence that meets the predicate. For example: :: - member = find(lambda m: m.name == 'Mighty', channel.guild.members) + member = discord.utils.find(lambda m: m.name == 'Mighty', channel.guild.members) would find the first :class:`~discord.Member` whose name is 'Mighty' and return it. If an entry is not found, then ``None`` is returned. |