diff --git a/src/equicordplugins/bypassStatus/index.tsx b/src/equicordplugins/bypassStatus/index.tsx index 8d5c22bc..f9bec6e3 100644 --- a/src/equicordplugins/bypassStatus/index.tsx +++ b/src/equicordplugins/bypassStatus/index.tsx @@ -11,7 +11,7 @@ import { Devs } from "@utils/constants"; import { getCurrentChannel } from "@utils/discord"; import { Logger } from "@utils/Logger"; import definePlugin, { OptionType } from "@utils/types"; -import { ChannelStore, Menu, MessageStore, NavigationRouter, PresenceStore, PrivateChannelsStore, UserStore, WindowStore } from "@webpack/common"; +import { ChannelActionCreators, ChannelStore, Menu, MessageStore, NavigationRouter, PresenceStore, UserStore, WindowStore } from "@webpack/common"; import type { Message } from "discord-types/general"; import { JSX } from "react"; @@ -163,7 +163,7 @@ export default definePlugin({ if ((settings.store.guilds.split(", ").includes(guildId) || settings.store.channels.split(", ").includes(channelId)) && mentioned) { await showNotification(message, guildId); } else if (settings.store.users.split(", ").includes(message.author.id)) { - const userChannelId = await PrivateChannelsStore.getOrEnsurePrivateChannel(message.author.id); + const userChannelId = await ChannelActionCreators.getOrEnsurePrivateChannel(message.author.id); if (channelId === userChannelId || (mentioned && settings.store.allowOutsideOfDms === true)) { await showNotification(message, guildId); } diff --git a/src/equicordplugins/encryptcord/index.tsx b/src/equicordplugins/encryptcord/index.tsx index 1f260ca4..a8d760ea 100644 --- a/src/equicordplugins/encryptcord/index.tsx +++ b/src/equicordplugins/encryptcord/index.tsx @@ -16,8 +16,8 @@ import { Devs, EquicordDevs } from "@utils/constants"; import { sleep } from "@utils/misc"; import definePlugin from "@utils/types"; import { - FluxDispatcher, MessageActions, - PrivateChannelsStore, RestAPI, + ChannelActionCreators, + FluxDispatcher, MessageActions, RestAPI, SnowflakeUtils, useEffect, UserStore, UserUtils, useState, @@ -201,7 +201,7 @@ export default definePlugin({ } return; } - const dmChannelId = await PrivateChannelsStore.getOrEnsurePrivateChannel(message.author.id); + const dmChannelId = await ChannelActionCreators.getOrEnsurePrivateChannel(message.author.id); if (channelId !== dmChannelId) return; const sender = await UserUtils.getUser(message.author.id).catch(() => null); if (!sender) return; @@ -282,7 +282,7 @@ export default definePlugin({ // Send Temporary Message async function sendTempMessage(recipientId: string, attachment: string, content: string, dm: boolean = true) { if (recipientId === UserStore.getCurrentUser().id) return; - const channelId = dm ? await PrivateChannelsStore.getOrEnsurePrivateChannel(recipientId) : recipientId; + const channelId = dm ? await ChannelActionCreators.getOrEnsurePrivateChannel(recipientId) : recipientId; if (attachment && attachment !== "") { const upload = await new CloudUpload({ file: new File([new Blob([attachment])], "file.text", { type: "text/plain; charset=utf-8" }),