From 68cf1105c1ec6541faf3e12121d8edee97f029c7 Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Tue, 30 Mar 2021 15:35:52 +0530 Subject: [PATCH] x --- deploy.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deploy.ts b/deploy.ts index 2310096..f5cd9e2 100644 --- a/deploy.ts +++ b/deploy.ts @@ -41,9 +41,8 @@ export function init(options: DeploySlashInitOptions): void { try { const d = await client.verifyFetchEvent(evt) if (d === false) { - console.log('not authorized') await evt.respondWith( - new Response('not authorized', { + new Response('Not Authorized', { status: 400 }) ) @@ -51,12 +50,10 @@ export function init(options: DeploySlashInitOptions): void { } if (d.type === InteractionType.PING) { - console.log('ping pong') await d.respond({ type: InteractionResponseType.PONG }) return } - console.log('slash command', d.name) await (client as any)._process(d) } catch (e) { console.log(e)