MoreUserTags: Migrate And Possibly Fix Settings
This commit is contained in:
parent
3048daa2e4
commit
edc30f3863
6 changed files with 11 additions and 4 deletions
|
|
@ -59,7 +59,6 @@ You can join our [discord server](https://discord.gg/equicord-117327988606502929
|
|||
- Encryptcord by Inbestigator
|
||||
- EquicordHelper by thororen & nyx
|
||||
- Equissant by SomeAspy & thororen
|
||||
- ExpandedUserTags by Cyn, TheSun, RyanCaoDev, LordElias, AutumnVN, hen
|
||||
- ExportContacts by dat_insanity
|
||||
- ExportMessages by veygax
|
||||
- FakeProfileThemesAndEffects by ryan
|
||||
|
|
@ -122,6 +121,7 @@ You can join our [discord server](https://discord.gg/equicord-117327988606502929
|
|||
- MoreCommands by Arjix, echo, Samu
|
||||
- MoreKaomoji by JacobTm & voidbbg
|
||||
- MoreStickers by Leko & Arjix
|
||||
- MoreUserTags by Cyn, TheSun, RyanCaoDev, LordElias, AutumnVN, hen
|
||||
- Morse by zyqunix
|
||||
- Moyai by Megu & Nuckyz
|
||||
- NeverPausePreviews by vappstar
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
import "./styles.css";
|
||||
|
||||
import { migratePluginSettings } from "@api/Settings";
|
||||
import { classNameFactory } from "@api/Styles";
|
||||
import { Devs, EquicordDevs } from "@utils/constants";
|
||||
import { getCurrentChannel, getIntlMessage } from "@utils/discord";
|
||||
|
|
@ -31,12 +32,12 @@ const genTagTypes = () => {
|
|||
return obj;
|
||||
};
|
||||
|
||||
migratePluginSettings("MoreUserTags", "ExpandedUserTags");
|
||||
export default definePlugin({
|
||||
name: "ExpandedUserTags",
|
||||
name: "MoreUserTags",
|
||||
description: "Adds tags for webhooks and moderative roles (owner, admin, etc.)",
|
||||
authors: [Devs.Cyn, Devs.TheSun, Devs.RyanCaoDev, Devs.LordElias, Devs.AutumnVN, EquicordDevs.Hen],
|
||||
dependencies: ["MemberListDecoratorsAPI", "NicknameIconsAPI", "MessageDecorationsAPI"],
|
||||
tags: ["MoreUserTags"],
|
||||
settings,
|
||||
patches: [
|
||||
// Make discord actually use our tags
|
||||
|
|
@ -14,7 +14,13 @@ import { TagSettings } from "./types";
|
|||
|
||||
function SettingsComponent() {
|
||||
const tagSettings = settings.store.tagSettings as TagSettings;
|
||||
const { localTags } = Vencord.Plugins.plugins.ExpandedUserTags as any;
|
||||
const { localTags } = Vencord.Plugins.plugins.MoreUserTags as any;
|
||||
|
||||
tags.forEach(t => {
|
||||
if (!tagSettings[t.name]) {
|
||||
tagSettings[t.name] = { text: t.displayName, showInChat: true, showInNotChat: true };
|
||||
}
|
||||
});
|
||||
|
||||
return (
|
||||
<Flex flexDirection="column">
|
||||
Loading…
Add table
Reference in a new issue