Skip to content

Util.snowflake()

paige edited this page Oct 30, 2023 · 2 revisions

turns a date into a snowflake
type: Function

arguments:

  • date Date

let dt = new Date("2018-11-28T09:01:00.000Z"); // November 28, 2018

util.snowflake(dt); // 517263631319040000


🛈 Client

🛈 AddonService

🛈 AttachmentService

🛈 ChannelService

🛈 CommandService

🛈 ComponentService

🛈 ErrorService

🛈 EventService

🛈 ExpressionService

🛈 GuildService

🛈 LogService

🛈 MessageService

🛈 PermissionService

🛈 RoleService

🛈 StorageService

🛈 TypeService

🛈 UserService

🛈 UtilService

🛈 VoiceService


Clone this wiki locally