code: def identify(self, token):
          
  
          payload = {
              'op': 2,
              'd': {
                  'token': self.token,
                  'properties': {
                      '$os': sys.platform,
                      '$browser': 'legobot',
                      '$device': 'legobot'
                  },
                  'compress': False,
                  'large_threshold': 250
              }
          }
          payload['d']['synced_guilds'] = []
          logger.info("Identifying with the following message: \
                      {}".format(payload))
          self.ws.send(json.dumps(payload))
          return
docs: Identifies to the websocket endpoint
  
          Args:
              token (string): Discord bot token