def predicate(self: MessagePredicate, m: discord.Message) -> bool:
    if (not same_context(m)):
        return False
    match = (_ID_RE.match(m.content) or _USER_MENTION_RE.match(m.content))
    if match:
        result = guild.get_member(int(match.group(1)))
    else:
        result = guild.get_member_named(m.content)
    if (result is None):
        return False
    self.result = result
    return True
def predicate(self: MessagePredicate, m: discord.Message) -> bool:
    if (not same_context(m)):
        return False
    match = (_ID_RE.match(m.content) or _USER_MENTION_RE.match(m.content))
    if match:
        result = guild.get_member(int(match.group(1)))
    else:
        result = guild.get_member_named(m.content)
    if (result is None):
        return False
    self.result = result
    return True