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() {
|
function SettingsComponent() {
|
||||||
const tagSettings = settings.store.tagSettings as TagSettings;
|
const tagSettings = settings.store.tagSettings as TagSettings;
|
||||||
|
const { localTags } = Vencord.Plugins.plugins.MoreUserTags as any;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex flexDirection="column">
|
<Flex flexDirection="column">
|
||||||
|
@ -26,7 +27,7 @@ function SettingsComponent() {
|
||||||
onMouseEnter={onMouseEnter}
|
onMouseEnter={onMouseEnter}
|
||||||
onMouseLeave={onMouseLeave}
|
onMouseLeave={onMouseLeave}
|
||||||
>
|
>
|
||||||
{t.displayName} Tag <Tag type={Tag.Types[t.name]} />
|
{t.displayName} Tag <Tag type={localTags[t.name]}></Tag>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
|
@ -85,31 +85,26 @@ const settings = definePluginSettings({
|
||||||
maxLength = autoMaxLength();
|
maxLength = autoMaxLength();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
disableFileConversion: {
|
disableFileConversion: {
|
||||||
type: OptionType.BOOLEAN,
|
type: OptionType.BOOLEAN,
|
||||||
description: "If true, disables file conversion for large messages.",
|
description: "If true, disables file conversion for large messages.",
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
sendDelay: {
|
sendDelay: {
|
||||||
type: OptionType.SLIDER,
|
type: OptionType.SLIDER,
|
||||||
description: "Delay between each chunk in seconds.",
|
description: "Delay between each chunk in seconds.",
|
||||||
default: 1,
|
default: 1,
|
||||||
markers: [1, 2, 3, 5, 10],
|
markers: [1, 2, 3, 5, 10],
|
||||||
},
|
},
|
||||||
|
|
||||||
hardSplit: {
|
hardSplit: {
|
||||||
type: OptionType.BOOLEAN,
|
type: OptionType.BOOLEAN,
|
||||||
description: "If true, splits on the last character instead of the last space/newline.",
|
description: "If true, splits on the last character instead of the last space/newline.",
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
splitInSlowmode: {
|
splitInSlowmode: {
|
||||||
type: OptionType.BOOLEAN,
|
type: OptionType.BOOLEAN,
|
||||||
description: "Should messages be split if the channel has slowmode enabled?",
|
description: "Should messages be split if the channel has slowmode enabled?",
|
||||||
},
|
},
|
||||||
|
|
||||||
slowmodeMax: {
|
slowmodeMax: {
|
||||||
type: OptionType.NUMBER,
|
type: OptionType.NUMBER,
|
||||||
description: "Maximum slowmode time if splitting in slowmode.",
|
description: "Maximum slowmode time if splitting in slowmode.",
|
||||||
|
@ -127,8 +122,7 @@ export default definePlugin({
|
||||||
settings,
|
settings,
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
if (settings.store.maxLength === 0)
|
if (settings.store.maxLength === 0) maxLength = autoMaxLength();
|
||||||
maxLength = autoMaxLength();
|
|
||||||
addMessagePreSendListener(listener);
|
addMessagePreSendListener(listener);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue