Merge pull request #448 from Mr2u/master

Route #10 Prune and prune count
This commit is contained in:
Samuel
2021-10-15 00:35:32 +02:00
committed by GitHub
4 changed files with 108 additions and 21 deletions

View File

@@ -84,6 +84,9 @@ export class Member extends BaseClassWithoutId {
@Column({ type: "simple-json" })
settings: UserGuildSettings;
@Column({ nullable: true })
last_message_id?: string;
// TODO: update
// @Column({ type: "simple-json" })
// read_state: ReadState;

View File

@@ -84,7 +84,7 @@ export class Snowflake {
}
static generate() {
var time = BigInt(Date.now() - Snowflake.EPOCH) << 22n;
var time = BigInt(Date.now() - Snowflake.EPOCH) << BigInt(22);
var worker = Snowflake.workerId << 17n;
var process = Snowflake.processId << 12n;
var increment = Snowflake.INCREMENT++;