Snowflake

Snowflake

type: string

A Discord snowflake ID. Snowflakes are 64-bit unsigned integers encoded as a string of digits. Every Discord resource (users, messages, channels, guilds, …) has a unique snowflake that embeds its creation timestamp, worker ID, and increment.

Keep snowflakes as strings. JavaScript numbers cannot precisely represent every valid Discord snowflake.

Example

const channel = await discord.fetchGuildTextChannel('1504537312841961583');