@staticmethod
def _find_role(guild: discord.Guild, argument: str) -> Optional[discord.Role]:
    match = (_ID_RE.match(argument) or _ROLE_MENTION_RE.match(argument))
    if match:
        result = guild.get_role(int(match.group(1)))
    else:
        result = discord.utils.get(guild.roles, name=argument)
    return result
@staticmethod
def _find_role(guild: discord.Guild, argument: str) -> Optional[discord.Role]:
    match = (_ID_RE.match(argument) or _ROLE_MENTION_RE.match(argument))
    if match:
        result = guild.get_role(int(match.group(1)))
    else:
        result = discord.utils.get(guild.roles, name=argument)
    return result