From f71e8e3603e4afeffb6c9eda4af03ffdfe075260 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 15 Nov 2023 20:48:28 -0600 Subject: [PATCH] Format, remove unnecessary imports in notify.ts --- src/notify.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/notify.ts b/src/notify.ts index 6ac3d2e..dc2df77 100644 --- a/src/notify.ts +++ b/src/notify.ts @@ -1,4 +1,4 @@ -import { Client, Events, GatewayIntentBits } from 'discord.js'; +import { Client } from 'discord.js'; import { env } from '@/env/server.mjs'; export async function sendNotification(message: string): Promise { @@ -10,8 +10,7 @@ export async function sendNotification(message: string): Promise { await client.login(env.DISCORD_TOKEN); } catch (e) { throw new Error( - `Failed while logging in to Discord: ${ - e instanceof Error ? e.message : e + `Failed while logging in to Discord: ${e instanceof Error ? e.message : e }` ); }