(self)
return BotEvent.query.filter_by(
            host=self.host,
            port=self.port,
            ssl=self.ssl,
            channel=self.channel
        ).order_by(BotEvent.created.desc()).first()
Returns the latest BotEvent to occur for this channel.
Returns the latest BotEvent to occur for this channel.
Returns the latest BotEvent to occur for this channel .
def last_event(self):
        """
        Returns the latest BotEvent to occur for this channel.
        """
        return BotEvent.query.filter_by(
            host=self.host,
            port=self.port,
            ssl=self.ssl,
            channel=self.channel
        ).order_by(BotEvent.created.desc()).first()
def last_event ( self ) : return BotEvent . query . filter_by ( host = self . host , port = self . port , ssl = self . ssl , channel = self . channel ) . order_by ( BotEvent . created . desc ( ) ) . first ( )