@classmethod
def valid_int(cls, ctx: Optional[commands.Context]=None, channel: Optional[discord.TextChannel]=None, user: Optional[discord.abc.User]=None) -> 'MessagePredicate':
    same_context = cls.same_context(ctx, channel, user)

    def predicate(self: MessagePredicate, m: discord.Message) -> bool:
        if (not same_context(m)):
            return False
        try:
            self.result = int(m.content)
        except ValueError:
            return False
        else:
            return True
    return cls(predicate)
@classmethod
def valid_int(cls, ctx: Optional[commands.Context]=None, channel: Optional[discord.TextChannel]=None, user: Optional[discord.abc.User]=None) -> 'MessagePredicate':
    same_context = cls.same_context(ctx, channel, user)

    def predicate(self: MessagePredicate, m: discord.Message) -> bool:
        if (not same_context(m)):
            return False
        try:
            self.result = int(m.content)
        except ValueError:
            return False
        else:
            return True
    return cls(predicate)