mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 22:30:23 +00:00
types: fixed typing and add typing
This commit is contained in:
parent
fea9bdcb50
commit
29c64b8731
@ -3,6 +3,7 @@ export type UserPemissionFlags = 'general' | 'staff' | 'bughunter' | 'booster'
|
|||||||
export interface Bot {
|
export interface Bot {
|
||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
|
flags: number
|
||||||
state: BotState
|
state: BotState
|
||||||
tag: string
|
tag: string
|
||||||
avatar: string
|
avatar: string
|
||||||
@ -14,10 +15,10 @@ export interface Bot {
|
|||||||
intro: string
|
intro: string
|
||||||
desc: string
|
desc: string
|
||||||
category: Category[]
|
category: Category[]
|
||||||
web?: string
|
web: string | null
|
||||||
git?: string
|
git: string | null
|
||||||
url?: string
|
url: string | null
|
||||||
discord?: string
|
discord: string | null
|
||||||
verified: boolean
|
verified: boolean
|
||||||
trusted: boolean
|
trusted: boolean
|
||||||
partnered: boolean
|
partnered: boolean
|
||||||
@ -44,6 +45,24 @@ export interface BotList {
|
|||||||
totalPage: number
|
totalPage: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface SubmittedBot {
|
||||||
|
id: string
|
||||||
|
date: number
|
||||||
|
owners: User[]
|
||||||
|
lib: Library
|
||||||
|
prefix: string
|
||||||
|
intro: string
|
||||||
|
desc: string
|
||||||
|
category: Category[]
|
||||||
|
web: string | null
|
||||||
|
git: string | null
|
||||||
|
url: string | null
|
||||||
|
discord: string | null
|
||||||
|
state: number
|
||||||
|
reason: string | null
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
export interface DiscordTokenInfo {
|
export interface DiscordTokenInfo {
|
||||||
access_token?: string
|
access_token?: string
|
||||||
expires_in?: number
|
expires_in?: number
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user