Base

Base

Provides utilities for working with many Discord structures

Constructor

new Base()

Properties:
Name Type Description
id String

A Discord snowflake identifying the object

createdAt Number

Timestamp of structure creation

Source:

Methods

(static) getCreatedAt(id) → {Number}

Calculates the timestamp in milliseconds associated with a Discord ID/snowflake

Source:
Parameters:
Name Type Description
id String

The ID of a structure

Returns:
Type:
Number

(static) getDiscordEpoch(id) → {Number}

Gets the number of milliseconds since epoch represented by an ID/snowflake

Source:
Parameters:
Name Type Description
id String

The ID of a structure

Returns:
Type:
Number