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.8.0/output/pydis_core.utils.paste_service.html b/v9.8.0/output/pydis_core.utils.paste_service.html index 41080456..db345362 100644 --- a/v9.8.0/output/pydis_core.utils.paste_service.html +++ b/v9.8.0/output/pydis_core.utils.paste_service.html @@ -7,12 +7,12 @@ paste_service - Pydis Core v9.8.0 - + - - + + diff --git a/v9.8.0/output/pydis_core.utils.regex.html b/v9.8.0/output/pydis_core.utils.regex.html index 55e468aa..03f3a66e 100644 --- a/v9.8.0/output/pydis_core.utils.regex.html +++ b/v9.8.0/output/pydis_core.utils.regex.html @@ -7,12 +7,12 @@ regex - Pydis Core v9.8.0 - + - - + + diff --git a/v9.8.0/output/pydis_core.utils.scheduling.html b/v9.8.0/output/pydis_core.utils.scheduling.html index 8206165d..8cba61b8 100644 --- a/v9.8.0/output/pydis_core.utils.scheduling.html +++ b/v9.8.0/output/pydis_core.utils.scheduling.html @@ -7,12 +7,12 @@ scheduling - Pydis Core v9.8.0 - + - - + + diff --git a/v9.8.0/py-modindex.html b/v9.8.0/py-modindex.html index 30e9e395..56d636db 100644 --- a/v9.8.0/py-modindex.html +++ b/v9.8.0/py-modindex.html @@ -5,12 +5,12 @@ Python Module Index - Pydis Core v9.8.0 - + - - + + diff --git a/v9.8.0/search.html b/v9.8.0/search.html index 9d15e401..c35316ef 100644 --- a/v9.8.0/search.html +++ b/v9.8.0/search.html @@ -7,12 +7,12 @@ -Search - Pydis Core v9.8.0 +Search - Pydis Core v9.8.0 - - + + diff --git a/v9.8.0/versions.html b/v9.8.0/versions.html index 36b31575..b7bf0873 100644 --- a/v9.8.0/versions.html +++ b/v9.8.0/versions.html @@ -6,12 +6,12 @@ Versions - Pydis Core v9.8.0 - + - - + + -- cgit v1.2.3