Changed to Logger

This commit is contained in:
Inbestigator 2024-03-13 15:09:43 -07:00
parent 49777e4e5f
commit 4875cb0dc4

View file

@ -9,6 +9,7 @@ import { Notifications } from "@api/index";
import { definePluginSettings } from "@api/Settings"; import { definePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants"; import { Devs } from "@utils/constants";
import { getCurrentChannel } from "@utils/discord"; import { getCurrentChannel } from "@utils/discord";
import { Logger } from "@utils/Logger";
import definePlugin, { OptionType } from "@utils/types"; import definePlugin, { OptionType } from "@utils/types";
import { ChannelStore, Menu, MessageStore, NavigationRouter, PresenceStore, PrivateChannelsStore, UserStore, WindowStore } from "@webpack/common"; import { ChannelStore, Menu, MessageStore, NavigationRouter, PresenceStore, PrivateChannelsStore, UserStore, WindowStore } from "@webpack/common";
import { type Message } from "discord-types/general"; import { type Message } from "discord-types/general";
@ -131,7 +132,7 @@ export default definePlugin({
} }
} }
} catch (error) { } catch (error) {
console.error(error); new Logger("BypassDND").error("Failed to handle message", error);
} }
} }
}, },