@plexcord/types 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Plexcord.d.ts +31 -0
- package/PlexcordNative.d.ts +56 -0
- package/README.md +11 -0
- package/api/AudioPlayer.d.ts +151 -0
- package/api/Badges.d.ts +49 -0
- package/api/ChatButtons.d.ts +75 -0
- package/api/Commands/commandHelpers.d.ts +19 -0
- package/api/Commands/index.d.ts +28 -0
- package/api/Commands/types.d.ts +5 -0
- package/api/ContextMenu.d.ts +55 -0
- package/api/DataStore/index.d.ts +97 -0
- package/api/LocaleLoader.d.ts +49 -0
- package/api/MemberListDecorators.d.ts +20 -0
- package/api/MessageAccessories.d.ts +10 -0
- package/api/MessageDecorations.d.ts +33 -0
- package/api/MessageEvents.d.ts +48 -0
- package/api/MessagePopover.d.ts +16 -0
- package/api/MessageUpdater.d.ts +8 -0
- package/api/NicknameIcons.d.ts +12 -0
- package/api/Notices.d.ts +6 -0
- package/api/Notifications/NotificationComponent.d.ts +6 -0
- package/api/Notifications/Notifications.d.ts +25 -0
- package/api/Notifications/index.d.ts +1 -0
- package/api/Notifications/notificationLog.d.ts +14 -0
- package/api/ServerList.d.ts +9 -0
- package/api/Settings.d.ts +81 -0
- package/api/Styles.d.ts +97 -0
- package/api/UserSettingDefinitions.d.ts +40 -0
- package/api/UserSettings.d.ts +40 -0
- package/api/i18n.d.ts +67 -0
- package/api/index.d.ts +121 -0
- package/components/CheckedTextInput.d.ts +23 -0
- package/components/CodeBlock.d.ts +7 -0
- package/components/ErrorBoundary.d.ts +26 -0
- package/components/ErrorCard.d.ts +3 -0
- package/components/Flex.d.ts +5 -0
- package/components/FormDivider.d.ts +4 -0
- package/components/FormSwitch.d.ts +14 -0
- package/components/Grid.d.ts +8 -0
- package/components/Heart.d.ts +2 -0
- package/components/Icons.d.ts +41 -0
- package/components/Link.d.ts +5 -0
- package/components/Switch.d.ts +8 -0
- package/components/handleComponentFailed.d.ts +1 -0
- package/components/index.d.ts +13 -0
- package/components/settings/AddonCard.d.ts +17 -0
- package/components/settings/DonateButton.d.ts +2 -0
- package/components/settings/PluginBadge.d.ts +4 -0
- package/components/settings/QuickAction.d.ts +12 -0
- package/components/settings/SpecialCard.d.ts +14 -0
- package/components/settings/Switch.d.ts +8 -0
- package/components/settings/index.d.ts +7 -0
- package/components/settings/tabs/BaseTab.d.ts +7 -0
- package/components/settings/tabs/changelog/NewPluginsSection.d.ts +11 -0
- package/components/settings/tabs/changelog/changelogManager.d.ts +40 -0
- package/components/settings/tabs/changelog/index.d.ts +3 -0
- package/components/settings/tabs/index.d.ts +12 -0
- package/components/settings/tabs/patchHelper/FullPatchInput.d.ts +8 -0
- package/components/settings/tabs/patchHelper/PatchPreview.d.ts +9 -0
- package/components/settings/tabs/patchHelper/ReplacementInput.d.ts +5 -0
- package/components/settings/tabs/patchHelper/index.d.ts +2 -0
- package/components/settings/tabs/plexcord/DonateButton.d.ts +2 -0
- package/components/settings/tabs/plexcord/MacVibrancySettings.d.ts +1 -0
- package/components/settings/tabs/plexcord/NotificationSettings.d.ts +2 -0
- package/components/settings/tabs/plexcord/index.d.ts +2 -0
- package/components/settings/tabs/plexcord/languages.d.ts +10 -0
- package/components/settings/tabs/plugins/ContributorModal.d.ts +3 -0
- package/components/settings/tabs/plugins/LinkIconButton.d.ts +10 -0
- package/components/settings/tabs/plugins/PluginCard.d.ts +12 -0
- package/components/settings/tabs/plugins/PluginModal.d.ts +17 -0
- package/components/settings/tabs/plugins/PluginStatCards.d.ts +7 -0
- package/components/settings/tabs/plugins/components/BooleanSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/Common.d.ts +25 -0
- package/components/settings/tabs/plugins/components/ComponentSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/NumberSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/SelectSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/SliderSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/TextSetting.d.ts +3 -0
- package/components/settings/tabs/plugins/components/index.d.ts +5 -0
- package/components/settings/tabs/plugins/index.d.ts +12 -0
- package/components/settings/tabs/sync/BackupAndRestoreTab.d.ts +2 -0
- package/components/settings/tabs/sync/CloudTab.d.ts +2 -0
- package/components/settings/tabs/themes/CspErrorCard.d.ts +1 -0
- package/components/settings/tabs/themes/LocalThemesTab.d.ts +1 -0
- package/components/settings/tabs/themes/OnlineThemesTab.d.ts +1 -0
- package/components/settings/tabs/themes/ThemeCard.d.ts +9 -0
- package/components/settings/tabs/themes/index.d.ts +3 -0
- package/components/settings/tabs/updater/Components.d.ts +15 -0
- package/components/settings/tabs/updater/index.d.ts +3 -0
- package/components/settings/tabs/updater/runWithDispatch.d.ts +1 -0
- package/globals.d.ts +25 -0
- package/index.d.ts +5 -0
- package/modules.d.ts +49 -0
- package/nativeModules.d.ts +13 -0
- package/package.json +32 -0
- package/plugins/_api/audioPlayer.d.ts +23 -0
- package/plugins/_api/badges/index.d.ts +58 -0
- package/plugins/_api/chatButtons.d.ts +17 -0
- package/plugins/_api/commands.d.ts +30 -0
- package/plugins/_api/contextMenu.d.ts +28 -0
- package/plugins/_api/dynamicImageModalApi.d.ts +17 -0
- package/plugins/_api/memberListDecorators/index.d.ts +24 -0
- package/plugins/_api/menuItemDemangler.d.ts +18 -0
- package/plugins/_api/messageAccessories.d.ts +17 -0
- package/plugins/_api/messageDecorations/index.d.ts +18 -0
- package/plugins/_api/messageEvents.d.ts +17 -0
- package/plugins/_api/messagePopover.d.ts +17 -0
- package/plugins/_api/messageUpdater.d.ts +17 -0
- package/plugins/_api/nicknameIcons.d.ts +17 -0
- package/plugins/_api/notices.d.ts +27 -0
- package/plugins/_api/serverList.d.ts +23 -0
- package/plugins/_api/userSettings.d.ts +17 -0
- package/plugins/_core/noTrack.d.ts +55 -0
- package/plugins/_core/settings.d.ts +82 -0
- package/plugins/_core/supportHelper.d.ts +46 -0
- package/plugins/accountPanelServerProfile/index.d.ts +48 -0
- package/plugins/allCallTimers/index.d.ts +322 -0
- package/plugins/altKrispSwitch/index.d.ts +18 -0
- package/plugins/alwaysAnimate/index.d.ts +27 -0
- package/plugins/alwaysExpandProfile/index.d.ts +20 -0
- package/plugins/alwaysExpandRoles/index.d.ts +37 -0
- package/plugins/alwaysTrust/index.d.ts +77 -0
- package/plugins/amITyping/index.d.ts +17 -0
- package/plugins/anonymiseFileNames/index.d.ts +133 -0
- package/plugins/appleMusic.desktop/index.d.ts +251 -0
- package/plugins/appleMusic.desktop/native.d.ts +2 -0
- package/plugins/arRPC.web/index.d.ts +17 -0
- package/plugins/atSomeone/index.d.ts +25 -0
- package/plugins/bannersEverywhere/index.d.ts +68 -0
- package/plugins/betterActivities/components/ActivityTooltip.d.ts +2 -0
- package/plugins/betterActivities/components/Caret.d.ts +4 -0
- package/plugins/betterActivities/components/CarouselControls.d.ts +2 -0
- package/plugins/betterActivities/components/TwitchIcon.d.ts +2 -0
- package/plugins/betterActivities/index.d.ts +173 -0
- package/plugins/betterActivities/patch-helpers/activityList.d.ts +3 -0
- package/plugins/betterActivities/patch-helpers/popout.d.ts +3 -0
- package/plugins/betterActivities/settings.d.ts +140 -0
- package/plugins/betterActivities/types.d.ts +62 -0
- package/plugins/betterActivities/utils.d.ts +6 -0
- package/plugins/betterBanReasons/index.d.ts +49 -0
- package/plugins/betterBlockedUsers/index.d.ts +23 -0
- package/plugins/betterCommands/index.d.ts +67 -0
- package/plugins/betterFolders/FolderSideBar.d.ts +2 -0
- package/plugins/betterFolders/index.d.ts +353 -0
- package/plugins/betterGifAltText/index.d.ts +18 -0
- package/plugins/betterGifPicker/index.d.ts +17 -0
- package/plugins/betterInvites/index.d.ts +29 -0
- package/plugins/betterNotes/index.d.ts +62 -0
- package/plugins/betterPlusReacts/index.d.ts +20 -0
- package/plugins/betterQuickReact/index.d.ts +186 -0
- package/plugins/betterRoleContext/index.d.ts +49 -0
- package/plugins/betterRoleDot/index.d.ts +47 -0
- package/plugins/betterSessions/components/RenameButton.d.ts +5 -0
- package/plugins/betterSessions/components/RenameModal.d.ts +7 -0
- package/plugins/betterSessions/components/icons.d.ts +10 -0
- package/plugins/betterSessions/index.d.ts +71 -0
- package/plugins/betterSessions/types.d.ts +13 -0
- package/plugins/betterSessions/utils.d.ts +10 -0
- package/plugins/betterSettings/PluginsSubmenu.d.ts +1 -0
- package/plugins/betterSettings/index.d.ts +103 -0
- package/plugins/betterUploadButton/index.d.ts +24 -0
- package/plugins/bigFileUpload/index.d.ts +331 -0
- package/plugins/bigFileUpload/native.d.ts +4 -0
- package/plugins/biggerStreamPreview/index.d.ts +49 -0
- package/plugins/biggerStreamPreview/webpack/stores.d.ts +3 -0
- package/plugins/biggerStreamPreview/webpack/types/stores.d.ts +60 -0
- package/plugins/blockKeywords/index.d.ts +90 -0
- package/plugins/blockKrisp/index.d.ts +17 -0
- package/plugins/blurNsfw/index.d.ts +36 -0
- package/plugins/bypassStatus/index.d.ts +27 -0
- package/plugins/cakeday/index.d.ts +42 -0
- package/plugins/callTimer/index.d.ts +41 -0
- package/plugins/channelBadges/index.d.ts +631 -0
- package/plugins/channelBadges/settings.d.ts +662 -0
- package/plugins/channelTabs/components/BookmarkContainer.d.ts +4 -0
- package/plugins/channelTabs/components/ChannelTab.d.ts +8 -0
- package/plugins/channelTabs/components/ChannelTabsContainer.d.ts +3 -0
- package/plugins/channelTabs/components/ContextMenus.d.ts +17 -0
- package/plugins/channelTabs/index.d.ts +467 -0
- package/plugins/channelTabs/util/bookmarks.d.ts +4 -0
- package/plugins/channelTabs/util/constants.d.ts +449 -0
- package/plugins/channelTabs/util/index.d.ts +4 -0
- package/plugins/channelTabs/util/tabs.d.ts +23 -0
- package/plugins/channelTabs/util/types.d.ts +41 -0
- package/plugins/characterCounter/index.d.ts +35 -0
- package/plugins/cleanChannelName/index.d.ts +19 -0
- package/plugins/clearURLs/defaultRules.d.ts +1 -0
- package/plugins/clearURLs/index.d.ts +26 -0
- package/plugins/clientSideBlock/index.d.ts +158 -0
- package/plugins/clientTheme/components/Settings.d.ts +2 -0
- package/plugins/clientTheme/index.d.ts +67 -0
- package/plugins/clientTheme/utils/colorUtils.d.ts +6 -0
- package/plugins/clientTheme/utils/styleUtils.d.ts +3 -0
- package/plugins/clipsEnhancements/index.d.ts +71 -0
- package/plugins/colorSighted/index.d.ts +17 -0
- package/plugins/commandPalette/commands.d.ts +8 -0
- package/plugins/commandPalette/components/CommandPalette.d.ts +5 -0
- package/plugins/commandPalette/components/MultipleChoice.d.ts +11 -0
- package/plugins/commandPalette/components/TextInput.d.ts +11 -0
- package/plugins/commandPalette/index.d.ts +72 -0
- package/plugins/consoleJanitor/index.d.ts +107 -0
- package/plugins/consoleShortcuts/index.d.ts +22 -0
- package/plugins/consoleShortcuts/native.d.ts +2 -0
- package/plugins/contentWarning/index.d.ts +33 -0
- package/plugins/copyEmojiMarkdown/index.d.ts +40 -0
- package/plugins/copyFileContents/index.d.ts +22 -0
- package/plugins/copyStatusUrls/index.d.ts +23 -0
- package/plugins/copyStickerLinks/index.d.ts +15 -0
- package/plugins/copyUserMention/index.d.ts +14 -0
- package/plugins/copyUserURLs/index.d.ts +14 -0
- package/plugins/crashHandler/index.d.ts +48 -0
- package/plugins/ctrlEnterSend/index.d.ts +37 -0
- package/plugins/customFolderIcons/components.d.ts +8 -0
- package/plugins/customFolderIcons/index.d.ts +52 -0
- package/plugins/customFolderIcons/settings.d.ts +35 -0
- package/plugins/customFolderIcons/util.d.ts +11 -0
- package/plugins/customIdle/index.d.ts +53 -0
- package/plugins/customRPC/index.d.ts +311 -0
- package/plugins/customSounds/SoundOverrideComponent.d.ts +6 -0
- package/plugins/customSounds/audioStore.d.ts +11 -0
- package/plugins/customSounds/index.d.ts +38 -0
- package/plugins/customSounds/types.d.ts +40 -0
- package/plugins/customTimestamps/index.d.ts +51 -0
- package/plugins/customUserColors/SetColorModal.d.ts +5 -0
- package/plugins/customUserColors/index.d.ts +99 -0
- package/plugins/dearrow/index.d.ts +113 -0
- package/plugins/decodeBase64/index.d.ts +45 -0
- package/plugins/decor/index.d.ts +93 -0
- package/plugins/decor/lib/api.d.ts +27 -0
- package/plugins/decor/lib/constants.d.ts +11 -0
- package/plugins/decor/lib/stores/AuthorizationStore.d.ts +1 -0
- package/plugins/decor/lib/stores/CurrentUserDecorationsStore.d.ts +1 -0
- package/plugins/decor/lib/stores/UsersDecorationsStore.d.ts +4 -0
- package/plugins/decor/lib/utils/decoration.d.ts +4 -0
- package/plugins/decor/settings.d.ts +42 -0
- package/plugins/decor/ui/components/DecorDecorationGridDecoration.d.ts +9 -0
- package/plugins/decor/ui/components/DecorSection.d.ts +6 -0
- package/plugins/decor/ui/components/DecorationContextMenu.d.ts +4 -0
- package/plugins/decor/ui/components/DecorationGridCreate.d.ts +6 -0
- package/plugins/decor/ui/components/DecorationGridNone.d.ts +7 -0
- package/plugins/decor/ui/components/Grid.d.ts +8 -0
- package/plugins/decor/ui/components/SectionedGridList.d.ts +12 -0
- package/plugins/decor/ui/components/index.d.ts +17 -0
- package/plugins/decor/ui/index.d.ts +4 -0
- package/plugins/decor/ui/modals/ChangeDecorationModal.d.ts +1 -0
- package/plugins/decor/ui/modals/CreateDecorationModal.d.ts +1 -0
- package/plugins/decor/ui/modals/GuidelinesModal.d.ts +1 -0
- package/plugins/demonstration/index.d.ts +61 -0
- package/plugins/devCompanion.dev/index.d.ts +100 -0
- package/plugins/devCompanion.dev/initWs.d.ts +3 -0
- package/plugins/devCompanion.dev/types/index.d.ts +1 -0
- package/plugins/devCompanion.dev/types/recieve.d.ts +121 -0
- package/plugins/devCompanion.dev/types/send.d.ts +73 -0
- package/plugins/devCompanion.dev/util.d.ts +25 -0
- package/plugins/disCleaner/index.d.ts +172 -0
- package/plugins/disableCallIdle/index.d.ts +17 -0
- package/plugins/disableCameras/index.d.ts +17 -0
- package/plugins/dontFilterMe/constants.d.ts +2 -0
- package/plugins/dontFilterMe/index.d.ts +13 -0
- package/plugins/dontRoundMyTimestamps/index.d.ts +12 -0
- package/plugins/downloadify/index.d.ts +115 -0
- package/plugins/downloadify/native.d.ts +22 -0
- package/plugins/downloadify/settings.d.ts +84 -0
- package/plugins/downloadify/utils/definitions.d.ts +365 -0
- package/plugins/downloadify/utils/handlers.d.ts +9 -0
- package/plugins/downloadify/utils/misc.d.ts +21 -0
- package/plugins/encryptcord/index.d.ts +41 -0
- package/plugins/encryptcord/rsa-utils.d.ts +7 -0
- package/plugins/expandedUserTags/consts.d.ts +22 -0
- package/plugins/expandedUserTags/index.d.ts +97 -0
- package/plugins/expandedUserTags/settings.d.ts +56 -0
- package/plugins/expandedUserTags/types.d.ts +19 -0
- package/plugins/experiments/index.d.ts +61 -0
- package/plugins/exportMessages/index.d.ts +93 -0
- package/plugins/expressionCloner/index.d.ts +16 -0
- package/plugins/f8break/index.d.ts +13 -0
- package/plugins/fakeNitro/index.d.ts +187 -0
- package/plugins/fakeProfileThemes/index.d.ts +59 -0
- package/plugins/fakeProfileThemesAndEffects/components/Builder.d.ts +5 -0
- package/plugins/fakeProfileThemesAndEffects/components/BuilderButton.d.ts +9 -0
- package/plugins/fakeProfileThemesAndEffects/components/BuilderColorButton.d.ts +6 -0
- package/plugins/fakeProfileThemesAndEffects/components/index.d.ts +54 -0
- package/plugins/fakeProfileThemesAndEffects/components/settingsAboutComponent.d.ts +1 -0
- package/plugins/fakeProfileThemesAndEffects/index.d.ts +124 -0
- package/plugins/fakeProfileThemesAndEffects/lib/fpte.d.ts +57 -0
- package/plugins/fakeProfileThemesAndEffects/lib/index.d.ts +4 -0
- package/plugins/fakeProfileThemesAndEffects/lib/profileEffects.d.ts +58 -0
- package/plugins/fakeProfileThemesAndEffects/lib/profilePreview.d.ts +11 -0
- package/plugins/fakeProfileThemesAndEffects/lib/userProfile.d.ts +7 -0
- package/plugins/fastDeleteChannels/index.d.ts +72 -0
- package/plugins/favEmojiFirst/index.d.ts +32 -0
- package/plugins/favGifSearch/index.d.ts +123 -0
- package/plugins/findReply/ReplyNavigator.d.ts +5 -0
- package/plugins/findReply/index.d.ts +37 -0
- package/plugins/fixCodeblockGap/index.d.ts +17 -0
- package/plugins/fixFileExtensions/index.d.ts +23 -0
- package/plugins/fixImagesQuality/index.d.ts +17 -0
- package/plugins/fixSpotifyEmbeds.desktop/index.d.ts +21 -0
- package/plugins/fixSpotifyEmbeds.desktop/native.d.ts +1 -0
- package/plugins/fixYoutubeEmbeds.desktop/index.d.ts +10 -0
- package/plugins/fixYoutubeEmbeds.desktop/native.d.ts +1 -0
- package/plugins/followUser/index.d.ts +207 -0
- package/plugins/fontLoader/index.d.ts +55 -0
- package/plugins/forceOwnerCrown/index.d.ts +24 -0
- package/plugins/freaky/index.d.ts +41 -0
- package/plugins/frequentQuickSwitcher/index.d.ts +25 -0
- package/plugins/friendInvites/index.d.ts +18 -0
- package/plugins/friendsSince/index.d.ts +21 -0
- package/plugins/friendshipRanks/icons.d.ts +7 -0
- package/plugins/friendshipRanks/index.d.ts +13 -0
- package/plugins/fullSearchContext/index.d.ts +23 -0
- package/plugins/fullUserInChatbox/index.d.ts +25 -0
- package/plugins/fullVcPfp/index.d.ts +32 -0
- package/plugins/gameActivityToggle/index.d.ts +38 -0
- package/plugins/gifCollections/index.d.ts +388 -0
- package/plugins/gifCollections/types.d.ts +36 -0
- package/plugins/gifCollections/utils/cleanUrl.d.ts +1 -0
- package/plugins/gifCollections/utils/collectionManager.d.ts +17 -0
- package/plugins/gifCollections/utils/getFormat.d.ts +2 -0
- package/plugins/gifCollections/utils/getGif.d.ts +6 -0
- package/plugins/gifCollections/utils/getUrlExtension.d.ts +1 -0
- package/plugins/gifCollections/utils/isAudio.d.ts +1 -0
- package/plugins/gifCollections/utils/refreshUrl.d.ts +2 -0
- package/plugins/gifCollections/utils/settingsUtils.d.ts +4 -0
- package/plugins/gifCollections/utils/uuidv4.d.ts +1 -0
- package/plugins/gifPaste/index.d.ts +20 -0
- package/plugins/githubRepos/colors.d.ts +1 -0
- package/plugins/githubRepos/components/GitHubReposComponent.d.ts +4 -0
- package/plugins/githubRepos/components/RepoCard.d.ts +2 -0
- package/plugins/githubRepos/components/ReposModal.d.ts +8 -0
- package/plugins/githubRepos/components/Star.d.ts +2 -0
- package/plugins/githubRepos/githubApi.d.ts +8 -0
- package/plugins/githubRepos/index.d.ts +102 -0
- package/plugins/githubRepos/types.d.ts +19 -0
- package/plugins/googleThat/index.d.ts +75 -0
- package/plugins/greetStickerPicker/index.d.ts +57 -0
- package/plugins/guildPickerDumper/index.d.ts +15 -0
- package/plugins/hideAttachments/index.d.ts +33 -0
- package/plugins/hideChatButtons/index.d.ts +51 -0
- package/plugins/hideServers/HiddenServersStore.d.ts +19 -0
- package/plugins/hideServers/components/HiddenServersButton.d.ts +3 -0
- package/plugins/hideServers/components/HiddenServersMenu.d.ts +5 -0
- package/plugins/hideServers/index.d.ts +84 -0
- package/plugins/hideServers/settings.d.ts +37 -0
- package/plugins/holyNotes/NoteHandler.d.ts +25 -0
- package/plugins/holyNotes/components/icons/HelpIcon.d.ts +5 -0
- package/plugins/holyNotes/components/icons/NoteButton.d.ts +4 -0
- package/plugins/holyNotes/components/icons/overFlowIcon.d.ts +10 -0
- package/plugins/holyNotes/components/modals/Error.d.ts +4 -0
- package/plugins/holyNotes/components/modals/HelpModal.d.ts +5 -0
- package/plugins/holyNotes/components/modals/ManageNotebookButton.d.ts +5 -0
- package/plugins/holyNotes/components/modals/NoteBookTab.d.ts +14 -0
- package/plugins/holyNotes/components/modals/Notebook.d.ts +4 -0
- package/plugins/holyNotes/components/modals/NotebookCreateModal.d.ts +5 -0
- package/plugins/holyNotes/components/modals/NotebookDeleteModal.d.ts +7 -0
- package/plugins/holyNotes/components/modals/RenderMessage.d.ts +8 -0
- package/plugins/holyNotes/index.d.ts +33 -0
- package/plugins/holyNotes/types.d.ts +40 -0
- package/plugins/holyNotes/utils.d.ts +13 -0
- package/plugins/homeTyping/index.d.ts +19 -0
- package/plugins/iLoveSpam/index.d.ts +16 -0
- package/plugins/iRememberYou/index.d.ts +14 -0
- package/plugins/identity.desktop/index.d.ts +18 -0
- package/plugins/identity.desktop/native.d.ts +2 -0
- package/plugins/ignoreActivities/index.d.ts +185 -0
- package/plugins/ignoreCalls/index.d.ts +48 -0
- package/plugins/ignoreTerms/index.d.ts +17 -0
- package/plugins/imageFilename/index.d.ts +31 -0
- package/plugins/imageLink/index.d.ts +16 -0
- package/plugins/imagePreview/index.d.ts +129 -0
- package/plugins/imagePreview/settings.d.ts +122 -0
- package/plugins/imageZoom/components/Magnifier.d.ts +6 -0
- package/plugins/imageZoom/constants.d.ts +1 -0
- package/plugins/imageZoom/index.d.ts +244 -0
- package/plugins/imageZoom/utils/waitFor.d.ts +1 -0
- package/plugins/imgToGif/index.d.ts +26 -0
- package/plugins/implicitRelationships/index.d.ts +43 -0
- package/plugins/inRole/RoleMembersModal.d.ts +2 -0
- package/plugins/inRole/index.d.ts +34 -0
- package/plugins/index.d.ts +27 -0
- package/plugins/instantScreenshare/index.d.ts +26 -0
- package/plugins/instantScreenshare/utils.d.ts +15 -0
- package/plugins/invisibleChat.desktop/components/DecryptionModal.d.ts +2 -0
- package/plugins/invisibleChat.desktop/components/EncryptionModal.d.ts +1 -0
- package/plugins/invisibleChat.desktop/index.d.ts +55 -0
- package/plugins/inviteDefaults/index.d.ts +82 -0
- package/plugins/ircColors/index.d.ts +90 -0
- package/plugins/jumpTo/index.d.ts +15 -0
- package/plugins/jumpToStart/index.d.ts +15 -0
- package/plugins/keepCurrentChannel/index.d.ts +31 -0
- package/plugins/keyboardSounds/index.d.ts +60 -0
- package/plugins/keyboardSounds/packs.d.ts +9 -0
- package/plugins/keywordNotify/index.d.ts +68 -0
- package/plugins/lastOnline/index.d.ts +22 -0
- package/plugins/limitMiddleClickPaste/index.d.ts +53 -0
- package/plugins/listenBrainzRPC/index.d.ts +186 -0
- package/plugins/loadingQuotes/index.d.ts +76 -0
- package/plugins/loginWithQR/images.d.ts +10 -0
- package/plugins/loginWithQR/index.d.ts +38 -0
- package/plugins/loginWithQR/jsqr.d.ts +13 -0
- package/plugins/loginWithQR/ui/index.d.ts +23 -0
- package/plugins/loginWithQR/ui/modals/QrModal.d.ts +1 -0
- package/plugins/loginWithQR/ui/modals/VerifyModal.d.ts +1 -0
- package/plugins/mediaDownloader.desktop/DependencyModal.d.ts +9 -0
- package/plugins/mediaDownloader.desktop/index.d.ts +146 -0
- package/plugins/mediaDownloader.desktop/native.d.ts +27 -0
- package/plugins/mediaPlaybackSpeed/components/SpeedIcon.d.ts +2 -0
- package/plugins/mediaPlaybackSpeed/index.d.ts +62 -0
- package/plugins/memberCount/CircleIcon.d.ts +3 -0
- package/plugins/memberCount/MemberCount.d.ts +4 -0
- package/plugins/memberCount/OnlineMemberCountStore.d.ts +20 -0
- package/plugins/memberCount/VoiceIcon.d.ts +3 -0
- package/plugins/memberCount/index.d.ts +124 -0
- package/plugins/mentionAvatars/index.d.ts +40 -0
- package/plugins/meow/index.d.ts +11 -0
- package/plugins/messageClickActions/index.d.ts +56 -0
- package/plugins/messageColors/constants.d.ts +91 -0
- package/plugins/messageColors/index.d.ts +114 -0
- package/plugins/messageFetchTimer/index.d.ts +47 -0
- package/plugins/messageLatency/index.d.ts +65 -0
- package/plugins/messageLinkEmbeds/index.d.ts +95 -0
- package/plugins/messageLinkTooltip/index.d.ts +99 -0
- package/plugins/messageLogger/HistoryModal.d.ts +6 -0
- package/plugins/messageLogger/diffUtils.d.ts +6 -0
- package/plugins/messageLogger/index.d.ts +223 -0
- package/plugins/messageLoggerEnhanced/LoggedMessageManager.d.ts +3 -0
- package/plugins/messageLoggerEnhanced/components/FolderSelectInput.d.ts +12 -0
- package/plugins/messageLoggerEnhanced/components/LogsModal.d.ts +40 -0
- package/plugins/messageLoggerEnhanced/components/hooks.d.ts +9 -0
- package/plugins/messageLoggerEnhanced/db.d.ts +43 -0
- package/plugins/messageLoggerEnhanced/index.d.ts +360 -0
- package/plugins/messageLoggerEnhanced/list.d.ts +1 -0
- package/plugins/messageLoggerEnhanced/native/index.d.ts +21 -0
- package/plugins/messageLoggerEnhanced/native/settings.d.ts +7 -0
- package/plugins/messageLoggerEnhanced/native/updater.d.ts +15 -0
- package/plugins/messageLoggerEnhanced/native/utils.d.ts +5 -0
- package/plugins/messageLoggerEnhanced/settings.d.ts +292 -0
- package/plugins/messageLoggerEnhanced/types.d.ts +132 -0
- package/plugins/messageLoggerEnhanced/utils/LimitedMap.d.ts +6 -0
- package/plugins/messageLoggerEnhanced/utils/cleanUp.d.ts +13 -0
- package/plugins/messageLoggerEnhanced/utils/constants.d.ts +4 -0
- package/plugins/messageLoggerEnhanced/utils/contextMenu.d.ts +4 -0
- package/plugins/messageLoggerEnhanced/utils/index.d.ts +27 -0
- package/plugins/messageLoggerEnhanced/utils/memoize.d.ts +6 -0
- package/plugins/messageLoggerEnhanced/utils/misc.d.ts +23 -0
- package/plugins/messageLoggerEnhanced/utils/parseQuery.d.ts +18 -0
- package/plugins/messageLoggerEnhanced/utils/saveImage/ImageManager.d.ts +4 -0
- package/plugins/messageLoggerEnhanced/utils/saveImage/index.d.ts +10 -0
- package/plugins/messageLoggerEnhanced/utils/settingsUtils.d.ts +2 -0
- package/plugins/messageTags/index.d.ts +58 -0
- package/plugins/moreCommands/index.d.ts +59 -0
- package/plugins/moreKaomoji/index.d.ts +17 -0
- package/plugins/morse/index.d.ts +24 -0
- package/plugins/moyai/index.d.ts +113 -0
- package/plugins/musicControls/index.d.ts +362 -0
- package/plugins/musicControls/settings.d.ts +336 -0
- package/plugins/musicControls/spotify/PlayerComponent.d.ts +2 -0
- package/plugins/musicControls/spotify/SeekBar.d.ts +31 -0
- package/plugins/musicControls/spotify/SpotifyStore.d.ts +65 -0
- package/plugins/musicControls/spotify/lyrics/api.d.ts +14 -0
- package/plugins/musicControls/spotify/lyrics/components/ctxMenu.d.ts +1 -0
- package/plugins/musicControls/spotify/lyrics/components/lyrics.d.ts +3 -0
- package/plugins/musicControls/spotify/lyrics/components/modal.d.ts +4 -0
- package/plugins/musicControls/spotify/lyrics/components/util.d.ts +12 -0
- package/plugins/musicControls/spotify/lyrics/providers/SpotifyAPI/index.d.ts +2 -0
- package/plugins/musicControls/spotify/lyrics/providers/lrclibAPI/index.d.ts +3 -0
- package/plugins/musicControls/spotify/lyrics/providers/store.d.ts +21 -0
- package/plugins/musicControls/spotify/lyrics/providers/translator/index.d.ts +8 -0
- package/plugins/musicControls/spotify/lyrics/providers/translator/languages.d.ts +10 -0
- package/plugins/musicControls/spotify/lyrics/providers/types.d.ts +15 -0
- package/plugins/musicControls/tidal/TidalPlayer.d.ts +2 -0
- package/plugins/musicControls/tidal/TidalStore.d.ts +75 -0
- package/plugins/musicControls/tidal/lyrics/api.d.ts +3 -0
- package/plugins/musicControls/tidal/lyrics/components/ctxMenu.d.ts +1 -0
- package/plugins/musicControls/tidal/lyrics/components/lyrics.d.ts +3 -0
- package/plugins/musicControls/tidal/lyrics/components/modal.d.ts +4 -0
- package/plugins/musicControls/tidal/lyrics/components/util.d.ts +13 -0
- package/plugins/musicControls/tidal/lyrics/providers/store.d.ts +20 -0
- package/plugins/musicControls/tidal/lyrics/types.d.ts +26 -0
- package/plugins/musicControls/youtubeMusic/PlayerComponent.d.ts +2 -0
- package/plugins/musicControls/youtubeMusic/YtmStore.d.ts +95 -0
- package/plugins/mutualGroupDMs/index.d.ts +34 -0
- package/plugins/newGuildSettings/index.d.ts +124 -0
- package/plugins/newPluginsManager/NewPluginsModal.d.ts +7 -0
- package/plugins/newPluginsManager/index.d.ts +15 -0
- package/plugins/newPluginsManager/knownPlugins.d.ts +4 -0
- package/plugins/noBlockedMessages/index.d.ts +123 -0
- package/plugins/noBulletPoints/index.d.ts +12 -0
- package/plugins/noDeepLinks.web/index.d.ts +18 -0
- package/plugins/noDeleteSafety/index.d.ts +31 -0
- package/plugins/noDevtoolsWarning/index.d.ts +16 -0
- package/plugins/noF1/index.d.ts +16 -0
- package/plugins/noMaskedUrlPaste/index.d.ts +16 -0
- package/plugins/noMirroredCamera/index.d.ts +22 -0
- package/plugins/noModalAnimation/index.d.ts +16 -0
- package/plugins/noMosaic/index.d.ts +41 -0
- package/plugins/noNitroUpsell/index.d.ts +18 -0
- package/plugins/noOnboarding/index.d.ts +17 -0
- package/plugins/noOnboardingDelay/index.d.ts +16 -0
- package/plugins/noPendingCount/index.d.ts +65 -0
- package/plugins/noProfileThemes/index.d.ts +17 -0
- package/plugins/noRPC.discordDesktop/index.d.ts +16 -0
- package/plugins/noReplyMention/index.d.ts +78 -0
- package/plugins/noServerEmojis/index.d.ts +39 -0
- package/plugins/noSystemBadge.discordDesktop/index.d.ts +16 -0
- package/plugins/noTypingAnimation/index.d.ts +16 -0
- package/plugins/noUnblockToJump/index.d.ts +16 -0
- package/plugins/normalizeMessageLinks/index.d.ts +17 -0
- package/plugins/notificationTitle/index.d.ts +17 -0
- package/plugins/notificationVolume/index.d.ts +34 -0
- package/plugins/onePingPerDM/index.d.ts +93 -0
- package/plugins/oneko/index.d.ts +11 -0
- package/plugins/openInApp/index.d.ts +30 -0
- package/plugins/openInApp/native.d.ts +2 -0
- package/plugins/overrideForumDefaults/index.d.ts +74 -0
- package/plugins/partyMode/index.d.ts +52 -0
- package/plugins/pauseInvitesForever/index.d.ts +19 -0
- package/plugins/permissionFreeWill/index.d.ts +52 -0
- package/plugins/permissionsViewer/components/RolesAndUsersPermissions.d.ts +14 -0
- package/plugins/permissionsViewer/components/UserPermissions.d.ts +7 -0
- package/plugins/permissionsViewer/components/icons.d.ts +3 -0
- package/plugins/permissionsViewer/index.d.ts +92 -0
- package/plugins/permissionsViewer/utils.d.ts +9 -0
- package/plugins/petpet/index.d.ts +38 -0
- package/plugins/pictureInPicture/index.d.ts +34 -0
- package/plugins/pinDms/components/CreateCategoryModal.d.ts +10 -0
- package/plugins/pinDms/components/contextMenu.d.ts +5 -0
- package/plugins/pinDms/constants.d.ts +3 -0
- package/plugins/pinDms/data.d.ts +27 -0
- package/plugins/pinDms/index.d.ts +209 -0
- package/plugins/pinIcon/index.d.ts +18 -0
- package/plugins/pingNotifications/index.d.ts +66 -0
- package/plugins/plainFolderIcon/index.d.ts +17 -0
- package/plugins/platformIndicators/index.d.ts +50 -0
- package/plugins/platformSpoofer/index.d.ts +53 -0
- package/plugins/plexcordToolbox/index.d.ts +19 -0
- package/plugins/previewMessage/index.d.ts +13 -0
- package/plugins/purgeMessages/index.d.ts +33 -0
- package/plugins/questCompleter/index.d.ts +19 -0
- package/plugins/questFocused/index.d.ts +17 -0
- package/plugins/questify/index.d.ts +690 -0
- package/plugins/questify/settings.d.ts +623 -0
- package/plugins/questify/utils/components.d.ts +168 -0
- package/plugins/questify/utils/misc.d.ts +29 -0
- package/plugins/questionMarkReplacement/index.d.ts +25 -0
- package/plugins/quickMention/index.d.ts +17 -0
- package/plugins/quickReply/index.d.ts +69 -0
- package/plugins/quoter/components.d.ts +1 -0
- package/plugins/quoter/index.d.ts +47 -0
- package/plugins/quoter/utils.d.ts +4 -0
- package/plugins/randomVoice/index.d.ts +272 -0
- package/plugins/reactErrorDecoder/index.d.ts +19 -0
- package/plugins/readAllNotificationsButton/index.d.ts +14 -0
- package/plugins/relationshipNotifier/functions.d.ts +7 -0
- package/plugins/relationshipNotifier/index.d.ts +96 -0
- package/plugins/relationshipNotifier/settings.d.ts +65 -0
- package/plugins/relationshipNotifier/types.d.ts +36 -0
- package/plugins/relationshipNotifier/utils.d.ts +17 -0
- package/plugins/remix/RemixModal.d.ts +8 -0
- package/plugins/remix/editor/Editor.d.ts +3 -0
- package/plugins/remix/editor/components/Canvas.d.ts +11 -0
- package/plugins/remix/editor/components/SettingColorComponent.d.ts +8 -0
- package/plugins/remix/editor/components/Toolbar.d.ts +12 -0
- package/plugins/remix/editor/input.d.ts +12 -0
- package/plugins/remix/editor/tools/brush.d.ts +2 -0
- package/plugins/remix/editor/tools/crop.d.ts +9 -0
- package/plugins/remix/editor/tools/eraser.d.ts +2 -0
- package/plugins/remix/editor/tools/shape.d.ts +7 -0
- package/plugins/remix/editor/utils/canvas.d.ts +18 -0
- package/plugins/remix/editor/utils/eventEmitter.d.ts +11 -0
- package/plugins/remix/icons/SendIcon.d.ts +1 -0
- package/plugins/remix/index.d.ts +17 -0
- package/plugins/remixMe/index.d.ts +11 -0
- package/plugins/repeatMessage/index.d.ts +15 -0
- package/plugins/replaceGoogleSearch/index.d.ts +37 -0
- package/plugins/replyPingControl/index.d.ts +70 -0
- package/plugins/replyTimestamp/index.d.ts +33 -0
- package/plugins/revealAllSpoilers/index.d.ts +17 -0
- package/plugins/reverseImageSearch/index.d.ts +22 -0
- package/plugins/reviewDB/auth.d.ts +7 -0
- package/plugins/reviewDB/components/BlockedUserModal.d.ts +1 -0
- package/plugins/reviewDB/components/MessageButton.d.ts +13 -0
- package/plugins/reviewDB/components/ReviewBadge.d.ts +4 -0
- package/plugins/reviewDB/components/ReviewComponent.d.ts +7 -0
- package/plugins/reviewDB/components/ReviewModal.d.ts +2 -0
- package/plugins/reviewDB/components/ReviewsView.d.ts +25 -0
- package/plugins/reviewDB/entities.d.ts +73 -0
- package/plugins/reviewDB/index.d.ts +96 -0
- package/plugins/reviewDB/reviewDbApi.d.ts +18 -0
- package/plugins/reviewDB/settings.d.ts +63 -0
- package/plugins/reviewDB/utils.d.ts +6 -0
- package/plugins/roleColorEverywhere/index.d.ts +152 -0
- package/plugins/searchFix/index.d.ts +18 -0
- package/plugins/secretRingTone/index.d.ts +37 -0
- package/plugins/seeSummaries/index.d.ts +39 -0
- package/plugins/selfForward/index.d.ts +16 -0
- package/plugins/sendTimestamps/index.d.ts +28 -0
- package/plugins/serverInfo/GuildInfoModal.d.ts +3 -0
- package/plugins/serverInfo/index.d.ts +75 -0
- package/plugins/serverListIndicators/index.d.ts +106 -0
- package/plugins/serverSearch/index.d.ts +13 -0
- package/plugins/shikiCodeblocks.desktop/api/languages.d.ts +28 -0
- package/plugins/shikiCodeblocks.desktop/api/shiki.d.ts +77 -0
- package/plugins/shikiCodeblocks.desktop/api/themes.d.ts +63 -0
- package/plugins/shikiCodeblocks.desktop/components/ButtonRow.d.ts +5 -0
- package/plugins/shikiCodeblocks.desktop/components/Code.d.ts +11 -0
- package/plugins/shikiCodeblocks.desktop/components/CopyButton.d.ts +4 -0
- package/plugins/shikiCodeblocks.desktop/components/Header.d.ts +8 -0
- package/plugins/shikiCodeblocks.desktop/components/Highlighter.d.ts +13 -0
- package/plugins/shikiCodeblocks.desktop/hooks/useCopyCooldown.d.ts +1 -0
- package/plugins/shikiCodeblocks.desktop/hooks/useShikiSettings.d.ts +10 -0
- package/plugins/shikiCodeblocks.desktop/hooks/useTheme.d.ts +8 -0
- package/plugins/shikiCodeblocks.desktop/index.d.ts +272 -0
- package/plugins/shikiCodeblocks.desktop/previewExample.d.ts +5 -0
- package/plugins/shikiCodeblocks.desktop/settings.d.ts +173 -0
- package/plugins/shikiCodeblocks.desktop/types.d.ts +42 -0
- package/plugins/shikiCodeblocks.desktop/utils/color.d.ts +1 -0
- package/plugins/shikiCodeblocks.desktop/utils/createStyle.d.ts +3 -0
- package/plugins/shikiCodeblocks.desktop/utils/misc.d.ts +7 -0
- package/plugins/showAllMessageButtons/index.d.ts +40 -0
- package/plugins/showBadgesInChat/index.d.ts +123 -0
- package/plugins/showBadgesInChat/settings.d.ts +111 -0
- package/plugins/showConnections/VerifiedIcon.d.ts +1 -0
- package/plugins/showConnections/index.d.ts +59 -0
- package/plugins/showHiddenChannels/components/HiddenChannelLockScreen.d.ts +32 -0
- package/plugins/showHiddenChannels/index.d.ts +196 -0
- package/plugins/showHiddenThings/index.d.ts +69 -0
- package/plugins/showMeYourName/index.d.ts +310 -0
- package/plugins/showMessageEmbeds/index.d.ts +20 -0
- package/plugins/showTimeoutDuration/index.d.ts +58 -0
- package/plugins/sidebarChat/index.d.ts +38 -0
- package/plugins/sidebarChat/store.d.ts +46 -0
- package/plugins/signature/index.d.ts +103 -0
- package/plugins/silentMessageToggle/index.d.ts +55 -0
- package/plugins/silentTyping/index.d.ts +222 -0
- package/plugins/sortFriendRequests/index.d.ts +55 -0
- package/plugins/soundBoardLogger/components/Icons.d.ts +14 -0
- package/plugins/soundBoardLogger/components/MoreUsersModal.d.ts +8 -0
- package/plugins/soundBoardLogger/components/SoundBoardLog.d.ts +5 -0
- package/plugins/soundBoardLogger/components/UserModal.d.ts +8 -0
- package/plugins/soundBoardLogger/index.d.ts +110 -0
- package/plugins/soundBoardLogger/settings.d.ts +91 -0
- package/plugins/soundBoardLogger/store.d.ts +7 -0
- package/plugins/soundBoardLogger/utils.d.ts +31 -0
- package/plugins/splitLargeMessages/index.d.ts +91 -0
- package/plugins/spotifyActivityToggle/index.d.ts +17 -0
- package/plugins/spotifyCrack/index.d.ts +51 -0
- package/plugins/spotifyShareCommands/index.d.ts +11 -0
- package/plugins/startupTimings/StartupTimingPage.d.ts +2 -0
- package/plugins/startupTimings/index.d.ts +17 -0
- package/plugins/statusPresets/index.d.ts +55 -0
- package/plugins/statusWhileActive.desktop/index.d.ts +46 -0
- package/plugins/statusWhilePlaying.desktop/index.d.ts +42 -0
- package/plugins/steamStatusSync/index.d.ts +264 -0
- package/plugins/stickerBlocker/index.d.ts +74 -0
- package/plugins/stickerPaste/index.d.ts +16 -0
- package/plugins/streamerModeOnStream/index.d.ts +13 -0
- package/plugins/streamingCodecDisabler/index.d.ts +34 -0
- package/plugins/superReactionTweaks/index.d.ts +112 -0
- package/plugins/textReplace/index.d.ts +54 -0
- package/plugins/themeAttributes/index.d.ts +27 -0
- package/plugins/timelessClips/index.d.ts +35 -0
- package/plugins/timezones/TimezoneModal.d.ts +7 -0
- package/plugins/timezones/database.d.ts +6 -0
- package/plugins/timezones/index.d.ts +270 -0
- package/plugins/toastNotifications/components/NotificationComponent.d.ts +6 -0
- package/plugins/toastNotifications/components/Notifications.d.ts +14 -0
- package/plugins/toastNotifications/index.d.ts +409 -0
- package/plugins/toastNotifications/types.d.ts +11 -0
- package/plugins/toggleVideoBind/index.d.ts +57 -0
- package/plugins/toneIndicators/ToneIndicator.d.ts +6 -0
- package/plugins/toneIndicators/index.d.ts +41 -0
- package/plugins/toneIndicators/indicators.d.ts +2 -0
- package/plugins/translate/TranslateIcon.d.ts +8 -0
- package/plugins/translate/TranslateModal.d.ts +4 -0
- package/plugins/translate/TranslationAccessory.d.ts +6 -0
- package/plugins/translate/index.d.ts +159 -0
- package/plugins/translate/languages.d.ts +175 -0
- package/plugins/translate/native.d.ts +5 -0
- package/plugins/translate/settings.d.ts +133 -0
- package/plugins/translate/utils.d.ts +177 -0
- package/plugins/typingIndicator/index.d.ts +92 -0
- package/plugins/typingTweaks/index.d.ts +74 -0
- package/plugins/unindent/index.d.ts +21 -0
- package/plugins/unitConverter/ConverterAccessory.d.ts +10 -0
- package/plugins/unitConverter/converter.d.ts +1 -0
- package/plugins/unitConverter/index.d.ts +70 -0
- package/plugins/unlimitedAccounts/index.d.ts +33 -0
- package/plugins/unlockedAvatarZoom/index.d.ts +32 -0
- package/plugins/unsuppressEmbeds/index.d.ts +13 -0
- package/plugins/userMessagesPronouns/PronounsChatComponent.d.ts +7 -0
- package/plugins/userMessagesPronouns/index.d.ts +67 -0
- package/plugins/userMessagesPronouns/settings.d.ts +44 -0
- package/plugins/userMessagesPronouns/utils.d.ts +1 -0
- package/plugins/userVoiceShow/components.d.ts +8 -0
- package/plugins/userVoiceShow/index.d.ts +62 -0
- package/plugins/usrbg/index.d.ts +84 -0
- package/plugins/validReply/index.d.ts +34 -0
- package/plugins/validUser/index.d.ts +18 -0
- package/plugins/vcDoubleClick/index.d.ts +35 -0
- package/plugins/vcNarrator/VoiceSetting.d.ts +1 -0
- package/plugins/vcNarrator/index.d.ts +160 -0
- package/plugins/vcNarrator/settings.d.ts +135 -0
- package/plugins/videoSpeed/index.d.ts +33 -0
- package/plugins/viewIcons/index.d.ts +82 -0
- package/plugins/viewRaw/index.d.ts +69 -0
- package/plugins/voiceButtons/index.d.ts +121 -0
- package/plugins/voiceButtons/settings.d.ts +104 -0
- package/plugins/voiceButtons/utils.d.ts +12 -0
- package/plugins/voiceChannelLog.dev/components/VoiceChannelLogEntryComponent.d.ts +7 -0
- package/plugins/voiceChannelLog.dev/components/VoiceChannelLogEntryIcons.d.ts +7 -0
- package/plugins/voiceChannelLog.dev/components/VoiceChannelLogModal.d.ts +7 -0
- package/plugins/voiceChannelLog.dev/index.d.ts +97 -0
- package/plugins/voiceChannelLog.dev/logs.d.ts +12 -0
- package/plugins/voiceChatUtils/index.d.ts +41 -0
- package/plugins/voiceDownload/index.d.ts +19 -0
- package/plugins/voiceMessages/DesktopRecorder.d.ts +2 -0
- package/plugins/voiceMessages/VoicePreview.d.ts +6 -0
- package/plugins/voiceMessages/WebRecorder.d.ts +2 -0
- package/plugins/voiceMessages/index.d.ts +42 -0
- package/plugins/voiceMessages/native.d.ts +1 -0
- package/plugins/voiceMessages/settings.d.ts +24 -0
- package/plugins/voiceMessages/utils.d.ts +1 -0
- package/plugins/volumeBooster/index.d.ts +74 -0
- package/plugins/wallpaperFree/components/ctxmenu.d.ts +5 -0
- package/plugins/wallpaperFree/components/modal.d.ts +8 -0
- package/plugins/wallpaperFree/components/util.d.ts +2 -0
- package/plugins/wallpaperFree/index.d.ts +78 -0
- package/plugins/wallpaperFree/store.d.ts +31 -0
- package/plugins/webContextMenus.web/index.d.ts +91 -0
- package/plugins/webKeybinds.web/index.d.ts +13 -0
- package/plugins/webScreenShareFixes.web/index.d.ts +20 -0
- package/plugins/whoReacted/index.d.ts +54 -0
- package/plugins/whosWatching/index.d.ts +36 -0
- package/plugins/writeUpperCase/index.d.ts +25 -0
- package/plugins/xsOverlay/index.d.ts +226 -0
- package/plugins/xsOverlay/native.d.ts +1 -0
- package/plugins/youtubeAdblock.desktop/index.d.ts +9 -0
- package/plugins/youtubeAdblock.desktop/native.d.ts +1 -0
- package/plugins/youtubeDescription/index.d.ts +23 -0
- package/shared/IpcEvents.d.ts +31 -0
- package/shared/SettingsStore.d.ts +82 -0
- package/shared/debounce.d.ts +8 -0
- package/shared/onceDefined.d.ts +11 -0
- package/shared/plexcordUserAgent.d.ts +4 -0
- package/utils/ChangeList.d.ts +10 -0
- package/utils/Logger.d.ts +21 -0
- package/utils/Queue.d.ts +33 -0
- package/utils/clipboard.d.ts +1 -0
- package/utils/cloud.d.ts +8 -0
- package/utils/constants.d.ts +857 -0
- package/utils/cspViolations.d.ts +2 -0
- package/utils/dependencies.d.ts +40 -0
- package/utils/discord.d.ts +89 -0
- package/utils/guards.d.ts +2 -0
- package/utils/i18n.d.ts +5 -0
- package/utils/index.d.ts +40 -0
- package/utils/intlHash.d.ts +15 -0
- package/utils/langs/en.d.ts +287 -0
- package/utils/langs/index.d.ts +576 -0
- package/utils/langs/tr.d.ts +287 -0
- package/utils/lazy.d.ts +14 -0
- package/utils/lazyReact.d.ts +11 -0
- package/utils/localStorage.d.ts +1 -0
- package/utils/margins.d.ts +1 -0
- package/utils/mergeDefaults.d.ts +7 -0
- package/utils/misc.d.ts +36 -0
- package/utils/modal.d.ts +172 -0
- package/utils/native.d.ts +2 -0
- package/utils/onlyOnce.d.ts +1 -0
- package/utils/patches.d.ts +6 -0
- package/utils/quickCss.d.ts +1 -0
- package/utils/react.d.ts +44 -0
- package/utils/settingsSync.d.ts +22 -0
- package/utils/text.d.ts +39 -0
- package/utils/types.d.ts +328 -0
- package/utils/updater.d.ts +11 -0
- package/utils/web-metadata.d.ts +2 -0
- package/utils/web.d.ts +12 -0
- package/webpack/common/FormText.d.ts +2 -0
- package/webpack/common/classes.d.ts +2 -0
- package/webpack/common/components.d.ts +164 -0
- package/webpack/common/index.d.ts +7 -0
- package/webpack/common/internal.d.ts +4 -0
- package/webpack/common/menu.d.ts +3 -0
- package/webpack/common/react.d.ts +10 -0
- package/webpack/common/stores.d.ts +35 -0
- package/webpack/common/userSettings.d.ts +4 -0
- package/webpack/common/utils.d.ts +85 -0
- package/webpack/index.d.ts +3 -0
- package/webpack/patchWebpack.d.ts +12 -0
- package/webpack/types.d.ts +17 -0
- package/webpack/webpack.d.ts +187 -0
package/Plexcord.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Plexcord, a modification for Discord's desktop app
|
|
3
|
+
* Copyright (c) 2022 Vendicated and contributors
|
|
4
|
+
* Copyright (c) 2025 MutanPlex
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU General Public License as published by
|
|
8
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
* (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* This program is distributed in the hope that it will be useful,
|
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
* GNU General Public License for more details.
|
|
15
|
+
*
|
|
16
|
+
* You should have received a copy of the GNU General Public License
|
|
17
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
18
|
+
*/
|
|
19
|
+
import "~plugins";
|
|
20
|
+
export * as Api from "./api";
|
|
21
|
+
export * as Components from "./components";
|
|
22
|
+
export * as Plugins from "./plugins";
|
|
23
|
+
export * as Util from "./utils";
|
|
24
|
+
export * as QuickCss from "./utils/quickCss";
|
|
25
|
+
export * as Updater from "./utils/updater";
|
|
26
|
+
export * as Webpack from "./webpack";
|
|
27
|
+
export * as WebpackPatcher from "./webpack/patchWebpack";
|
|
28
|
+
export { PlainSettings, Settings };
|
|
29
|
+
import "./utils/quickCss";
|
|
30
|
+
import "./webpack/patchWebpack";
|
|
31
|
+
import { PlainSettings, Settings } from "./api/Settings";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Settings } from "./api/Settings";
|
|
2
|
+
import { CspRequestResult } from "./main/csp/manager";
|
|
3
|
+
import type { UserThemeHeader } from "./main/themes";
|
|
4
|
+
import { IpcEvents } from "./shared/IpcEvents";
|
|
5
|
+
import { IpcRes } from "./utils/types";
|
|
6
|
+
export declare function sendSync<T = any>(event: IpcEvents, ...args: any[]): T;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
themes: {
|
|
9
|
+
uploadTheme: (fileName: string, fileData: string) => Promise<void>;
|
|
10
|
+
deleteTheme: (fileName: string) => Promise<void>;
|
|
11
|
+
getThemesDir: () => Promise<string>;
|
|
12
|
+
getThemesList: () => Promise<UserThemeHeader[]>;
|
|
13
|
+
getThemeData: (fileName: string) => Promise<string | undefined>;
|
|
14
|
+
getSystemValues: () => Promise<Record<string, string>>;
|
|
15
|
+
openFolder: () => Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
updater: {
|
|
18
|
+
getUpdates: () => Promise<IpcRes<Record<"message" | "hash" | "author", string>[]>>;
|
|
19
|
+
update: () => Promise<IpcRes<boolean>>;
|
|
20
|
+
rebuild: () => Promise<IpcRes<boolean>>;
|
|
21
|
+
getRepo: () => Promise<IpcRes<string>>;
|
|
22
|
+
};
|
|
23
|
+
settings: {
|
|
24
|
+
get: () => Settings;
|
|
25
|
+
set: (settings: Settings, pathToNotify?: string) => Promise<void>;
|
|
26
|
+
getSettingsDir: () => Promise<string>;
|
|
27
|
+
openFolder: () => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
quickCss: {
|
|
30
|
+
get: () => Promise<string>;
|
|
31
|
+
set: (css: string) => Promise<void>;
|
|
32
|
+
addChangeListener(cb: (newCss: string) => void): void;
|
|
33
|
+
addThemeChangeListener(cb: () => void): void;
|
|
34
|
+
openFile: () => Promise<void>;
|
|
35
|
+
openEditor: () => Promise<void>;
|
|
36
|
+
};
|
|
37
|
+
native: {
|
|
38
|
+
getVersions: () => Partial<NodeJS.ProcessVersions>;
|
|
39
|
+
openExternal: (url: string) => Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
i18n: {
|
|
42
|
+
updateMainLocale: (locale?: string) => Promise<boolean>;
|
|
43
|
+
};
|
|
44
|
+
csp: {
|
|
45
|
+
/**
|
|
46
|
+
* Note: Only supports full explicit matches, not wildcards.
|
|
47
|
+
*
|
|
48
|
+
* If `*.example.com` is allowed, `isDomainAllowed("https://sub.example.com")` will return false.
|
|
49
|
+
*/
|
|
50
|
+
isDomainAllowed: (url: string, directives: string[]) => Promise<boolean>;
|
|
51
|
+
removeOverride: (url: string) => Promise<boolean>;
|
|
52
|
+
requestAddOverride: (url: string, directives: string[], callerName: string) => Promise<CspRequestResult>;
|
|
53
|
+
};
|
|
54
|
+
pluginHelpers: Record<string, Record<string, (...args: any[]) => Promise<any>>>;
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
package/README.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
export type AudioProcessor = (data: PreprocessAudioData) => void;
|
|
2
|
+
export type AudioCallback = (() => void);
|
|
3
|
+
export type AudioErrorHandler = ((error: Error) => void);
|
|
4
|
+
export declare const audioProcessorFunctions: Record<string, AudioProcessor>;
|
|
5
|
+
export declare enum AudioType {
|
|
6
|
+
/** An external URL that follows the Content Security Policy. */
|
|
7
|
+
URL = "url",
|
|
8
|
+
/** A base64-encoded data URI. */
|
|
9
|
+
DATA = "data-uri",
|
|
10
|
+
/** A Blob URI. */
|
|
11
|
+
BLOB = "blob",
|
|
12
|
+
/** A file path. */
|
|
13
|
+
PATH = "file-path",
|
|
14
|
+
/** An internal Discord audio filename (e.g. "discodo"). */
|
|
15
|
+
DISCORD = "discord",
|
|
16
|
+
/** Any other unrecognized audio type. */
|
|
17
|
+
OTHER = "other"
|
|
18
|
+
}
|
|
19
|
+
export interface PreprocessAudioData {
|
|
20
|
+
/** The original audio string passed to the player. */
|
|
21
|
+
audio: string;
|
|
22
|
+
/** The read-only type of audio of the original audio string. */
|
|
23
|
+
readonly type: AudioType;
|
|
24
|
+
/** The volume of the original audio between 0 and 100. */
|
|
25
|
+
volume: number;
|
|
26
|
+
/** The playback speed of the original audio between 0.0625 and 16. */
|
|
27
|
+
speed: number;
|
|
28
|
+
}
|
|
29
|
+
export interface AudioPlayerInternal {
|
|
30
|
+
preprocessDataOriginal: PreprocessAudioData;
|
|
31
|
+
preprocessDataPrevious: PreprocessAudioData | null;
|
|
32
|
+
preprocessDataCurrent: PreprocessAudioData;
|
|
33
|
+
audio: string;
|
|
34
|
+
_audio: null | Promise<HTMLAudioElement>;
|
|
35
|
+
_volume: number;
|
|
36
|
+
_speed: number;
|
|
37
|
+
outputChannel: string;
|
|
38
|
+
type: AudioType;
|
|
39
|
+
preload: boolean;
|
|
40
|
+
persistent: boolean;
|
|
41
|
+
onEnded?: AudioCallback;
|
|
42
|
+
onError?: AudioErrorHandler;
|
|
43
|
+
processAudio: () => void;
|
|
44
|
+
ensureAudio(): Promise<HTMLAudioElement>;
|
|
45
|
+
destroyAudio(): void;
|
|
46
|
+
loop(): void;
|
|
47
|
+
play(): void;
|
|
48
|
+
pause(): void;
|
|
49
|
+
stop(restart?: boolean): void;
|
|
50
|
+
}
|
|
51
|
+
export interface AudioPlayerInterface {
|
|
52
|
+
/** The internal Discord audio filename (e.g. "discodo"), a data URI, or an external URL that follows the CSP. */
|
|
53
|
+
audio: string;
|
|
54
|
+
/** The read-only type of audio determined during processing. */
|
|
55
|
+
readonly type: AudioType;
|
|
56
|
+
/** The duration of the audio in seconds, or null if not yet loaded. */
|
|
57
|
+
readonly duration: Promise<number> | null;
|
|
58
|
+
/** The current time of the audio in seconds, or null if not yet loaded. */
|
|
59
|
+
time: Promise<number> | null;
|
|
60
|
+
/** The paused state of the audio, or null if not yet loaded. */
|
|
61
|
+
paused: Promise<boolean> | null;
|
|
62
|
+
/** The muted state of the audio, or null if not yet loaded. */
|
|
63
|
+
muted: Promise<boolean> | null;
|
|
64
|
+
/** The volume of the audio between 0 and 100. */
|
|
65
|
+
volume: number;
|
|
66
|
+
/** The playback speed of the audio between 0.0625 and 16. */
|
|
67
|
+
speed: number;
|
|
68
|
+
/** Whether to load the audio immediately. If persistent is false, this will only apply until the first playback. */
|
|
69
|
+
preload: boolean;
|
|
70
|
+
/** Whether the audio element is persistent and not recreated for every playback. */
|
|
71
|
+
persistent: boolean;
|
|
72
|
+
/** Preloads the audio before playback. Automatically called when persistent is true. */
|
|
73
|
+
load(): void;
|
|
74
|
+
/** Sets the audio to loop until paused or stopped. */
|
|
75
|
+
loop(): void;
|
|
76
|
+
/** Plays the audio. */
|
|
77
|
+
play(): void;
|
|
78
|
+
/** Pauses the audio. */
|
|
79
|
+
pause(): void;
|
|
80
|
+
/** Stops the audio. */
|
|
81
|
+
stop(): void;
|
|
82
|
+
/** Plays the audio from the beginning. */
|
|
83
|
+
restart(): void;
|
|
84
|
+
/** Seeks to a specific time in seconds. */
|
|
85
|
+
seek(time: number): void;
|
|
86
|
+
/** Mutes the audio. */
|
|
87
|
+
mute(): void;
|
|
88
|
+
/** Unmutes the audio. */
|
|
89
|
+
unmute(): void;
|
|
90
|
+
/** Deletes the audio element. Necessary if persistent is true. */
|
|
91
|
+
delete(): void;
|
|
92
|
+
}
|
|
93
|
+
export interface AudioPlayerOptions {
|
|
94
|
+
/** The volume of the audio, between 0 and 100, defaulting to 100. */
|
|
95
|
+
volume?: number;
|
|
96
|
+
/** The playback speed of the audio, between 0.0625 and 16, defaulting to 1. */
|
|
97
|
+
speed?: number;
|
|
98
|
+
/** Whether to preload the audio as soon as the player is created. */
|
|
99
|
+
preload?: boolean;
|
|
100
|
+
/** Whether the audio element is persistent and not recreated for every playback. If persistent, you must call delete() to free the memory. Defaults to false. */
|
|
101
|
+
persistent?: boolean;
|
|
102
|
+
/** An optional callback that is called every time the audio finishes playing. */
|
|
103
|
+
onEnded?: AudioCallback;
|
|
104
|
+
/** An optional error handler that is called when an error occurs during audio playback. */
|
|
105
|
+
onError?: AudioErrorHandler;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Creates an audio player.
|
|
109
|
+
* @param audio The internal Discord audio filename (e.g. "discodo"), a data URI, or an external URL that follows the CSP.
|
|
110
|
+
* @param options Additional options for the audio player.
|
|
111
|
+
* @param options.volume The volume of the audio, between 0 and 100, defaulting to 100.
|
|
112
|
+
* @param options.speed The playback speed of the audio, between 0.0625 and 16, defaulting to 1.
|
|
113
|
+
* @param options.preload Whether to load the audio immediately. If persistent is false, this will only apply until the first playback.
|
|
114
|
+
* @param options.persistent Whether the audio element is persistent and not recreated for every playback. If persistent, you must call delete() to free the memory. Defaults to false.
|
|
115
|
+
* @param options.onEnded An optional callback that is called every time the audio finishes playing.
|
|
116
|
+
* @param options.onError An optional error handler that is passed an Error object when an error occurs during audio playback.
|
|
117
|
+
* @return The created audio player.
|
|
118
|
+
*/
|
|
119
|
+
export declare function createAudioPlayer(audio: string, options?: AudioPlayerOptions): AudioPlayerInterface;
|
|
120
|
+
/**
|
|
121
|
+
* Plays an audio instantly and returns the player.
|
|
122
|
+
* @param audio The internal Discord audio filename (e.g. "discodo"), a data URI, or an external URL that follows the CSP.
|
|
123
|
+
* @param options Additional options for the audio player.
|
|
124
|
+
* @param options.volume The volume of the audio, between 0 and 100, defaulting to 100.
|
|
125
|
+
* @param options.speed The playback speed of the audio, between 0.0625 and 16, defaulting to 1.
|
|
126
|
+
* @param options.preload Whether to load the audio immediately. If persistent is false, this will only apply until the first playback.
|
|
127
|
+
* @param options.persistent Whether the audio element is persistent and not recreated for every playback. If persistent, you must call delete() to free the memory. Defaults to false.
|
|
128
|
+
* @param options.onEnded An optional callback that is called every time the audio finishes playing.
|
|
129
|
+
* @param options.onError An optional error handler that is passed an Error object when an error occurs during audio playback.
|
|
130
|
+
* @return The created audio player.
|
|
131
|
+
*/
|
|
132
|
+
export declare function playAudio(audio: string, options?: AudioPlayerOptions): AudioPlayerInterface;
|
|
133
|
+
/**
|
|
134
|
+
* Identifies the type of audio based on its string.
|
|
135
|
+
* @param audio The audio string to identify.
|
|
136
|
+
* @returns The identified AudioType.
|
|
137
|
+
*/
|
|
138
|
+
export declare function identifyAudioType(audio: string): AudioType;
|
|
139
|
+
/**
|
|
140
|
+
* Adds a function to process an audio before it is played.
|
|
141
|
+
* @param key A unique identifier for this audio processor. Plugin name is recommended.
|
|
142
|
+
* @param processor A function that takes an audio, volume (0-100), and type (AudioType), and returns the replacement audio and volume.
|
|
143
|
+
*/
|
|
144
|
+
export declare function addAudioProcessor(key: string, processor: AudioProcessor): void;
|
|
145
|
+
/**
|
|
146
|
+
* Removes an audio processor by its key.
|
|
147
|
+
* @param key The unique identifier of the audio processor to remove.
|
|
148
|
+
*/
|
|
149
|
+
export declare function removeAudioProcessor(key: string): void;
|
|
150
|
+
/** Returns an array of all internal Discord audio filenames. */
|
|
151
|
+
export declare function defaultAudioNames(): string[];
|
package/api/Badges.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ComponentType, HTMLProps } from "react";
|
|
2
|
+
export declare const enum BadgePosition {
|
|
3
|
+
START = 0,
|
|
4
|
+
END = 1
|
|
5
|
+
}
|
|
6
|
+
export interface ProfileBadge {
|
|
7
|
+
/** The tooltip to show on hover. Required for image badges */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Custom component for the badge (tooltip not included) */
|
|
10
|
+
component?: ComponentType<ProfileBadge & BadgeUserArgs>;
|
|
11
|
+
/** The custom image to use */
|
|
12
|
+
image?: string;
|
|
13
|
+
link?: string;
|
|
14
|
+
/** Action to perform when you click the badge */
|
|
15
|
+
onClick?(event: React.MouseEvent, props: ProfileBadge & BadgeUserArgs): void;
|
|
16
|
+
/** Action to perform when you right click the badge */
|
|
17
|
+
onContextMenu?(event: React.MouseEvent, props: BadgeUserArgs & BadgeUserArgs): void;
|
|
18
|
+
/** Should the user display this badge? */
|
|
19
|
+
shouldShow?(userInfo: BadgeUserArgs): boolean;
|
|
20
|
+
/** Optional props (e.g. style) for the badge, ignored for component badges */
|
|
21
|
+
props?: HTMLProps<HTMLImageElement>;
|
|
22
|
+
/** Insert at start or end? */
|
|
23
|
+
position?: BadgePosition;
|
|
24
|
+
/** The badge name to display, Discord uses this. Required for component badges */
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Allows dynamically returning multiple badges
|
|
28
|
+
*/
|
|
29
|
+
getBadges?(userInfo: BadgeUserArgs): ProfileBadge[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Register a new badge with the Badges API
|
|
33
|
+
* @param badge The badge to register
|
|
34
|
+
*/
|
|
35
|
+
export declare function addProfileBadge(badge: ProfileBadge): void;
|
|
36
|
+
/**
|
|
37
|
+
* Unregister a badge from the Badges API
|
|
38
|
+
* @param badge The badge to remove
|
|
39
|
+
*/
|
|
40
|
+
export declare function removeProfileBadge(badge: ProfileBadge): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Inject badges into the profile badges array.
|
|
43
|
+
* You probably don't need to use this.
|
|
44
|
+
*/
|
|
45
|
+
export declare function _getBadges(args: BadgeUserArgs): ProfileBadge[];
|
|
46
|
+
export interface BadgeUserArgs {
|
|
47
|
+
userId: string;
|
|
48
|
+
guildId: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import "./ChatButton.css";
|
|
2
|
+
import { Channel } from "@plexcord/discord-types";
|
|
3
|
+
import { HTMLProps, JSX, MouseEventHandler, ReactNode } from "react";
|
|
4
|
+
export interface ChatBarProps {
|
|
5
|
+
channel: Channel;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
isEmpty: boolean;
|
|
8
|
+
type: {
|
|
9
|
+
analyticsName: string;
|
|
10
|
+
attachments: boolean;
|
|
11
|
+
autocomplete: {
|
|
12
|
+
addReactionShortcut: boolean;
|
|
13
|
+
forceChatLayer: boolean;
|
|
14
|
+
reactions: boolean;
|
|
15
|
+
};
|
|
16
|
+
commands: {
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
};
|
|
19
|
+
drafts: {
|
|
20
|
+
type: number;
|
|
21
|
+
commandType: number;
|
|
22
|
+
autoSave: boolean;
|
|
23
|
+
};
|
|
24
|
+
emojis: {
|
|
25
|
+
button: boolean;
|
|
26
|
+
};
|
|
27
|
+
gifs: {
|
|
28
|
+
button: boolean;
|
|
29
|
+
allowSending: boolean;
|
|
30
|
+
};
|
|
31
|
+
gifts: {
|
|
32
|
+
button: boolean;
|
|
33
|
+
};
|
|
34
|
+
permissions: {
|
|
35
|
+
requireSendMessages: boolean;
|
|
36
|
+
};
|
|
37
|
+
showThreadPromptOnReply: boolean;
|
|
38
|
+
stickers: {
|
|
39
|
+
button: boolean;
|
|
40
|
+
allowSending: boolean;
|
|
41
|
+
autoSuggest: boolean;
|
|
42
|
+
};
|
|
43
|
+
users: {
|
|
44
|
+
allowMentioning: boolean;
|
|
45
|
+
};
|
|
46
|
+
submit: {
|
|
47
|
+
button: boolean;
|
|
48
|
+
ignorePreference: boolean;
|
|
49
|
+
disableEnterToSubmit: boolean;
|
|
50
|
+
clearOnSubmit: boolean;
|
|
51
|
+
useDisabledStylesOnSubmit: boolean;
|
|
52
|
+
};
|
|
53
|
+
uploadLongMessages: boolean;
|
|
54
|
+
upsellLongMessages: {
|
|
55
|
+
iconOnly: boolean;
|
|
56
|
+
};
|
|
57
|
+
showCharacterCount: boolean;
|
|
58
|
+
sedReplace: boolean;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export type ChatBarButtonFactory = (props: ChatBarProps & {
|
|
62
|
+
isMainChat: boolean;
|
|
63
|
+
}) => JSX.Element | null;
|
|
64
|
+
export declare function _injectButtons(buttons: ReactNode[], props: ChatBarProps): void;
|
|
65
|
+
export declare const addChatBarButton: (id: string, button: ChatBarButtonFactory) => Map<string, ChatBarButtonFactory>;
|
|
66
|
+
export declare const removeChatBarButton: (id: string) => boolean;
|
|
67
|
+
export interface ChatBarButtonProps {
|
|
68
|
+
children: ReactNode;
|
|
69
|
+
tooltip: string;
|
|
70
|
+
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
71
|
+
onContextMenu?: MouseEventHandler<HTMLButtonElement>;
|
|
72
|
+
onAuxClick?: MouseEventHandler<HTMLButtonElement>;
|
|
73
|
+
buttonProps?: Omit<HTMLProps<HTMLButtonElement>, "size" | "onClick" | "onContextMenu" | "onAuxClick" | "ref">;
|
|
74
|
+
}
|
|
75
|
+
export declare const ChatBarButton: import("react").FunctionComponent<ChatBarButtonProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CommandArgument, Message } from "@plexcord/discord-types";
|
|
2
|
+
import type { PartialDeep } from "type-fest";
|
|
3
|
+
export declare function generateId(): string;
|
|
4
|
+
/**
|
|
5
|
+
* Send a message as Clyde
|
|
6
|
+
* @param {string} channelId ID of channel to send message to
|
|
7
|
+
* @param {Message} message Message to send
|
|
8
|
+
* @returns {Message}
|
|
9
|
+
*/
|
|
10
|
+
export declare function sendBotMessage(channelId: string, message: PartialDeep<Message>): Message;
|
|
11
|
+
/**
|
|
12
|
+
* Get the value of an option by name
|
|
13
|
+
* @param args Arguments array (first argument passed to execute)
|
|
14
|
+
* @param name Name of the argument
|
|
15
|
+
* @param fallbackValue Fallback value in case this option wasn't passed
|
|
16
|
+
* @returns Value
|
|
17
|
+
*/
|
|
18
|
+
export declare function findOption<T>(args: CommandArgument[], name: string): T & {} | undefined;
|
|
19
|
+
export declare function findOption<T>(args: CommandArgument[], name: string, fallbackValue: T): T & {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CommandOption } from "@plexcord/discord-types";
|
|
2
|
+
import { PlexcordCommand } from "./types";
|
|
3
|
+
export * from "./commandHelpers";
|
|
4
|
+
export * from "./types";
|
|
5
|
+
export declare let BUILT_IN: PlexcordCommand[];
|
|
6
|
+
export declare const commands: Record<string, PlexcordCommand>;
|
|
7
|
+
/**
|
|
8
|
+
* Optional message option named "message" you can use in commands.
|
|
9
|
+
* Used in "tableflip" or "shrug"
|
|
10
|
+
* @see {@link RequiredMessageOption}
|
|
11
|
+
*/
|
|
12
|
+
export declare let OptionalMessageOption: CommandOption;
|
|
13
|
+
/**
|
|
14
|
+
* Required message option named "message" you can use in commands.
|
|
15
|
+
* Used in "me"
|
|
16
|
+
* @see {@link OptionalMessageOption}
|
|
17
|
+
*/
|
|
18
|
+
export declare let RequiredMessageOption: CommandOption;
|
|
19
|
+
export declare const _init: never;
|
|
20
|
+
export declare const _handleCommand: never;
|
|
21
|
+
/**
|
|
22
|
+
* Prepare a Command Option for Discord by filling missing fields
|
|
23
|
+
* @param opt
|
|
24
|
+
*/
|
|
25
|
+
export declare function prepareOption<O extends CommandOption | PlexcordCommand>(opt: O): O;
|
|
26
|
+
export declare function updateCommandTranslations(): void;
|
|
27
|
+
export declare function registerCommand<C extends PlexcordCommand>(command: C, plugin: string): void;
|
|
28
|
+
export declare function unregisterCommand(name: string): boolean;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @param children The rendered context menu elements
|
|
4
|
+
* @param args Any arguments passed into making the context menu, like the guild, channel, user or message for example
|
|
5
|
+
*/
|
|
6
|
+
export type NavContextMenuPatchCallback = (children: Array<ReactElement<any> | null>, ...args: Array<any>) => void;
|
|
7
|
+
/**
|
|
8
|
+
* @param navId The navId of the context menu being patched
|
|
9
|
+
* @param children The rendered context menu elements
|
|
10
|
+
* @param args Any arguments passed into making the context menu, like the guild, channel, user or message for example
|
|
11
|
+
*/
|
|
12
|
+
export type GlobalContextMenuPatchCallback = (navId: string, children: Array<ReactElement<any> | null>, ...args: Array<any>) => void;
|
|
13
|
+
export declare const navPatches: Map<string, Set<NavContextMenuPatchCallback>>;
|
|
14
|
+
export declare const globalPatches: Set<GlobalContextMenuPatchCallback>;
|
|
15
|
+
/**
|
|
16
|
+
* Add a context menu patch
|
|
17
|
+
* @param navId The navId(s) for the context menu(s) to patch
|
|
18
|
+
* @param patch The patch to be applied
|
|
19
|
+
*/
|
|
20
|
+
export declare function addContextMenuPatch(navId: string | Array<string>, patch: NavContextMenuPatchCallback): void;
|
|
21
|
+
/**
|
|
22
|
+
* Add a global context menu patch that fires the patch for all context menus
|
|
23
|
+
* @param patch The patch to be applied
|
|
24
|
+
*/
|
|
25
|
+
export declare function addGlobalContextMenuPatch(patch: GlobalContextMenuPatchCallback): void;
|
|
26
|
+
/**
|
|
27
|
+
* Remove a context menu patch
|
|
28
|
+
* @param navId The navId(s) for the context menu(s) to remove the patch
|
|
29
|
+
* @param patch The patch to be removed
|
|
30
|
+
* @returns Whether the patch was successfully removed from the context menu(s)
|
|
31
|
+
*/
|
|
32
|
+
export declare function removeContextMenuPatch<T extends string | Array<string>>(navId: T, patch: NavContextMenuPatchCallback): T extends string ? boolean : Array<boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* Remove a global context menu patch
|
|
35
|
+
* @param patch The patch to be removed
|
|
36
|
+
* @returns Whether the patch was successfully removed
|
|
37
|
+
*/
|
|
38
|
+
export declare function removeGlobalContextMenuPatch(patch: GlobalContextMenuPatchCallback): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* A helper function for finding the children array of a group nested inside a context menu based on the id(s) of its children
|
|
41
|
+
* @param id The id of the child. If an array is specified, all ids will be tried
|
|
42
|
+
* @param children The context menu children
|
|
43
|
+
* @param matchSubstring Whether to check if the id is a substring of the child id
|
|
44
|
+
*/
|
|
45
|
+
export declare function findGroupChildrenByChildId(id: string | string[], children: Array<ReactElement<any> | null | undefined>, matchSubstring?: boolean): Array<ReactElement<any> | null | undefined> | null;
|
|
46
|
+
interface ContextMenuProps {
|
|
47
|
+
contextMenuAPIArguments?: Array<any>;
|
|
48
|
+
navId: string;
|
|
49
|
+
children: Array<ReactElement<any> | null>;
|
|
50
|
+
"aria-label": string;
|
|
51
|
+
onSelect: (() => void) | undefined;
|
|
52
|
+
onClose: (callback: (...args: Array<any>) => any) => void;
|
|
53
|
+
}
|
|
54
|
+
export declare function _usePatchContextMenu(props: ContextMenuProps): ContextMenuProps;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* idb-keyval v6.2.0
|
|
3
|
+
* Copyright 2016, Jake Archibald
|
|
4
|
+
* Copyright 2022, Vendicated
|
|
5
|
+
* Copyright (c) 2025 MutanPlex
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
export declare function promisifyRequest<T = undefined>(request: IDBRequest<T> | IDBTransaction): Promise<T>;
|
|
20
|
+
export declare function createStore(dbName: string, storeName: string): UseStore;
|
|
21
|
+
export type UseStore = <T>(txMode: IDBTransactionMode, callback: (store: IDBObjectStore) => T | PromiseLike<T>) => Promise<T>;
|
|
22
|
+
/**
|
|
23
|
+
* Get a value by its key.
|
|
24
|
+
*
|
|
25
|
+
* @param key
|
|
26
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
27
|
+
*/
|
|
28
|
+
export declare function get<T = any>(key: IDBValidKey, customStore?: UseStore): Promise<T | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Set a value with a key.
|
|
31
|
+
*
|
|
32
|
+
* @param key
|
|
33
|
+
* @param value
|
|
34
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
35
|
+
*/
|
|
36
|
+
export declare function set(key: IDBValidKey, value: any, customStore?: UseStore): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Set multiple values at once. This is faster than calling set() multiple times.
|
|
39
|
+
* It's also atomic – if one of the pairs can't be added, none will be added.
|
|
40
|
+
*
|
|
41
|
+
* @param entries Array of entries, where each entry is an array of `[key, value]`.
|
|
42
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
43
|
+
*/
|
|
44
|
+
export declare function setMany(entries: [IDBValidKey, any][], customStore?: UseStore): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Get multiple values by their keys
|
|
47
|
+
*
|
|
48
|
+
* @param keys
|
|
49
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
50
|
+
*/
|
|
51
|
+
export declare function getMany<T = any>(keys: IDBValidKey[], customStore?: UseStore): Promise<T[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Update a value. This lets you see the old value and update it as an atomic operation.
|
|
54
|
+
*
|
|
55
|
+
* @param key
|
|
56
|
+
* @param updater A callback that takes the old value and returns a new value.
|
|
57
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
58
|
+
*/
|
|
59
|
+
export declare function update<T = any>(key: IDBValidKey, updater: (oldValue: T | undefined) => T, customStore?: UseStore): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete a particular key from the store.
|
|
62
|
+
*
|
|
63
|
+
* @param key
|
|
64
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
65
|
+
*/
|
|
66
|
+
export declare function del(key: IDBValidKey, customStore?: UseStore): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Delete multiple keys at once.
|
|
69
|
+
*
|
|
70
|
+
* @param keys List of keys to delete.
|
|
71
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
72
|
+
*/
|
|
73
|
+
export declare function delMany(keys: IDBValidKey[], customStore?: UseStore): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Clear all values in the store.
|
|
76
|
+
*
|
|
77
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
78
|
+
*/
|
|
79
|
+
export declare function clear(customStore?: UseStore): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Get all keys in the store.
|
|
82
|
+
*
|
|
83
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
84
|
+
*/
|
|
85
|
+
export declare function keys<KeyType extends IDBValidKey>(customStore?: UseStore): Promise<KeyType[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Get all values in the store.
|
|
88
|
+
*
|
|
89
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
90
|
+
*/
|
|
91
|
+
export declare function values<T = any>(customStore?: UseStore): Promise<T[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Get all entries in the store. Each entry is an array of `[key, value]`.
|
|
94
|
+
*
|
|
95
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
96
|
+
*/
|
|
97
|
+
export declare function entries<KeyType extends IDBValidKey, ValueType = any>(customStore?: UseStore): Promise<[KeyType, ValueType][]>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LocaleData } from "./i18n";
|
|
2
|
+
export declare class LocaleLoader {
|
|
3
|
+
private static loadedCoreLocales;
|
|
4
|
+
private static loadedPluginLocales;
|
|
5
|
+
static loadCoreLocales(): Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
* Register a plugin's locale loader
|
|
8
|
+
* @param pluginName The plugin name
|
|
9
|
+
* @param locale The locale code
|
|
10
|
+
* @param loader Function that returns a promise with locale data
|
|
11
|
+
*/
|
|
12
|
+
static registerPluginLocale(pluginName: string, locale: string, loader: () => Promise<{
|
|
13
|
+
default: LocaleData;
|
|
14
|
+
}>): void;
|
|
15
|
+
/**
|
|
16
|
+
* Load a specific plugin locale
|
|
17
|
+
* @param pluginName The plugin name
|
|
18
|
+
* @param locale The locale code
|
|
19
|
+
*/
|
|
20
|
+
static loadPluginLocale(pluginName: string, locale: string): Promise<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* Load all locales for a specific plugin
|
|
23
|
+
* @param pluginName The plugin name
|
|
24
|
+
*/
|
|
25
|
+
static loadPluginLocales(pluginName: string): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Unregister all locales for a plugin
|
|
28
|
+
* @param pluginName The plugin name
|
|
29
|
+
*/
|
|
30
|
+
static unregisterPlugin(pluginName: string): void;
|
|
31
|
+
static getRegisteredPlugins(): string[];
|
|
32
|
+
/**
|
|
33
|
+
* Get available locales for a plugin
|
|
34
|
+
* @param pluginName The plugin name
|
|
35
|
+
*/
|
|
36
|
+
static getPluginLocales(pluginName: string): string[];
|
|
37
|
+
/**
|
|
38
|
+
* Check if a plugin has a specific locale
|
|
39
|
+
* @param pluginName The plugin name
|
|
40
|
+
* @param locale The locale code
|
|
41
|
+
*/
|
|
42
|
+
static hasPluginLocale(pluginName: string, locale: string): boolean;
|
|
43
|
+
static loadCurrentLocales(): Promise<void>;
|
|
44
|
+
static initialize(): Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
export declare function definePluginLocales(pluginName: string, locales: Record<string, () => Promise<{
|
|
47
|
+
default: LocaleData;
|
|
48
|
+
}>>): void;
|
|
49
|
+
export default LocaleLoader;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Channel, User } from "@plexcord/discord-types";
|
|
2
|
+
import { JSX } from "react";
|
|
3
|
+
export type DecoratorProps = {
|
|
4
|
+
type: "guild" | "dm";
|
|
5
|
+
user: User;
|
|
6
|
+
/** only present when this is a DM list item */
|
|
7
|
+
channel: Channel;
|
|
8
|
+
/** only present when this is a guild list item */
|
|
9
|
+
isOwner: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type MemberListDecoratorFactory = (props: DecoratorProps) => JSX.Element | null;
|
|
12
|
+
type OnlyIn = "guilds" | "dms";
|
|
13
|
+
export declare const decoratorsFactories: Map<string, {
|
|
14
|
+
render: MemberListDecoratorFactory;
|
|
15
|
+
onlyIn?: OnlyIn;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function addMemberListDecorator(identifier: string, render: MemberListDecoratorFactory, onlyIn?: OnlyIn): void;
|
|
18
|
+
export declare function removeMemberListDecorator(identifier: string): void;
|
|
19
|
+
export declare function __getDecorators(props: DecoratorProps, type: "guild" | "dm"): JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX, ReactNode } from "react";
|
|
2
|
+
export type MessageAccessoryFactory = (props: Record<string, any>) => ReactNode;
|
|
3
|
+
export type MessageAccessory = {
|
|
4
|
+
render: MessageAccessoryFactory;
|
|
5
|
+
position?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const accessories: Map<string, MessageAccessory>;
|
|
8
|
+
export declare function addMessageAccessory(identifier: string, render: MessageAccessoryFactory, position?: number): void;
|
|
9
|
+
export declare function removeMessageAccessory(identifier: string): void;
|
|
10
|
+
export declare function _modifyAccessories(elements: JSX.Element[], props: Record<string, any>): JSX.Element[];
|