def _handle_mention_roles(self, role_mentions: List[int]) -> None:
    self.role_mentions = []
    if isinstance(self.guild, Guild):
        for role_id in map(int, role_mentions):
            role = self.guild.get_role(role_id)
            if (role is not None):
                self.role_mentions.append(role)
def _handle_mention_roles(self, role_mentions: List[int]) -> None:
    self.role_mentions = []
    if isinstance(self.guild, Guild):
        for role_id in map(int, role_mentions):
            role = self.guild.get_role(role_id)
            if (role is not None):
                self.role_mentions.append(role)