From 1ed3cb5f286760a112b908843b58a816b231bd5f Mon Sep 17 00:00:00 2001 From: Socketlike <36399055+Socketlike@users.noreply.github.com> Date: Sun, 13 Aug 2023 20:00:58 +0700 Subject: [PATCH] chore(index): use events.debug --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 94247c3..eca7e6c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -47,7 +47,7 @@ export const stop = async (): Promise => { }) : config.get('pluginStopBehavior') === 'restartDiscord'; - events.emit('debug', { type: 'stop', message: ['restart Discord:', res] }); + events.debug('stop', ['restart Discord:', res]); if (res) window.DiscordNative.app.relaunch(); };