identify() {
        if (!this.ws || this.ws.readyState === 0 || this.ws.readyState === 2 || this.ws.readyState === 3) {
            return this.connect();
        }

        this.ws.send(JSON.stringify({
            op: OPCodes.IDENTIFY,
            d: {
                token: `Bot ${this.token}`,
                properties: { $os: process.platform, $browser: 'Sigtune', $device: 'Sigtune' },
                compress: this.compress || false,
                large_threshold: this.largeThreshold || 250,
                shard: [this.shardID, this.shardCount],
                presence: this.presence,
            },
        }));
    }
/**
     * Send the identify packet, used for the client handshake
     *
     * @returns {undefined}
     * @memberof Client
     */
Send the identify packet, used for the client handshake
@returns {undefined}
@memberof Client
Send the identify packet used for the client handshake @returns { undefined } @memberof Client
identify() {
        if (!this.ws || this.ws.readyState === 0 || this.ws.readyState === 2 || this.ws.readyState === 3) {
            return this.connect();
        }
        this.ws.send(JSON.stringify({
            op: OPCodes.IDENTIFY,
            d: {
                token: `Bot ${this.token}`,
                properties: { $os: process.platform, $browser: 'Sigtune', $device: 'Sigtune' },
                compress: this.compress || false,
                large_threshold: this.largeThreshold || 250,
                shard: [this.shardID, this.shardCount],
                presence: this.presence,
            },
        }));
    }
identify ( ) { if ( ! this . ws || this . ws . readyState === 0 || this . ws . readyState === 2 || this . ws . readyState === 3 ) { return this . connect ( ) ; } this . ws . send ( JSON . stringify ( { op : OPCodes . IDENTIFY , d : { token : ` ${ this . token } ` , properties : { $os : process . platform , $browser : 'Sigtune' , $device : 'Sigtune' } , compress : this . compress || false , large_threshold : this . largeThreshold || 250 , shard : [ this . shardID , this . shardCount ] , presence : this . presence , } , } ) ) ; }
Send the identify packet, used for the client handshake
 @returns {undefined}
 @memberof Client
Send the identify packet used for the client handshake @returns { undefined } @memberof Client