Fix Requires

This commit is contained in:
thororen1234 2025-11-27 16:00:48 -05:00
parent b0c74a59bb
commit 4850a6401f
No known key found for this signature in database

View file

@ -365,9 +365,12 @@ export const initPluginManager = onlyOnce(function init() {
if (p.renderMessageAccessory) neededApiPlugins.add("MessageAccessoriesAPI");
if (p.renderMessageDecoration) neededApiPlugins.add("MessageDecorationsAPI");
if (p.messagePopoverButton || p.renderMessagePopoverButton) neededApiPlugins.add("MessagePopoverAPI");
if (p.renderNicknameIcon) neededApiPlugins.add("NicknameIconsAPI");
if (p.userProfileBadge) neededApiPlugins.add("BadgeAPI");
// Custom
if (p.renderNicknameIcon) neededApiPlugins.add("NicknameIconsAPI");
if (p.audioProcessor) neededApiPlugins.add("AudioPlayerAPI");
for (const key of pluginKeysToBind) {
p[key] &&= p[key].bind(p) as any;
}