diff --git a/src/equicordplugins/soundBoardLogger/components/Icons.tsx b/src/equicordplugins/soundBoardLogger/components/Icons.tsx index d3c06f9a..9295a881 100644 --- a/src/equicordplugins/soundBoardLogger/components/Icons.tsx +++ b/src/equicordplugins/soundBoardLogger/components/Icons.tsx @@ -4,7 +4,7 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ -import { ChatBarButton } from "@api/ChatButtons"; +import { ChatBarButton, ChatBarButtonFactory } from "@api/ChatButtons"; import { classes } from "@utils/misc"; import { Button, ButtonLooks, ButtonWrapperClasses, Tooltip } from "@webpack/common"; @@ -58,7 +58,7 @@ export function IconWithTooltip({ text, icon, onClick }) { ; } -export const ChatBarIcon: ChatBarButton = () => { +export const ChatBarIcon: ChatBarButtonFactory = () => { return ( diff --git a/src/equicordplugins/talkInReverse/index.tsx b/src/equicordplugins/talkInReverse/index.tsx index 3e210d19..9d17b681 100644 --- a/src/equicordplugins/talkInReverse/index.tsx +++ b/src/equicordplugins/talkInReverse/index.tsx @@ -16,15 +16,15 @@ * along with this program. If not, see . */ -import { addChatBarButton, ChatBarButton, removeChatBarButton } from "@api/ChatButtons"; -import { addMessagePreSendListener, removeMessagePreSendListener, SendListener } from "@api/MessageEvents"; +import { addChatBarButton, ChatBarButton, ChatBarButtonFactory, removeChatBarButton } from "@api/ChatButtons"; +import { addMessagePreSendListener, MessageSendListener, removeMessagePreSendListener } from "@api/MessageEvents"; import { EquicordDevs } from "@utils/constants"; import definePlugin from "@utils/types"; import { React, useEffect, useState } from "@webpack/common"; let lastState = false; -const ReverseMessageToggle: ChatBarButton = ({ isMainChat }) => { +const ReverseMessageToggle: ChatBarButtonFactory = ({ isMainChat }) => { const [enabled, setEnabled] = useState(lastState); function setEnabledValue(value: boolean) { @@ -34,7 +34,7 @@ const ReverseMessageToggle: ChatBarButton = ({ isMainChat }) => { } useEffect(() => { - const listener: SendListener = async (_, message) => { + const listener: MessageSendListener = async (_, message) => { if (enabled && message.content) message.content = message.content.split("").reverse().join(""); }; diff --git a/src/equicordplugins/writeUpperCase/index.ts b/src/equicordplugins/writeUpperCase/index.ts index 4a9c5b13..a19e9c9c 100644 --- a/src/equicordplugins/writeUpperCase/index.ts +++ b/src/equicordplugins/writeUpperCase/index.ts @@ -4,7 +4,7 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ -import { addMessagePreSendListener, removeMessagePreSendListener, SendListener } from "@api/MessageEvents"; +import { addMessagePreSendListener, MessageSendListener, removeMessagePreSendListener } from "@api/MessageEvents"; import { definePluginSettings } from "@api/Settings"; import { Devs, EquicordDevs } from "@utils/constants"; import definePlugin, { OptionType } from "@utils/types"; @@ -19,7 +19,7 @@ const settings = definePluginSettings( } ); -const presendObject: SendListener = (_, msg) => { +const presendObject: MessageSendListener = (_, msg) => { const sentences = msg.content.split(/(?<=\w\.)\s/); const blockedWordsArray: string[] = settings.store.blockedWords.split(", "); diff --git a/src/plugins/ignoreActivities/index.tsx b/src/plugins/ignoreActivities/index.tsx index 08e146ab..7950dac5 100644 --- a/src/plugins/ignoreActivities/index.tsx +++ b/src/plugins/ignoreActivities/index.tsx @@ -171,7 +171,6 @@ const settings = definePluginSettings({ idsList: { type: OptionType.COMPONENT, description: "", - default: "", onChange(newValue: string) { const ids = new Set(newValue.split(",").map(id => id.trim()).filter(Boolean)); settings.store.idsList = Array.from(ids).join(", "); @@ -212,7 +211,8 @@ const settings = definePluginSettings({ ignoredActivities: { type: OptionType.CUSTOM, default: [] as IgnoredActivity[], - onChange: recalculateActivities + onChange: recalculateActivities, + description: "", } }); diff --git a/src/plugins/messageTags/index.ts b/src/plugins/messageTags/index.ts index 6352ceb0..a5458cd9 100644 --- a/src/plugins/messageTags/index.ts +++ b/src/plugins/messageTags/index.ts @@ -76,7 +76,6 @@ function createTagCommand(tag: Tag) { const settings = definePluginSettings({ clyde: { - name: "Clyde message on send", description: "If enabled, clyde will send you an ephemeral message when a tag was used.", type: OptionType.BOOLEAN, default: true @@ -84,6 +83,7 @@ const settings = definePluginSettings({ tagsList: { type: OptionType.CUSTOM, default: {} as Record, + description: "", } }); diff --git a/src/plugins/pinDms/index.tsx b/src/plugins/pinDms/index.tsx index 59fee9c0..ae0e7c8b 100644 --- a/src/plugins/pinDms/index.tsx +++ b/src/plugins/pinDms/index.tsx @@ -59,7 +59,8 @@ export const settings = definePluginSettings({ }, userBasedCategoryList: { type: OptionType.CUSTOM, - default: {} as Record + default: {} as Record, + description: "", } }); diff --git a/src/plugins/textReplace/index.tsx b/src/plugins/textReplace/index.tsx index 3d1e891d..2aa8d8a3 100644 --- a/src/plugins/textReplace/index.tsx +++ b/src/plugins/textReplace/index.tsx @@ -67,10 +67,12 @@ const settings = definePluginSettings({ stringRules: { type: OptionType.CUSTOM, default: makeEmptyRuleArray(), + description: "", }, regexRules: { type: OptionType.CUSTOM, default: makeEmptyRuleArray(), + description: "", } });