types: added Bot, User typing

This commit is contained in:
원더 2021-01-05 11:35:32 +09:00
parent fcce01c9b7
commit 2e50841010

View File

@ -1,3 +1,41 @@
export interface Bot {
id: string
name: string
tag: string
avatar: string
status: Status
lib: Library
prefix: string
votes: number
servers: number
intro: string
desc: string
category: Category[]
web?: string
git?: string
url?: string
discord?: string
verified: boolean
trusted: boolean
partnered: boolean
vanity: string | null
bg: string
banner: string
owners: User[] | string[]
}
export interface User {
id: string
avatar: string
tag: string
username: string
perm: number
github: string
bots: Bot[] | string[]
}
export type Status = 'online' | 'offline' | 'dnd' | 'idle' | 'streaming'
export type Library = export type Library =
| 'discord.js' | 'discord.js'
| 'Eris' | 'Eris'