Skip to content

Commit

Permalink
Epoch.Discord
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Jun 12, 2023
1 parent 285469a commit 4d557e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utls/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export const random = (min: number, max: number): number =>

// const snowflake = new Snowflake(1);
const snowflake = new Snowyflake({
workerId: BigInt(1),
epoch: Epoch.Twitter, // BigInt timestamp
workerId: BigInt(0),
processId: BigInt(0),
epoch: Epoch.Discord, // BigInt timestamp
});

export const nextNonce = (): string => snowflake.nextId().toString();

0 comments on commit 4d557e6

Please sign in to comment.