From def012e2815159a0cc5e6bf323e308ef35434609 Mon Sep 17 00:00:00 2001 From: alexandrianlibrarian Date: Mon, 16 Dec 2019 03:38:40 +0000 Subject: [PATCH] Be more explicit in the utils.find example code. --- discord/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/utils.py b/discord/utils.py index bc2815024..aa88d0a5d 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.