From 29c64b873130e45f7950d8898be5788c38677891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Wed, 10 Feb 2021 17:00:52 +0900 Subject: [PATCH] types: fixed typing and add typing --- types/index.ts | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/types/index.ts b/types/index.ts index 54d7541..ed42811 100644 --- a/types/index.ts +++ b/types/index.ts @@ -3,6 +3,7 @@ export type UserPemissionFlags = 'general' | 'staff' | 'bughunter' | 'booster' export interface Bot { id: string name: string + flags: number state: BotState tag: string avatar: string @@ -14,10 +15,10 @@ export interface Bot { intro: string desc: string category: Category[] - web?: string - git?: string - url?: string - discord?: string + web: string | null + git: string | null + url: string | null + discord: string | null verified: boolean trusted: boolean partnered: boolean @@ -44,6 +45,24 @@ export interface BotList { 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 { access_token?: string expires_in?: number