def filter(self, record):
    return ((record.name == 'discord.gateway') or ('Shard ID' in record.msg) or ('Websocket closed ' in record.msg))
def filter(self, record):
    return ((record.name == 'discord.gateway') or ('Shard ID' in record.msg) or ('Websocket closed ' in record.msg))