original_docstring: Perform a list of checks on a member.
  
          When calling this method, make sure to handle any thrown Report, Ban,
          and Bounce exceptions.
          
docstring: Perform a list of checks on a member.
  When calling this method, make sure to handle any thrown Report, Ban,
  and Bounce exceptions.
docstring_tokens: Perform a list of checks on a member . When calling this method make sure to handle any thrown Report Ban and Bounce exceptions .
code: async def _perform_checks(self, member: discord.Member, checks):
          """Perform a list of checks on a member.
  
          When calling this method, make sure to handle any thrown Report, Ban,
          and Bounce exceptions.
          """
          for check in ALL_CHECKS:
              check_name = check.__name__
              check_options = checks.get(check_name)
  
              # check isn't present in the config
              if check_options is None:
                  continue
  
              if isinstance(check_options, collections.Mapping):
                  # enabled subkey of check options
                  if not check_options.get("enabled", False):
                      continue
              elif isinstance(check_options, bool):
                  # legacy behavior: the "check options" is simply a boolean
                  # denoting whether the check is enabled or not
                  if not check_options:
                      continue
  
              try:
                  await check(member, check_options)
              except CheckFailure as error:
                  # inject check details into the error
                  error.check_name = check_name
                  error.check = check
                  raise error from None
code_tokens: async def _perform_checks ( self , member : discord . Member , checks ) : for check in ALL_CHECKS : check_name = check . __name__ check_options = checks . get ( check_name ) if check_options is None : continue if isinstance ( check_options , collections . Mapping ) : if not check_options . get ( "enabled" , False ) : continue elif isinstance ( check_options , bool ) : if not check_options : continue try : await check ( member , check_options ) except CheckFailure as error : error . check_name = check_name error . check = check raise error from None
short_docstring: Perform a list of checks on a member.
short_docstring_tokens: Perform a list of checks on a member .
comment: """Perform a list of checks on a member.
  
          When calling this method, make sure to handle any thrown Report, Ban,
          and Bounce exceptions.
          """$SEP$# check isn't present in the config$SEP$# enabled subkey of check options$SEP$# legacy behavior: the "check options" is simply a boolean$SEP$# denoting whether the check is enabled or not$SEP$# inject check details into the error