[skip ci] WelcomeStickerPicker: Clean up settings types
This commit is contained in:
parent
3020fcc9bb
commit
626eb3613e
@ -44,7 +44,10 @@ const settings = definePluginSettings({
|
|||||||
],
|
],
|
||||||
description: "Choose the greet mode"
|
description: "Choose the greet mode"
|
||||||
}
|
}
|
||||||
});
|
}).withPrivateSettings<{
|
||||||
|
multiGreetChoices?: string[];
|
||||||
|
unholyMultiGreetEnabled?: boolean;
|
||||||
|
}>();
|
||||||
|
|
||||||
const MessageActions = findByPropsLazy("sendGreetMessage");
|
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; }) {
|
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;
|
const { greetMode, multiGreetChoices = [] } = s;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -112,7 +115,7 @@ function GreetMenu({ stickers, channel, message }: { stickers: Sticker[], messag
|
|||||||
))}
|
))}
|
||||||
</Menu.MenuGroup>
|
</Menu.MenuGroup>
|
||||||
|
|
||||||
{!(settings.store as any).unholyMultiGreetEnabled ? null : (
|
{!settings.store.unholyMultiGreetEnabled ? null : (
|
||||||
<>
|
<>
|
||||||
<Menu.MenuSeparator />
|
<Menu.MenuSeparator />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user