diff --git a/api-docs b/api-docs index 97b37a6..093a4bb 160000 --- a/api-docs +++ b/api-docs @@ -1 +1 @@ -Subproject commit 97b37a654253ddf03e640b64fcf8f0f478b9c4f8 +Subproject commit 093a4bbcecde9f3587fa90c60ed02b0972bacbbf diff --git a/components/Form/Input.tsx b/components/Form/Input.tsx index 2a3ea3b..fc3980d 100644 --- a/components/Form/Input.tsx +++ b/components/Form/Input.tsx @@ -4,7 +4,7 @@ const Input: React.FC = ({ name, placeholder, ...props }) => { return } diff --git a/types/index.ts b/types/index.ts index b125efd..3e29a67 100644 --- a/types/index.ts +++ b/types/index.ts @@ -15,7 +15,7 @@ export interface Bot { lib: Library prefix: string votes: number - servers: number + servers: number | null shards: number intro: string desc: string diff --git a/utils/Webhook.ts b/utils/Webhook.ts index 0f1406e..d0ddbf3 100644 --- a/utils/Webhook.ts +++ b/utils/Webhook.ts @@ -201,7 +201,8 @@ function buildEmbed({payload, target}: {payload: WebhookPayload, target: Bot | S return { author, title: '서버 수 변동', - description: `${payload.data.before} -> ${payload.data.after} (${compare(payload.data.before, payload.data.after)})`, + description: payload.data.before ? `${payload.data.before} -> ${payload.data.after} (${compare(payload.data.before, payload.data.after)})` : + `+ ${payload.data.after}`, color: Colors.Aqua, footer, timestamp: new Date().toISOString() @@ -236,6 +237,6 @@ type HeartChange = { type ServerCountChange = { type: WebhookType.ServerCountChange, - before: number, + before: number | number, after: number } \ No newline at end of file