created timeout function and minor changes

This commit is contained in:
2025-06-24 16:13:38 +02:00
parent 39448cbad4
commit 0437a6ba3c
6 changed files with 64 additions and 16 deletions

View File

@@ -5,9 +5,9 @@ import { HelixUser } from "@twurple/api"
const EXPIRETIME = 60 * 30 // 30 minutes
export class User {
public username: string | undefined;
public id: string | undefined;
public displayName: string | undefined;
public username!: string;
public id!: string;
public displayName!: string;
static async initUsername(username: string): Promise<User | null> {
const userObj = new User();