static deconstruct(snowflake) {
    const BINARY = Util.idToBinary(snowflake).toString(2).padStart(64, '0');
    const res = {
      timestamp: parseInt(BINARY.substring(0, 42), 2) + EPOCH,
      workerID: parseInt(BINARY.substring(42, 47), 2),
      processID: parseInt(BINARY.substring(47, 52), 2),
      increment: parseInt(BINARY.substring(52, 64), 2),
      binary: BINARY,
    };
    Object.defineProperty(res, 'date', {
      get: function get() {
        return new Date(this.timestamp);
      },
      enumerable: true,
    });
    return res;
  }
/**
   * Deconstructs a Discord snowflake.
   * @param {Snowflake} snowflake Snowflake to deconstruct
   * @returns {DeconstructedSnowflake} Deconstructed snowflake
   */
Deconstructs a Discord snowflake.
@param {Snowflake} snowflake Snowflake to deconstruct
@returns {DeconstructedSnowflake} Deconstructed snowflake
Deconstructs a Discord snowflake . @param { Snowflake } snowflake Snowflake to deconstruct @returns { DeconstructedSnowflake } Deconstructed snowflake
static deconstruct(snowflake) {
    const BINARY = Util.idToBinary(snowflake).toString(2).padStart(64, '0');
    const res = {
      timestamp: parseInt(BINARY.substring(0, 42), 2) + EPOCH,
      workerID: parseInt(BINARY.substring(42, 47), 2),
      processID: parseInt(BINARY.substring(47, 52), 2),
      increment: parseInt(BINARY.substring(52, 64), 2),
      binary: BINARY,
    };
    Object.defineProperty(res, 'date', {
      get: function get() {
        return new Date(this.timestamp);
      },
      enumerable: true,
    });
    return res;
  }
static deconstruct ( snowflake ) { const BINARY = Util . idToBinary ( snowflake ) . toString ( 2 ) . padStart ( 64 , '0' ) ; const res = { timestamp : parseInt ( BINARY . substring ( 0 , 42 ) , 2 ) + EPOCH , workerID : parseInt ( BINARY . substring ( 42 , 47 ) , 2 ) , processID : parseInt ( BINARY . substring ( 47 , 52 ) , 2 ) , increment : parseInt ( BINARY . substring ( 52 , 64 ) , 2 ) , binary : BINARY , } ; Object . defineProperty ( res , 'date' , { get : function get ( ) { return new Date ( this . timestamp ) ; } , enumerable : true , } ) ; return res ; }
Deconstructs a Discord snowflake.
Deconstructs a Discord snowflake .