Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes InAppNotifications not working due to missing raw message module #398

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions InAppNotifications/InAppNotifications.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ const config = {
],
github_raw:
"https://raw.githubusercontent.com/QWERTxD/BetterDiscordPlugins/main/InAppNotifications/InAppNotifications.plugin.js",
version: "1.1.5",
version: "1.1.6",
description:
"Displays notifications such as new messages, friends added in Discord.",
},
changelog: [
{
"title": "Discriminators",
"type": "added",
"title": "Fixed",
"type": "fixed",
"items": [
"Modified how usernames and display names are displayed in notifications.",
"Fixes plugin not working due to missing raw message module",
]
}
],
Expand Down Expand Up @@ -208,7 +208,7 @@ const config = {

const ChannelTypes = Webpack.getModule(Webpack.Filters.byProps("GUILD_TEXT"), { searchExports: true });
const MuteStore = WebpackModules.getByProps("isSuppressEveryoneEnabled");
const isMentioned = Webpack.getModule(x=>x.isRawMessageMentioned)
const isRawMessageMentioned = Webpack.getModule(Webpack.Filters.byStrings("userId", "channelId", "mentionEveryone", "mentionUsers", "mentionRoles", "suppressEveryone", "suppressRoles"), { searchExports: true });
const Markdown = WebpackModules.getByProps("parse", "parseTopic");
const GuildStore = Webpack.getStore("GuildStore")
const AckUtils = { ack: Webpack.getModule(Webpack.Filters.byStrings("CHANNEL_ACK"), { searchExports: true }) };
Expand Down Expand Up @@ -993,7 +993,7 @@ const config = {
message.guild_id || "@me"
);
if (MuteStore.allowAllMessages(channel)) return true;
const SomethingHereShrug = isMentioned.isRawMessageMentioned(
const SomethingHereShrug = isRawMessageMentioned(
{
rawMessage: message,
userId: UserStore.getCurrentUser().id,
Expand Down