Skip to content

Commit

Permalink
Fix ActivityIcons
Browse files Browse the repository at this point in the history
  • Loading branch information
Neodymium7 committed Nov 29, 2024
1 parent 111272d commit af9b92d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 3 additions & 5 deletions ActivityIcons/src/modules/discordmodules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Webpack } from "betterdiscord";
import { expectModule, getClasses, getSelectors, getIcon } from "@lib/utils/webpack";

const {
Filters: { byKeys },
Filters: { byKeys, byStrings },
} = Webpack;

const Error = (_props) => (
Expand All @@ -12,11 +12,9 @@ const Error = (_props) => (
);

export const ActivityStatus: any = expectModule({
filter: (m) =>
Object.values(m).some(
(v) => typeof v === "function" && v?.toString?.().includes("translateSurrogatesToInlineEmoji")
),
filter: byStrings("QuestsIcon", "hangStatusActivity"),
name: "ActivityStatus",
defaultExport: false,
fatal: true,
});

Expand Down
4 changes: 2 additions & 2 deletions ActivityIcons/src/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ActivityIcons",
"author": "Neodymium",
"version": "1.4.10",
"version": "1.4.11",
"description": "Improves the default icons next to statuses",
"source": "https://github.com/Neodymium7/BetterDiscordStuff/blob/main/ActivityIcons/ActivityIcons.plugin.js",
"invite": "fRbsqH87Av",
Expand All @@ -13,7 +13,7 @@
{
"title": "Fixed",
"type": "fixed",
"items": ["Fixed plugin not working after Discord's string changes."]
"items": ["Fixed icons not displaying."]
}
]
}
Expand Down
1 change: 0 additions & 1 deletion Library/src/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ interface StringsManager {

type Strings<T extends LocalesObject, D extends keyof T> = Override<StringsManager, Readonly<T[D]>>;

const Dispatcher = /* @__PURE__ */ Webpack.getModule(/* @__PURE__ */ Webpack.Filters.byKeys("dispatch", "subscribe"));
const LocaleStore = /* @__PURE__ */ Webpack.getModule((m) => m._dispatchToken && m.getName() === "LocaleStore");

/**
Expand Down

0 comments on commit af9b92d

Please sign in to comment.