feat: add member cache; handle all role changes with RoleManagerPlugin; exit gracefully
This commit is contained in:
parent
fd60a09947
commit
fa50110766
48 changed files with 755 additions and 264 deletions
20
backend/src/data/entities/MemberCacheItem.ts
Normal file
20
backend/src/data/entities/MemberCacheItem.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
||||
|
||||
@Entity("member_cache")
|
||||
export class MemberCacheItem {
|
||||
@PrimaryGeneratedColumn() id: number;
|
||||
|
||||
@Column() guild_id: string;
|
||||
|
||||
@Column() user_id: string;
|
||||
|
||||
@Column() username: string;
|
||||
|
||||
@Column({ type: String, nullable: true }) nickname: string | null;
|
||||
|
||||
@Column("simple-json") roles: string[];
|
||||
|
||||
@Column() last_seen: string;
|
||||
|
||||
@Column({ type: String, nullable: true }) delete_at: string | null;
|
||||
}
|
|
@ -14,5 +14,5 @@ export class PersistedData {
|
|||
|
||||
@Column() nickname: string;
|
||||
|
||||
@Column() is_voice_muted: number;
|
||||
@Column({ type: "boolean" }) is_voice_muted: boolean;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue