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 }` ); }