diff --git a/src/plugins/_api/userSettingsDefinitions.ts b/src/plugins/_api/userSettingsDefinitions.ts index 5577a1723..a7ae53499 100644 --- a/src/plugins/_api/userSettingsDefinitions.ts +++ b/src/plugins/_api/userSettingsDefinitions.ts @@ -20,8 +20,8 @@ import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; export default definePlugin({ - name: "UserSettingDefinitionsAPI", - description: "Patches Discord's UserSettingDefinitions to expose their group and name.", + name: "UserSettingsAPI", + description: "Patches Discord's UserSettings to expose their group and name.", authors: [Devs.Nuckyz], patches: [ @@ -31,20 +31,20 @@ export default definePlugin({ // Main setting definition { match: /(?<=INFREQUENT_USER_ACTION.{0,20},)useSetting:/, - replace: "userSettingDefinitionsAPIGroup:arguments[0],userSettingDefinitionsAPIName:arguments[1],$&" + replace: "userSettingsAPIGroup:arguments[0],userSettingsAPIName:arguments[1],$&" }, // Selective wrapper { match: /updateSetting:.{0,100}SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE/, - replace: "userSettingDefinitionsAPIGroup:arguments[0].userSettingDefinitionsAPIGroup,userSettingDefinitionsAPIName:arguments[0].userSettingDefinitionsAPIName,$&" + replace: "userSettingsAPIGroup:arguments[0].userSettingsAPIGroup,userSettingsAPIName:arguments[0].userSettingsAPIName,$&" }, // Override wrapper { match: /updateSetting:.{0,60}USER_SETTINGS_OVERRIDE_CLEAR/, - replace: "userSettingDefinitionsAPIGroup:arguments[0].userSettingDefinitionsAPIGroup,userSettingDefinitionsAPIName:arguments[0].userSettingDefinitionsAPIName,$&" + replace: "userSettingsAPIGroup:arguments[0].userSettingsAPIGroup,userSettingsAPIName:arguments[0].userSettingsAPIName,$&" } ] } ] -}); +}); \ No newline at end of file diff --git a/src/plugins/betterRoleContext/index.tsx b/src/plugins/betterRoleContext/index.tsx index 92a2d9d70..89b000ea5 100644 --- a/src/plugins/betterRoleContext/index.tsx +++ b/src/plugins/betterRoleContext/index.tsx @@ -66,8 +66,9 @@ export default definePlugin({ description: "Adds options to copy role color / edit role / view role icon when right clicking roles in the user profile", authors: [Devs.Ven, Devs.goodbee], dependencies: ["UserSettingsAPI"], + settings, - + start() { // DeveloperMode needs to be enabled for the context menu to be shown DeveloperMode.updateSetting(true); @@ -121,4 +122,4 @@ export default definePlugin({ } } } -}); +}); \ No newline at end of file diff --git a/src/plugins/ignoreActivities/index.tsx b/src/plugins/ignoreActivities/index.tsx index 292cf2e28..5602a09b3 100644 --- a/src/plugins/ignoreActivities/index.tsx +++ b/src/plugins/ignoreActivities/index.tsx @@ -209,6 +209,7 @@ export default definePlugin({ authors: [Devs.Nuckyz], description: "Ignore activities from showing up on your status ONLY. You can configure which ones are specifically ignored from the Registered Games and Activities tabs, or use the general settings below.", dependencies: ["UserSettingsAPI"], + settings, patches: [ @@ -306,4 +307,4 @@ export default definePlugin({ ); } -}); +}); \ No newline at end of file diff --git a/src/plugins/messageLinkEmbeds/index.tsx b/src/plugins/messageLinkEmbeds/index.tsx index f147b4cbe..114af4171 100644 --- a/src/plugins/messageLinkEmbeds/index.tsx +++ b/src/plugins/messageLinkEmbeds/index.tsx @@ -367,6 +367,7 @@ export default definePlugin({ description: "Adds a preview to messages that link another message", authors: [Devs.TheSun, Devs.Ven, Devs.RyanCaoDev], dependencies: ["MessageAccessoriesAPI", "MessageUpdaterAPI", "UserSettingsAPI"], + settings, start() { @@ -390,4 +391,4 @@ export default definePlugin({ stop() { removeAccessory("messageLinkEmbed"); } -}); +}); \ No newline at end of file