mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 06:03:03 -04:00
Fix Tags In Settings MoreUserTags
This commit is contained in:
parent
e6ab96a3ee
commit
767599b89c
2 changed files with 3 additions and 8 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue