code: def remove_mentions(self, string):
          
  
          def replace(obj, *, transforms=self.MENTION_TRANSFORMS):
              return transforms.get(obj.group(0), '@invalid')
  
          return self.MENTION_PATTERN.sub(replace, string)
docs: Removes mentions from the string to prevent abuse.
  
          This includes ``@everyone``, ``@here``, member mentions and role mentions.