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: -
-
+
- Returns: -
The
+discord.MemberorNoneto indicate the member could not be found.The
discord.MemberorNoneto indicate the member could not be found.
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.