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]¶

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

Return type:
-

Member | None

+

Member | None

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.

@@ -474,13 +474,13 @@ 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/v9.9.0/output/pydis_core.utils.paste_service.html b/v9.9.0/output/pydis_core.utils.paste_service.html index 44c02e2b..b8933e1c 100644 --- a/v9.9.0/output/pydis_core.utils.paste_service.html +++ b/v9.9.0/output/pydis_core.utils.paste_service.html @@ -7,12 +7,12 @@ paste_service - Pydis Core v9.9.0 - + - - + + diff --git a/v9.9.0/output/pydis_core.utils.regex.html b/v9.9.0/output/pydis_core.utils.regex.html index d165c087..0b832cd6 100644 --- a/v9.9.0/output/pydis_core.utils.regex.html +++ b/v9.9.0/output/pydis_core.utils.regex.html @@ -7,12 +7,12 @@ regex - Pydis Core v9.9.0 - + - - + + diff --git a/v9.9.0/output/pydis_core.utils.scheduling.html b/v9.9.0/output/pydis_core.utils.scheduling.html index bd1a8b7e..b0ef0f90 100644 --- a/v9.9.0/output/pydis_core.utils.scheduling.html +++ b/v9.9.0/output/pydis_core.utils.scheduling.html @@ -7,12 +7,12 @@ scheduling - Pydis Core v9.9.0 - + - - + + diff --git a/v9.9.0/py-modindex.html b/v9.9.0/py-modindex.html index 409d66cf..98bb01ae 100644 --- a/v9.9.0/py-modindex.html +++ b/v9.9.0/py-modindex.html @@ -5,12 +5,12 @@ Python Module Index - Pydis Core v9.9.0 - + - - + + diff --git a/v9.9.0/search.html b/v9.9.0/search.html index 07f375ef..e8c7ecc9 100644 --- a/v9.9.0/search.html +++ b/v9.9.0/search.html @@ -7,12 +7,12 @@ -Search - Pydis Core v9.9.0 +Search - Pydis Core v9.9.0 - - + + diff --git a/v9.9.0/versions.html b/v9.9.0/versions.html index 1fe145d6..9762e61b 100644 --- a/v9.9.0/versions.html +++ b/v9.9.0/versions.html @@ -6,12 +6,12 @@ Versions - Pydis Core v9.9.0 - + - - + + -- cgit v1.2.3