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:
-

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.

@@ -368,13 +372,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:
@@ -422,9 +426,7 @@
-
- -
+
diff --git a/v8.0.0/output/botcore.utils.regex.html b/v8.0.0/output/botcore.utils.regex.html index 55ec391a..38dd45c1 100644 --- a/v8.0.0/output/botcore.utils.regex.html +++ b/v8.0.0/output/botcore.utils.regex.html @@ -5,14 +5,14 @@ - + regex - Pydis Core v8.0.0 - + - + @@ -156,7 +156,7 @@ Pydis Core v8.0.0 @@ -207,6 +207,10 @@ main +
  • + v9.1.1 +
  • +
  • v9.0.0
  • @@ -418,9 +422,7 @@ such as -
    - -
    + diff --git a/v8.0.0/output/botcore.utils.scheduling.html b/v8.0.0/output/botcore.utils.scheduling.html index 7d77b157..25fa3116 100644 --- a/v8.0.0/output/botcore.utils.scheduling.html +++ b/v8.0.0/output/botcore.utils.scheduling.html @@ -5,14 +5,14 @@ - + scheduling - Pydis Core v8.0.0 - + - + @@ -156,7 +156,7 @@ Pydis Core v8.0.0
    @@ -207,6 +207,10 @@ main +
  • + v9.1.1 +
  • +
  • v9.0.0
  • @@ -543,9 +547,7 @@ otherwise the running loop is used.

    -
    - -
    +
    -- cgit v1.2.3