original_docstring: Ban a user from the guild.
  
          An embed with the provided ban reason will be reported to the guild's
          broadcast channel.
          
docstring: Ban a user from the guild.
  An embed with the provided ban reason will be reported to the guild's
  broadcast channel.
docstring_tokens: Ban a user from the guild . An embed with the provided ban reason will be reported to the guild ' s broadcast channel .
code: async def ban(self, member: discord.Member, reason: str):
          """Ban a user from the guild.
  
          An embed with the provided ban reason will be reported to the guild's
          broadcast channel.
          """
          try:
              # cya nerd
              await member.ban(delete_message_days=0, reason=f"Gatekeeper: {reason}")
          except discord.HTTPException as error:
              self.log.debug("failed to ban %d: %r", member.id, error)
              await self.report(f"Failed to ban {represent(member)}: `{error}`")
          else:
              embed = create_embed(
                  member,
                  color=discord.Color.purple(),
                  title=f"Banned {represent(member)}",
                  reason=reason,
              )
              message = await self.report(embed=embed)
              # in case mods wants to reverse the ban, present a reaction prompt
              self.bot.loop.create_task(self._ban_reverse_prompt(message, member))
code_tokens: async def ban ( self , member : discord . Member , reason : str ) : try : await member . ban ( delete_message_days = 0 , reason = f"Gatekeeper: {reason}" ) except discord . HTTPException as error : self . log . debug ( "failed to ban %d: %r" , member . id , error ) await self . report ( f"Failed to ban {represent(member)}: `{error}`" ) else : embed = create_embed ( member , color = discord . Color . purple ( ) , title = f"Banned {represent(member)}" , reason = reason , ) message = await self . report ( embed = embed ) self . bot . loop . create_task ( self . _ban_reverse_prompt ( message , member ) )
short_docstring: Ban a user from the guild.
short_docstring_tokens: Ban a user from the guild .
comment: """Ban a user from the guild.
  
          An embed with the provided ban reason will be reported to the guild's
          broadcast channel.
          """$SEP$# cya nerd$SEP$# in case mods wants to reverse the ban, present a reaction prompt