Fix The Naming Scheme On Plugins

This commit is contained in:
thororen1234 2024-07-13 00:20:46 -04:00
parent ba7d7ae4e1
commit 61d3d1f4ad
4 changed files with 11 additions and 6 deletions

View file

@ -16,10 +16,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { migratePluginSettings } from "@api/Settings";
import { EquicordDevs } from "@utils/constants"; import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types"; import definePlugin from "@utils/types";
import { PermissionStore } from "@webpack/common"; import { PermissionStore } from "@webpack/common";
migratePluginSettings("GodMode", "God Mode");
export default definePlugin({ export default definePlugin({
name: "GodMode", name: "GodMode",
description: "Get all permissions (client-side).", description: "Get all permissions (client-side).",

View file

@ -16,6 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { migratePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants"; import { Devs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types"; import definePlugin, { OptionType } from "@utils/types";
@ -42,6 +43,7 @@ const keydown = (e: KeyboardEvent) => {
} }
}; };
migratePluginSettings("KeyboardSounds", "Keyboard Sounds");
export default definePlugin({ export default definePlugin({
name: "KeyboardSounds", name: "KeyboardSounds",
description: "Adds the Opera GX Keyboard Sounds to Discord", description: "Adds the Opera GX Keyboard Sounds to Discord",

View file

@ -5,7 +5,7 @@
*/ */
import { addChatBarButton, ChatBarButton, removeChatBarButton } from "@api/ChatButtons"; import { addChatBarButton, ChatBarButton, removeChatBarButton } from "@api/ChatButtons";
import { definePluginSettings } from "@api/Settings"; import { definePluginSettings, migratePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants"; import { Devs } from "@utils/constants";
import { openModal } from "@utils/modal"; import { openModal } from "@utils/modal";
import definePlugin, { OptionType } from "@utils/types"; import definePlugin, { OptionType } from "@utils/types";
@ -30,6 +30,7 @@ const SekaiStickerChatButton: ChatBarButton = () => {
}; };
let IS_FONTS_LOADED = false; let IS_FONTS_LOADED = false;
migratePluginSettings("SekaiStickers", "Sekai Stickers");
export default definePlugin({ export default definePlugin({
name: "SekaiStickers", name: "SekaiStickers",
description: "Sekai Stickers built in discord originally from github.com/TheOriginalAyaka", description: "Sekai Stickers built in discord originally from github.com/TheOriginalAyaka",