From 2e508410107aec5a8f1da8af5c9c2425057f0f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Tue, 5 Jan 2021 11:35:32 +0900 Subject: [PATCH] types: added Bot, User typing --- types/index.ts | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/types/index.ts b/types/index.ts index 74f6c91..5f9ea90 100644 --- a/types/index.ts +++ b/types/index.ts @@ -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 = | 'discord.js' | 'Eris'