aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorAutumnVN <autumnvnchino@gmail.com>2023-08-11 11:10:49 +0700
committerGitHub <noreply@github.com>2023-08-11 06:10:49 +0200
commit6e7996659f2eeab8062cccf82ee7af6df1c69497 (patch)
treecb534a81fce5e045fd6dae98bf279f72bc930749 /src/plugins
parentabdf4ebb05ea9a20966096d062887a4f5c734e44 (diff)
downloadVencord-6e7996659f2eeab8062cccf82ee7af6df1c69497.tar.gz
Vencord-6e7996659f2eeab8062cccf82ee7af6df1c69497.tar.bz2
Vencord-6e7996659f2eeab8062cccf82ee7af6df1c69497.zip
messageLogger: fix ingore guild (#1632)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/messageLogger/index.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx
index 162db54..0e6f118 100644
--- a/src/plugins/messageLogger/index.tsx
+++ b/src/plugins/messageLogger/index.tsx
@@ -26,7 +26,7 @@ import { Devs } from "@utils/constants";
import { Logger } from "@utils/Logger";
import definePlugin, { OptionType } from "@utils/types";
import { findByPropsLazy } from "@webpack";
-import { FluxDispatcher, i18n, Menu, moment, Parser, Timestamp, UserStore } from "@webpack/common";
+import { ChannelStore, FluxDispatcher, i18n, Menu, moment, Parser, Timestamp, UserStore } from "@webpack/common";
import overlayStyle from "./deleteStyleOverlay.css?managed";
import textStyle from "./deleteStyleText.css?managed";
@@ -92,7 +92,7 @@ const patchMessageContextMenu: NavContextMenuPatchCallback = (children, props) =
export default definePlugin({
name: "MessageLogger",
description: "Temporarily logs deleted and edited messages.",
- authors: [Devs.rushii, Devs.Ven],
+ authors: [Devs.rushii, Devs.Ven, Devs.AutumnVN],
start() {
addDeleteStyle();
@@ -183,7 +183,7 @@ export default definePlugin({
ignoreSelf && msg.author?.id === myId ||
ignoreUsers.includes(msg.author?.id) ||
ignoreChannels.includes(msg.channel_id) ||
- ignoreGuilds.includes(msg.guild_id);
+ ignoreGuilds.includes(ChannelStore.getChannel(msg.channel_id)?.guild_id);
if (shouldIgnore) {
cache = cache.remove(id);