async def identify(self):
payload = {<EOL>'<STR_LIT>': self.IDENTIFY,<EOL>'<STR_LIT:d>': {<EOL>'<STR_LIT>': self.token,<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': sys.platform,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>},<EOL>'<STR_LIT>': True,<EOL>'<STR_LIT>': <NUM_LIT>,<EOL>'<STR_LIT:v>': <NUM_LIT:3><EOL>}<EOL>}<EOL>if not self._connection.is_bot:<EOL><INDENT>payload['<STR_LIT:d>']['<STR_LIT>'] = []<EOL><DEDENT>if self.shard_id is not None and self.shard_count is not None:<EOL><INDENT>payload['<STR_LIT:d>']['<STR_LIT>'] = [self.shard_id, self.shard_count]<EOL><DEDENT>state = self._connection<EOL>if state._activity is not None or state._status is not None:<EOL><INDENT>payload['<STR_LIT:d>']['<STR_LIT>'] = {<EOL>'<STR_LIT:status>': state._status,<EOL>'<STR_LIT>': state._activity,<EOL>'<STR_LIT>': <NUM_LIT:0>,<EOL>'<STR_LIT>': False<EOL>}<EOL><DEDENT>await self.send_as_json(payload)<EOL>log.info('<STR_LIT>', self.shard_id)<EOL>
Sends the IDENTIFY packet.