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.1/output/pydis_core.utils.paste_service.html b/v9.9.1/output/pydis_core.utils.paste_service.html index afa294bd..fcd6da85 100644 --- a/v9.9.1/output/pydis_core.utils.paste_service.html +++ b/v9.9.1/output/pydis_core.utils.paste_service.html @@ -7,12 +7,12 @@ paste_service - Pydis Core v9.9.1 - + - - + + diff --git a/v9.9.1/output/pydis_core.utils.regex.html b/v9.9.1/output/pydis_core.utils.regex.html index b88d28af..c4e91161 100644 --- a/v9.9.1/output/pydis_core.utils.regex.html +++ b/v9.9.1/output/pydis_core.utils.regex.html @@ -7,12 +7,12 @@ regex - Pydis Core v9.9.1 - + - - + + diff --git a/v9.9.1/output/pydis_core.utils.scheduling.html b/v9.9.1/output/pydis_core.utils.scheduling.html index bf845af4..45e946fc 100644 --- a/v9.9.1/output/pydis_core.utils.scheduling.html +++ b/v9.9.1/output/pydis_core.utils.scheduling.html @@ -7,12 +7,12 @@ scheduling - Pydis Core v9.9.1 - + - - + + diff --git a/v9.9.1/py-modindex.html b/v9.9.1/py-modindex.html index 2d01aaba..ccc5a484 100644 --- a/v9.9.1/py-modindex.html +++ b/v9.9.1/py-modindex.html @@ -5,12 +5,12 @@ Python Module Index - Pydis Core v9.9.1 - + - - + + diff --git a/v9.9.1/search.html b/v9.9.1/search.html index 0eca8248..d9b451a4 100644 --- a/v9.9.1/search.html +++ b/v9.9.1/search.html @@ -7,12 +7,12 @@ -Search - Pydis Core v9.9.1 +Search - Pydis Core v9.9.1 - - + + diff --git a/v9.9.1/versions.html b/v9.9.1/versions.html index b7683184..1d5bab68 100644 --- a/v9.9.1/versions.html +++ b/v9.9.1/versions.html @@ -6,12 +6,12 @@ Versions - Pydis Core v9.9.1 - + - - + + -- cgit v1.2.3