members#

-

Useful helper functions for interactin with discord.Member objects.

+

Useful helper functions for interactin with discord.Member objects.

-async get_or_fetch_member(guild, member_id)[source]#
+async get_or_fetch_member(guild, member_id)[source]#

Attempt to get a member from cache; on failure fetch from the API.

Return type:
-

Optional[Member]

+

Optional[Member]

Returns:
-

The discord.Member or None to indicate the member could not be found.

+

The discord.Member or None to indicate the member could not be found.

-async handle_role_change(member, coro, role)[source]#
+async handle_role_change(member, coro, role)[source]#

Await the given coro with role as the sole argument.

Handle errors that we expect to be raised from -discord.Member.add_roles and discord.Member.remove_roles.

+discord.Member.add_roles and discord.Member.remove_roles.

Parameters:
Return type:
diff --git a/main/output/pydis_core.utils.regex.html b/main/output/pydis_core.utils.regex.html index 4fe960c8..68471e9a 100644 --- a/main/output/pydis_core.utils.regex.html +++ b/main/output/pydis_core.utils.regex.html @@ -6,13 +6,13 @@ - regex - Pydis Core Latest (9.4.1) + regex - Pydis Core Latest (9.5.0) - + @@ -127,7 +127,7 @@