Fix Tags In Settings MoreUserTags

This commit is contained in:
thororen1234 2025-05-02 21:36:30 -04:00
parent e6ab96a3ee
commit 767599b89c
No known key found for this signature in database
2 changed files with 3 additions and 8 deletions

View file

@ -14,6 +14,7 @@ import { TagSettings } from "./types";
function SettingsComponent() {
const tagSettings = settings.store.tagSettings as TagSettings;
const { localTags } = Vencord.Plugins.plugins.MoreUserTags as any;
return (
<Flex flexDirection="column">
@ -26,7 +27,7 @@ function SettingsComponent() {
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
>
{t.displayName} Tag <Tag type={Tag.Types[t.name]} />
{t.displayName} Tag <Tag type={localTags[t.name]}></Tag>
</div>
)}
</Tooltip>

View file

@ -85,31 +85,26 @@ const settings = definePluginSettings({
maxLength = autoMaxLength();
},
},
disableFileConversion: {
type: OptionType.BOOLEAN,
description: "If true, disables file conversion for large messages.",
default: true,
},
sendDelay: {
type: OptionType.SLIDER,
description: "Delay between each chunk in seconds.",
default: 1,
markers: [1, 2, 3, 5, 10],
},
hardSplit: {
type: OptionType.BOOLEAN,
description: "If true, splits on the last character instead of the last space/newline.",
default: false,
},
splitInSlowmode: {
type: OptionType.BOOLEAN,
description: "Should messages be split if the channel has slowmode enabled?",
},
slowmodeMax: {
type: OptionType.NUMBER,
description: "Maximum slowmode time if splitting in slowmode.",
@ -127,8 +122,7 @@ export default definePlugin({
settings,
start() {
if (settings.store.maxLength === 0)
maxLength = autoMaxLength();
if (settings.store.maxLength === 0) maxLength = autoMaxLength();
addMessagePreSendListener(listener);
},