Skip to content

Util.snowflake()

github-actions[bot] edited this page Sep 30, 2024 · 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