aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-06-21 02:05:01 +0200
committerV <vendicated@riseup.net>2023-06-21 02:05:01 +0200
commit626eb3613e56d3d24ed707a69049c182061691e8 (patch)
treec91c5f64e82075ce941b20853eca88c7a91eaff9 /src/plugins
parent3020fcc9bb1af9ae40e84c08c3b44ea66344b27b (diff)
downloadVencord-626eb3613e56d3d24ed707a69049c182061691e8.tar.gz
Vencord-626eb3613e56d3d24ed707a69049c182061691e8.tar.bz2
Vencord-626eb3613e56d3d24ed707a69049c182061691e8.zip
[skip ci] WelcomeStickerPicker: Clean up settings types
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/welcomeStickerPicker.tsx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/welcomeStickerPicker.tsx b/src/plugins/welcomeStickerPicker.tsx
index 7aaded2..52f70b3 100644
--- a/src/plugins/welcomeStickerPicker.tsx
+++ b/src/plugins/welcomeStickerPicker.tsx
@@ -44,7 +44,10 @@ const settings = definePluginSettings({
],
description: "Choose the greet mode"
}
-});
+}).withPrivateSettings<{
+ multiGreetChoices?: string[];
+ unholyMultiGreetEnabled?: boolean;
+}>();
const MessageActions = findByPropsLazy("sendGreetMessage");
@@ -73,7 +76,7 @@ function greet(channel: Channel, message: Message, stickers: string[]) {
function GreetMenu({ stickers, channel, message }: { stickers: Sticker[], message: Message, channel: Channel; }) {
- const s = settings.use(["greetMode", "multiGreetChoices"] as any) as { greetMode: GreetMode, multiGreetChoices: string[]; };
+ const s = settings.use(["greetMode", "multiGreetChoices"]);
const { greetMode, multiGreetChoices = [] } = s;
return (
@@ -112,7 +115,7 @@ function GreetMenu({ stickers, channel, message }: { stickers: Sticker[], messag
))}
</Menu.MenuGroup>
- {!(settings.store as any).unholyMultiGreetEnabled ? null : (
+ {!settings.store.unholyMultiGreetEnabled ? null : (
<>
<Menu.MenuSeparator />