1.0.1 • Published 2 years ago

@birbjs/snowflake v1.0.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
2 years ago

huntr

NPM

@birbjs/snowflake

This package allows for easy generation and interpretation of Discord snowflakes. It is mainly used for the birb package. You should already have this package installed if you are using Birb.JS.

Installation

This package is bundled with Birb.JS. You should install Birb.JS using npm install birb --save.

Usage

// Generate a snowflake from a user ID ...
const { Snowflake } = require('@birbjs/snowflake');
const snowflake = new Snowflake('914338137600294982');