diff --git a/src/loaders/index.ts b/src/loaders/index.ts index cf891473..d2f3c05d 100644 --- a/src/loaders/index.ts +++ b/src/loaders/index.ts @@ -41,7 +41,7 @@ export async function init (): Promise { await client.login(process.env.DISCORD_TOKEN) } catch (err) { console.error(err) - client.destroy() + await client.destroy() process.exit(1) }