mirror of
https://github.com/Tribufu/TribufuJS
synced 2026-08-09 12:51:05 +00:00
Improve api
- TribufuApi - TribufuBot - TribufuClient - TribufuServer
This commit is contained in:
parent
882e2a631b
commit
5047dada7c
12 changed files with 961 additions and 535 deletions
26
src/models/user.ts
Normal file
26
src/models/user.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
|
||||
export type AccountType = "user" | "bot" | "org";
|
||||
|
||||
export interface User {
|
||||
id: number,
|
||||
uuid: string,
|
||||
name: string,
|
||||
display_name: string,
|
||||
kind: AccountType,
|
||||
public_flags: number,
|
||||
verified: boolean,
|
||||
level: number,
|
||||
experience: number,
|
||||
public_birthday: boolean,
|
||||
birthday?: string | null,
|
||||
points: number,
|
||||
location?: string | null,
|
||||
photo_url?: string | null,
|
||||
banner_url?: string | null,
|
||||
last_online?: string | null,
|
||||
biography?: string | null,
|
||||
view_count: number,
|
||||
created: string,
|
||||
updated?: string | null,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue