@commands.Cog.listener()
async def on_socket_raw_send(self, data):
    if (('"op":2' not in data) and ('"op":6' not in data)):
        return
    back_to_json = json.loads(data)
    if (back_to_json['op'] == 2):
        payload = back_to_json['d']
        inner_shard = payload.get('shard', [0])
        self._identifies[inner_shard[0]].append(datetime.datetime.utcnow())
    else:
        self._resumes.append(datetime.datetime.utcnow())
    self._clear_gateway_data()
@commands.Cog.listener()
async def on_socket_raw_send(self, data):
    if (('"op":2' not in data) and ('"op":6' not in data)):
        return
    back_to_json = json.loads(data)
    if (back_to_json['op'] == 2):
        payload = back_to_json['d']
        inner_shard = payload.get('shard', [0])
        self._identifies[inner_shard[0]].append(datetime.datetime.utcnow())
    else:
        self._resumes.append(datetime.datetime.utcnow())
    self._clear_gateway_data()