mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 13:11:57 -04:00
New Plugin
This commit is contained in:
parent
96df3abaac
commit
d2f9356f84
12 changed files with 72 additions and 37 deletions
25
README.md
25
README.md
|
@ -10,7 +10,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
|
|
||||||
### Extra included plugins
|
### Extra included plugins
|
||||||
<details>
|
<details>
|
||||||
<summary>160 additional plugins</summary>
|
<summary>164 additional plugins</summary>
|
||||||
|
|
||||||
### All Platforms
|
### All Platforms
|
||||||
- AllCallTimers by MaxHerbold & D3SOX
|
- AllCallTimers by MaxHerbold & D3SOX
|
||||||
|
@ -22,12 +22,13 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- BetterActivities by D3SOX, Arjix, AutumnVN
|
- BetterActivities by D3SOX, Arjix, AutumnVN
|
||||||
- BetterAudioPlayer by Creations
|
- BetterAudioPlayer by Creations
|
||||||
- BetterBanReasons by Inbestigator
|
- BetterBanReasons by Inbestigator
|
||||||
|
- BetterBlockedUsers by TheArmagan
|
||||||
- BetterInvites by iamme
|
- BetterInvites by iamme
|
||||||
|
- BetterPlusReacts by Joona
|
||||||
- BetterQuickReact by Ven & Sqaaakoi
|
- BetterQuickReact by Ven & Sqaaakoi
|
||||||
- BetterUserArea by Samwich
|
- BetterUserArea by Samwich
|
||||||
- BetterPlusReacts by Joona
|
|
||||||
- BlockKeywords by catcraft
|
- BlockKeywords by catcraft
|
||||||
- BlockKrsip by D3SOX
|
- BlockKrisp by D3SOX
|
||||||
- BypassStatus by Inbestigator & thororen
|
- BypassStatus by Inbestigator & thororen
|
||||||
- ChannelBadges by Creations
|
- ChannelBadges by Creations
|
||||||
- ChannelTabs by TheSun, TheKodeToad, keifufu, Nickyux
|
- ChannelTabs by TheSun, TheKodeToad, keifufu, Nickyux
|
||||||
|
@ -39,6 +40,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- CopyUserMention by Cortex & castdrian
|
- CopyUserMention by Cortex & castdrian
|
||||||
- CustomSounds by TheKodeToad & SpikeHD
|
- CustomSounds by TheKodeToad & SpikeHD
|
||||||
- CustomTimestamps by Rini & nvhrr
|
- CustomTimestamps by Rini & nvhrr
|
||||||
|
- CustomUserColors by mochienya
|
||||||
- CuteAnimeBoys by ShadyGoat
|
- CuteAnimeBoys by ShadyGoat
|
||||||
- CuteNekos by echo
|
- CuteNekos by echo
|
||||||
- CutePats by thororen
|
- CutePats by thororen
|
||||||
|
@ -51,17 +53,20 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- EmojiDumper by Cortex, Samwich, Woosh
|
- EmojiDumper by Cortex, Samwich, Woosh
|
||||||
- Encryptcord by Inbestigator
|
- Encryptcord by Inbestigator
|
||||||
- EquicordCSS by thororen, Panniku, Dablulite, Coolesding, MiniDiscordThemes, LuckFire, gold_me
|
- EquicordCSS by thororen, Panniku, Dablulite, Coolesding, MiniDiscordThemes, LuckFire, gold_me
|
||||||
|
- EquicordHelper by thororen & nyx
|
||||||
- Equissant by SomeAspy & thororen
|
- Equissant by SomeAspy & thororen
|
||||||
- ExportContacts by dat_insanity
|
- ExportContacts by dat_insanity
|
||||||
- FakeProfileThemesAndEffects by ryan
|
- FakeProfileThemesAndEffects by ryan
|
||||||
- FindReply by newwares
|
- FindReply by newwares
|
||||||
- FixFileExtensions by thororen
|
- FixFileExtensions by thororen
|
||||||
- FollowVoiceUser by TheArmagan
|
- FollowVoiceUser by TheArmagan
|
||||||
|
- FontLoader by vmohammad
|
||||||
|
- Freaky by nyx
|
||||||
- FrequentQuickSwitcher by Samwich
|
- FrequentQuickSwitcher by Samwich
|
||||||
- FriendCodes by HypedDomi
|
- FriendCodes by HypedDomi
|
||||||
- FriendshipRanks by Samwich
|
- FriendshipRanks by Samwich
|
||||||
- FullVcPfp by mochie
|
|
||||||
- FriendTags by Samwich
|
- FriendTags by Samwich
|
||||||
|
- FullVcPfp by mochie
|
||||||
- GensokyoRadioRPC by RyanCaoDev & Prince527
|
- GensokyoRadioRPC by RyanCaoDev & Prince527
|
||||||
- GifCollections by Aria & Creations
|
- GifCollections by Aria & Creations
|
||||||
- GifRoulette by Samwich
|
- GifRoulette by Samwich
|
||||||
|
@ -111,8 +116,8 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- NotificationTitle by Kyuuhachi
|
- NotificationTitle by Kyuuhachi
|
||||||
- OnePingPerDM by ProffDea
|
- OnePingPerDM by ProffDea
|
||||||
- PinIcon by iamme
|
- PinIcon by iamme
|
||||||
- PolishWording (Grammar) by Samwich
|
|
||||||
- PlatformSpoofer by Drag
|
- PlatformSpoofer by Drag
|
||||||
|
- PolishWording by Samwich
|
||||||
- PurgeMessages by bhop & nyx
|
- PurgeMessages by bhop & nyx
|
||||||
- QuestCompleter by Amia
|
- QuestCompleter by Amia
|
||||||
- QuestionMarkReplacement by nyx
|
- QuestionMarkReplacement by nyx
|
||||||
|
@ -128,12 +133,12 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- SekaiStickers by MaiKokain
|
- SekaiStickers by MaiKokain
|
||||||
- ServerSearch by camila314
|
- ServerSearch by camila314
|
||||||
- ShowBadgesInChat by Inbestigator & KrystalSkull
|
- ShowBadgesInChat by Inbestigator & KrystalSkull
|
||||||
- Signature by Ven, Rini, ImBanana, KrystalSkull
|
|
||||||
- SidebarChat by Joona
|
- SidebarChat by Joona
|
||||||
- StatsfmRPC by Crxaw & vmohammad
|
- Signature by Ven, Rini, ImBanana, KrystalSkull
|
||||||
- Slap by Korbo
|
- Slap by Korbo
|
||||||
- SoundBoardLogger by Moxxie, fres, echo, maintained by thororen
|
- SoundBoardLogger by Moxxie, fres, echo, maintained by thororen
|
||||||
- SpotifyLyrics by Joona
|
- SpotifyLyrics by Joona
|
||||||
|
- StatsfmRPC by Crxaw & vmohammad
|
||||||
- StatusPresets by iamme
|
- StatusPresets by iamme
|
||||||
- SteamStatusSync by niko
|
- SteamStatusSync by niko
|
||||||
- StickerBlocker by Samwich
|
- StickerBlocker by Samwich
|
||||||
|
@ -143,7 +148,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- ThemeLibrary by Fafa
|
- ThemeLibrary by Fafa
|
||||||
- Timezones by Aria
|
- Timezones by Aria
|
||||||
- Title by Kyuuhachi
|
- Title by Kyuuhachi
|
||||||
- toggleVideoBind by mochie
|
- ToggleVideoBind by mochie
|
||||||
- TosuRPC by AutumnVN
|
- TosuRPC by AutumnVN
|
||||||
- Translate+ by Prince527 & Ven
|
- Translate+ by Prince527 & Ven
|
||||||
- UnitConverter by sadan
|
- UnitConverter by sadan
|
||||||
|
@ -151,12 +156,12 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
|
||||||
- UnreadCountBadge by Joona
|
- UnreadCountBadge by Joona
|
||||||
- UserPFP by nexpid & thororen
|
- UserPFP by nexpid & thororen
|
||||||
- UwUifier by echo
|
- UwUifier by echo
|
||||||
- VCSupport by thororen
|
|
||||||
- VCNarratorCustom by Loukios, ported by example-git
|
- VCNarratorCustom by Loukios, ported by example-git
|
||||||
- VCPanelSettings by nin0dev
|
- VCPanelSettings by nin0dev
|
||||||
|
- VCSupport by thororen
|
||||||
- VencordRPC by AutumnVN
|
- VencordRPC by AutumnVN
|
||||||
- VideoSpeed by Samwich
|
- VideoSpeed by Samwich
|
||||||
- ViewRawVariant (ViewRaw2) by Kyuuhachi
|
- ViewRawVariant by Kyuuhachi
|
||||||
- VoiceChatUtilities by D3SOX
|
- VoiceChatUtilities by D3SOX
|
||||||
- VoiceJoinMessages by Sqaaakoi & maintained by thororen
|
- VoiceJoinMessages by Sqaaakoi & maintained by thororen
|
||||||
- WebpackTarball by Kyuuhachi
|
- WebpackTarball by Kyuuhachi
|
||||||
|
|
|
@ -5,12 +5,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { addMessagePreSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
|
import { addMessagePreSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
|
||||||
import { migratePluginSettings } from "@api/Settings";
|
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import definePlugin from "@utils/types";
|
import definePlugin from "@utils/types";
|
||||||
import { ChannelStore, GuildMemberStore, SelectedChannelStore, SelectedGuildStore } from "@webpack/common";
|
import { ChannelStore, GuildMemberStore, SelectedChannelStore, SelectedGuildStore } from "@webpack/common";
|
||||||
|
|
||||||
migratePluginSettings("AtSomeone", "atSomeone");
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "AtSomeone",
|
name: "AtSomeone",
|
||||||
authors: [Devs.Joona],
|
authors: [Devs.Joona],
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
import { type NavContextMenuPatchCallback } from "@api/ContextMenu";
|
import { type NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||||
import { Notifications } from "@api/index";
|
import { Notifications } from "@api/index";
|
||||||
import { definePluginSettings, migratePluginSettings } from "@api/Settings";
|
import { definePluginSettings } from "@api/Settings";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import { getCurrentChannel } from "@utils/discord";
|
import { getCurrentChannel } from "@utils/discord";
|
||||||
import { Logger } from "@utils/Logger";
|
import { Logger } from "@utils/Logger";
|
||||||
|
@ -146,7 +146,6 @@ const settings = definePluginSettings({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
migratePluginSettings("BypassStatus", "BypassDND");
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "BypassStatus",
|
name: "BypassStatus",
|
||||||
description: "Still get notifications from specific sources when in do not disturb mode. Right-click on users/channels/guilds to set them to bypass do not disturb mode.",
|
description: "Still get notifications from specific sources when in do not disturb mode. Right-click on users/channels/guilds to set them to bypass do not disturb mode.",
|
||||||
|
|
|
@ -8,7 +8,7 @@ import "./styles.css";
|
||||||
|
|
||||||
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||||
import { get } from "@api/DataStore";
|
import { get } from "@api/DataStore";
|
||||||
import { definePluginSettings, migratePluginSettings, Settings } from "@api/Settings";
|
import { definePluginSettings, Settings } from "@api/Settings";
|
||||||
import { EquicordDevs } from "@utils/constants";
|
import { EquicordDevs } from "@utils/constants";
|
||||||
import { openModal } from "@utils/modal";
|
import { openModal } from "@utils/modal";
|
||||||
import definePlugin, { OptionType } from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
|
@ -69,8 +69,6 @@ const settings = definePluginSettings({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
migratePluginSettings("CustomUserColors", "customUserColors");
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "CustomUserColors",
|
name: "CustomUserColors",
|
||||||
description: "Lets you add a custom color to any user, anywhere! Highly recommend to use with typingTweaks and roleColorEverywhere",
|
description: "Lets you add a custom color to any user, anywhere! Highly recommend to use with typingTweaks and roleColorEverywhere",
|
||||||
|
|
50
src/equicordplugins/freaky/index.tsx
Normal file
50
src/equicordplugins/freaky/index.tsx
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
/*
|
||||||
|
* Vencord, a Discord client mod
|
||||||
|
* Copyright (c) 2024 Vendicated and contributors
|
||||||
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption } from "@api/Commands";
|
||||||
|
import { EquicordDevs } from "@utils/constants";
|
||||||
|
import { sendMessage } from "@utils/discord";
|
||||||
|
import definePlugin from "@utils/types";
|
||||||
|
|
||||||
|
const charMap: Record<string, string> = {
|
||||||
|
q: "𝓺", w: "𝔀", e: "𝓮", r: "𝓻", t: "𝓽", y: "𝔂", u: "𝓾", i: "𝓲", o: "𝓸", p: "𝓹",
|
||||||
|
a: "𝓪", s: "𝓼", d: "𝓭", f: "𝓯", g: "𝓰", h: "𝓱", j: "𝓳", k: "𝓴", l: "𝓵", z: "𝔃",
|
||||||
|
x: "𝔁", c: "𝓬", v: "𝓿", b: "𝓫", n: "𝓷", m: "𝓶", Q: "𝓠", W: "𝓦", E: "𝓔", R: "𝓡",
|
||||||
|
T: "𝓣", Y: "𝓨", U: "𝓤", I: "𝓘", O: "𝓞", P: "𝓟", A: "𝓐", S: "𝓢", D: "𝓓", F: "𝓕",
|
||||||
|
G: "𝓖", H: "𝓗", J: "𝓙", K: "𝓚", L: "𝓛", Z: "𝓩", X: "𝓧", C: "𝓒", V: "𝓥", B: "𝓑",
|
||||||
|
N: "𝓝", M: "𝓜",
|
||||||
|
};
|
||||||
|
|
||||||
|
const mapCharacters = (text: string, map: Record<string, string>) =>
|
||||||
|
text.split("").map(char => map[char] || char).join("");
|
||||||
|
|
||||||
|
function makeFreaky(text: string) {
|
||||||
|
text = mapCharacters(text.trim() || "freaky", charMap);
|
||||||
|
text += Math.random() < 0.25 ? " 👅" : " ❤️";
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default definePlugin({
|
||||||
|
name: "Freaky",
|
||||||
|
description: "freaky.",
|
||||||
|
authors: [EquicordDevs.nyx],
|
||||||
|
commands: [
|
||||||
|
{
|
||||||
|
name: "freaky",
|
||||||
|
description: "it's freaky.",
|
||||||
|
inputType: ApplicationCommandInputType.BUILT_IN,
|
||||||
|
options: [{
|
||||||
|
name: "message",
|
||||||
|
description: "yoooo freaky",
|
||||||
|
type: ApplicationCommandOptionType.STRING,
|
||||||
|
required: true
|
||||||
|
}],
|
||||||
|
execute: (opts, ctx) => {
|
||||||
|
sendMessage(ctx.channel.id, { content: makeFreaky(findOption(opts, "message", "")) });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
|
@ -4,7 +4,7 @@
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { migratePluginSettings, Settings } from "@api/Settings";
|
import { Settings } from "@api/Settings";
|
||||||
import { disableStyle, enableStyle } from "@api/Styles";
|
import { disableStyle, enableStyle } from "@api/Styles";
|
||||||
import { EquicordDevs } from "@utils/constants";
|
import { EquicordDevs } from "@utils/constants";
|
||||||
import definePlugin from "@utils/types";
|
import definePlugin from "@utils/types";
|
||||||
|
@ -17,7 +17,6 @@ interface iUSRBG extends Plugin {
|
||||||
getImageUrl(userId: string): string | null;
|
getImageUrl(userId: string): string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
migratePluginSettings("FullVCPFP", "fullVcPfp");
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "FullVCPFP",
|
name: "FullVCPFP",
|
||||||
description: "Makes avatars take up the entire vc tile",
|
description: "Makes avatars take up the entire vc tile",
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext, sendBotMessage } from "@api/Commands";
|
import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext, sendBotMessage } from "@api/Commands";
|
||||||
import { migratePluginSettings } from "@api/Settings";
|
|
||||||
import { EquicordDevs } from "@utils/constants";
|
import { EquicordDevs } from "@utils/constants";
|
||||||
import definePlugin from "@utils/types";
|
import definePlugin from "@utils/types";
|
||||||
import { findByPropsLazy } from "@webpack";
|
import { findByPropsLazy } from "@webpack";
|
||||||
|
@ -75,7 +74,6 @@ async function resolveImage(options: Argument[], ctx: CommandContext): Promise<{
|
||||||
return { image, width, height };
|
return { image, width, height };
|
||||||
}
|
}
|
||||||
|
|
||||||
migratePluginSettings("ImgToGif", "imgtogif");
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "ImgToGif",
|
name: "ImgToGif",
|
||||||
description: "Adds a /imgtogif slash command to create a gif from any image",
|
description: "Adds a /imgtogif slash command to create a gif from any image",
|
||||||
|
|
|
@ -11,7 +11,6 @@ import {
|
||||||
} from "@api/MessageEvents";
|
} from "@api/MessageEvents";
|
||||||
import {
|
import {
|
||||||
definePluginSettings,
|
definePluginSettings,
|
||||||
migratePluginSettings,
|
|
||||||
Settings,
|
Settings,
|
||||||
} from "@api/Settings";
|
} from "@api/Settings";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
|
@ -21,8 +20,6 @@ const presendObject: MessageSendListener = (channelId, msg) => {
|
||||||
msg.content = textProcessing(msg.content);
|
msg.content = textProcessing(msg.content);
|
||||||
};
|
};
|
||||||
|
|
||||||
migratePluginSettings("PolishWording", "Grammar");
|
|
||||||
|
|
||||||
const settings = definePluginSettings({
|
const settings = definePluginSettings({
|
||||||
blockedWords: {
|
blockedWords: {
|
||||||
type: OptionType.STRING,
|
type: OptionType.STRING,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { DataStore } from "@api/index";
|
import { DataStore } from "@api/index";
|
||||||
import { definePluginSettings, migratePluginSettings, migrateSettingFromPlugin } from "@api/Settings";
|
import { definePluginSettings } from "@api/Settings";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import { useForceUpdater } from "@utils/react";
|
import { useForceUpdater } from "@utils/react";
|
||||||
import definePlugin, { OptionType } from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
|
@ -101,8 +101,6 @@ const settings = definePluginSettings({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
migrateSettingFromPlugin("RPCEditor", "replacedAppIds", "ReplaceActivityTypes", "replacedAppIds");
|
|
||||||
migratePluginSettings("RPCEditor", "ReplaceActivityTypes");
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "RPCEditor",
|
name: "RPCEditor",
|
||||||
description: "Edit the type and content of any Rich Presence",
|
description: "Edit the type and content of any Rich Presence",
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { addChatBarButton, ChatBarButton, ChatBarButtonFactory, removeChatBarBut
|
||||||
import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption, sendBotMessage } from "@api/Commands";
|
import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption, sendBotMessage } from "@api/Commands";
|
||||||
import { findGroupChildrenByChildId, NavContextMenuPatchCallback } from "@api/ContextMenu";
|
import { findGroupChildrenByChildId, NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||||
import { addMessagePreSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
|
import { addMessagePreSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
|
||||||
import { definePluginSettings, migratePluginSettings } from "@api/Settings";
|
import { definePluginSettings } from "@api/Settings";
|
||||||
import { Devs, EquicordDevs } from "@utils/constants";
|
import { Devs, EquicordDevs } from "@utils/constants";
|
||||||
import definePlugin, { OptionType } from "@utils/types";
|
import definePlugin, { OptionType } from "@utils/types";
|
||||||
import { Menu, React } from "@webpack/common";
|
import { Menu, React } from "@webpack/common";
|
||||||
|
@ -93,8 +93,6 @@ const ChatBarContextCheckbox: NavContextMenuPatchCallback = children => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
migratePluginSettings("Signature", "SentVia");
|
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "Signature",
|
name: "Signature",
|
||||||
description: "Automated fingerprint/end text",
|
description: "Automated fingerprint/end text",
|
||||||
|
|
|
@ -8,7 +8,7 @@ import "./styles.css";
|
||||||
|
|
||||||
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||||
import * as DataStore from "@api/DataStore";
|
import * as DataStore from "@api/DataStore";
|
||||||
import { definePluginSettings, migratePluginSettings } from "@api/Settings";
|
import { definePluginSettings } from "@api/Settings";
|
||||||
import ErrorBoundary from "@components/ErrorBoundary";
|
import ErrorBoundary from "@components/ErrorBoundary";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import { openModal } from "@utils/modal";
|
import { openModal } from "@utils/modal";
|
||||||
|
@ -138,7 +138,6 @@ const userContextMenuPatch: NavContextMenuPatchCallback = (children, { user }: {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
migratePluginSettings("Timezones", "Timezone");
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "Timezones",
|
name: "Timezones",
|
||||||
authors: [Devs.Aria],
|
authors: [Devs.Aria],
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||||
import { migratePluginSettings } from "@api/Settings";
|
|
||||||
import { CodeBlock } from "@components/CodeBlock";
|
import { CodeBlock } from "@components/CodeBlock";
|
||||||
import ErrorBoundary from "@components/ErrorBoundary";
|
import ErrorBoundary from "@components/ErrorBoundary";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
|
@ -24,8 +23,6 @@ import definePlugin from "@utils/types";
|
||||||
import { Forms, Menu, Text } from "@webpack/common";
|
import { Forms, Menu, Text } from "@webpack/common";
|
||||||
import { Message } from "discord-types/general";
|
import { Message } from "discord-types/general";
|
||||||
|
|
||||||
migratePluginSettings("ViewRawVariant", "ViewRaw2");
|
|
||||||
|
|
||||||
type CustomMessage = Message & {
|
type CustomMessage = Message & {
|
||||||
editHistory?: any;
|
editHistory?: any;
|
||||||
deleted?: any;
|
deleted?: any;
|
||||||
|
@ -130,8 +127,7 @@ function makeContextCallback(
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "ViewRawVariant",
|
name: "ViewRawVariant",
|
||||||
description:
|
description: "Copy/View raw content of any message, channel, or guild, but show in the right click menu.",
|
||||||
"Copy/View raw content of any message, channel, or guild, but show in the right click menu.",
|
|
||||||
authors: [Devs.KingFish, Devs.Ven, Devs.rad, Devs.ImLvna, Devs.Kyuuhachi],
|
authors: [Devs.KingFish, Devs.Ven, Devs.rad, Devs.ImLvna, Devs.Kyuuhachi],
|
||||||
contextMenus: {
|
contextMenus: {
|
||||||
"guild-context": makeContextCallback("guild", val =>
|
"guild-context": makeContextCallback("guild", val =>
|
||||||
|
|
Loading…
Add table
Reference in a new issue