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.

@@ -346,13 +350,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/v7.5.0/output/botcore.utils.regex.html b/v7.5.0/output/botcore.utils.regex.html index 064ea4db..934fa33b 100644 --- a/v7.5.0/output/botcore.utils.regex.html +++ b/v7.5.0/output/botcore.utils.regex.html @@ -206,6 +206,10 @@ main +
  • + v8.1.0 +
  • +
  • v8.0.0-beta.4
  • diff --git a/v7.5.0/output/botcore.utils.scheduling.html b/v7.5.0/output/botcore.utils.scheduling.html index 7f726b73..21576109 100644 --- a/v7.5.0/output/botcore.utils.scheduling.html +++ b/v7.5.0/output/botcore.utils.scheduling.html @@ -206,6 +206,10 @@ main +
  • + v8.1.0 +
  • +
  • v8.0.0-beta.4
  • diff --git a/v7.5.0/py-modindex.html b/v7.5.0/py-modindex.html index 016703c7..79dd2dff 100644 --- a/v7.5.0/py-modindex.html +++ b/v7.5.0/py-modindex.html @@ -204,6 +204,10 @@ main +
  • + v8.1.0 +
  • +
  • v8.0.0-beta.4
  • diff --git a/v7.5.0/search.html b/v7.5.0/search.html index 03faa7b8..195384e1 100644 --- a/v7.5.0/search.html +++ b/v7.5.0/search.html @@ -203,6 +203,10 @@ main +
  • + v8.1.0 +
  • +
  • v8.0.0-beta.4
  • diff --git a/v7.5.0/versions.html b/v7.5.0/versions.html index 0fb03fc4..0d5b36f8 100644 --- a/v7.5.0/versions.html +++ b/v7.5.0/versions.html @@ -205,6 +205,10 @@ main +
  • + v8.1.0 +
  • +
  • v8.0.0-beta.4
  • @@ -336,6 +340,12 @@ - latest +
  • + v8.1.0 + + +
  • +
  • v8.0.0-beta.4 -- cgit v1.2.3