@vencord/types 0.1.2 → 1.11.5
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/Vencord.d.ts +29 -28
- package/VencordNative.d.ts +40 -14
- package/api/Badges.d.ts +47 -62
- package/api/ChatButtons.d.ts +75 -0
- package/api/Commands/commandHelpers.d.ts +20 -20
- package/api/Commands/index.d.ts +26 -26
- package/api/Commands/types.d.ts +76 -74
- package/api/ContextMenu.d.ts +55 -57
- package/api/DataStore/index.d.ts +96 -96
- package/api/MemberListDecorators.d.ts +32 -33
- package/api/MessageAccessories.d.ts +10 -10
- package/api/MessageDecorations.d.ts +33 -34
- package/api/MessageEvents.d.ts +70 -39
- package/api/MessagePopover.d.ts +16 -16
- package/api/MessageUpdater.d.ts +8 -0
- package/api/Notices.d.ts +5 -5
- package/api/Notifications/NotificationComponent.d.ts +6 -7
- package/api/Notifications/Notifications.d.ts +25 -25
- package/api/Notifications/index.d.ts +1 -1
- package/api/Notifications/notificationLog.d.ts +14 -15
- package/api/ServerList.d.ts +8 -8
- package/api/{settings.d.ts → Settings.d.ts} +67 -76
- package/api/Styles.d.ts +97 -97
- package/api/UserSettings.d.ts +40 -0
- package/api/index.d.ts +101 -91
- package/components/Badge.d.ts +4 -5
- package/components/CheckedTextInput.d.ts +22 -23
- package/components/CodeBlock.d.ts +7 -0
- package/components/DonateButton.d.ts +2 -2
- package/components/ErrorBoundary.d.ts +25 -26
- package/components/ErrorCard.d.ts +3 -3
- package/components/Flex.d.ts +5 -6
- package/components/Grid.d.ts +8 -0
- package/components/Heart.d.ts +2 -2
- package/components/Icons.d.ts +40 -0
- package/components/Link.d.ts +5 -6
- package/components/PluginSettings/ContributorModal.d.ts +3 -0
- package/components/PluginSettings/LinkIconButton.d.ts +10 -0
- package/components/PluginSettings/PluginModal.d.ts +10 -9
- package/components/PluginSettings/components/SettingBooleanComponent.d.ts +3 -4
- package/components/PluginSettings/components/SettingCustomComponent.d.ts +3 -4
- package/components/PluginSettings/components/SettingNumericComponent.d.ts +3 -4
- package/components/PluginSettings/components/SettingSelectComponent.d.ts +3 -4
- package/components/PluginSettings/components/SettingSliderComponent.d.ts +4 -5
- package/components/PluginSettings/components/SettingTextComponent.d.ts +3 -4
- package/components/PluginSettings/components/index.d.ts +21 -19
- package/components/PluginSettings/index.d.ts +12 -4
- package/components/Switch.d.ts +8 -9
- package/components/VencordSettings/AddonCard.d.ts +17 -0
- package/components/VencordSettings/{BackupRestoreTab.d.ts → BackupAndRestoreTab.d.ts} +2 -3
- package/components/VencordSettings/CloudTab.d.ts +2 -3
- package/components/VencordSettings/NotificationSettings.d.ts +2 -0
- package/components/VencordSettings/{Updater.d.ts → PatchHelperTab.d.ts} +2 -3
- package/components/VencordSettings/PluginsTab.d.ts +2 -3
- package/components/VencordSettings/SpecialCard.d.ts +14 -0
- package/components/VencordSettings/ThemesTab.d.ts +2 -3
- package/components/{PatchHelper.d.ts → VencordSettings/UpdaterTab.d.ts} +3 -3
- package/components/VencordSettings/VencordTab.d.ts +2 -3
- package/components/VencordSettings/quickActions.d.ts +12 -0
- package/components/VencordSettings/shared.d.ts +9 -0
- package/components/handleComponentFailed.d.ts +1 -1
- package/components/index.d.ts +11 -3
- package/modules.d.ts +11 -2
- package/package.json +10 -8
- package/plugins/_api/badges/index.d.ts +49 -0
- package/plugins/_api/chatButtons.d.ts +16 -0
- package/plugins/{apiCommands.d.ts → _api/commands.d.ts} +29 -28
- package/plugins/{apiContextMenu.d.ts → _api/contextMenu.d.ts} +27 -25
- package/plugins/_api/dynamicImageModalApi.d.ts +16 -0
- package/plugins/{noTrack.d.ts → _api/memberListDecorators/index.d.ts} +23 -23
- package/plugins/_api/menuItemDemangler.d.ts +17 -0
- package/plugins/{apiServerList.d.ts → _api/messageAccessories.d.ts} +16 -16
- package/plugins/_api/messageDecorations/index.d.ts +17 -0
- package/plugins/{apiMessageAccessories.d.ts → _api/messageEvents.d.ts} +16 -16
- package/plugins/_api/messagePopover.d.ts +16 -0
- package/plugins/{alwaysTrust.d.ts → _api/messageUpdater.d.ts} +16 -16
- package/plugins/_api/notices.d.ts +17 -0
- package/plugins/{apiMessageDecorations.d.ts → _api/serverList.d.ts} +16 -16
- package/plugins/{apiSettingsStore.d.ts → _api/userSettings.d.ts} +16 -16
- package/plugins/{webContextMenus.web.d.ts → _core/noTrack.d.ts} +50 -48
- package/plugins/_core/settings.d.ts +68 -0
- package/plugins/_core/supportHelper.d.ts +42 -0
- package/plugins/accountPanelServerProfile/index.d.ts +45 -0
- package/plugins/{colorSighted.d.ts → alwaysAnimate/index.d.ts} +34 -22
- package/plugins/{noScreensharePreview.d.ts → alwaysExpandRoles/index.d.ts} +16 -16
- package/plugins/alwaysTrust/index.d.ts +45 -0
- package/plugins/anonymiseFileNames/index.d.ts +95 -0
- package/plugins/appleMusic.desktop/index.d.ts +225 -0
- package/plugins/appleMusic.desktop/native.d.ts +2 -0
- package/plugins/{hideAttachments.d.ts → arRPC.web/index.d.ts} +15 -14
- package/plugins/{banger.d.ts → banger/index.d.ts} +33 -25
- package/plugins/betterFolders/FolderSideBar.d.ts +2 -3
- package/plugins/betterFolders/index.d.ts +274 -71
- package/plugins/{betterGifAltText.d.ts → betterGifAltText/index.d.ts} +17 -17
- package/plugins/{noSystemBadge.discordDesktop.d.ts → betterGifPicker/index.d.ts} +16 -16
- package/plugins/betterNotes/index.d.ts +57 -0
- package/plugins/betterRoleContext/index.d.ts +46 -0
- package/plugins/{betterNotes.d.ts → betterRoleDot/index.d.ts} +44 -41
- 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 +60 -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 +93 -0
- package/plugins/{apiMemberListDecorators.d.ts → betterUploadButton/index.d.ts} +16 -16
- package/plugins/biggerStreamPreview/index.d.ts +48 -0
- package/plugins/biggerStreamPreview/webpack/stores.d.ts +3 -0
- package/plugins/biggerStreamPreview/webpack/types/stores.d.ts +60 -0
- package/plugins/{blurNsfw.d.ts → blurNsfw/index.d.ts} +28 -28
- package/plugins/{callTimer.d.ts → callTimer/index.d.ts} +38 -40
- package/plugins/clearURLs/defaultRules.d.ts +1 -1
- package/plugins/clearURLs/index.d.ts +18 -18
- package/plugins/clientTheme/index.d.ts +36 -0
- package/plugins/colorSighted/index.d.ts +16 -0
- package/plugins/consoleJanitor/index.d.ts +79 -0
- package/plugins/{reverseImageSearch.d.ts → consoleShortcuts/index.d.ts} +21 -18
- package/plugins/consoleShortcuts/native.d.ts +2 -0
- package/plugins/copyEmojiMarkdown/index.d.ts +37 -0
- package/plugins/copyFileContents/index.d.ts +21 -0
- package/plugins/copyUserURLs/index.d.ts +13 -0
- package/plugins/{crashHandler.d.ts → crashHandler/index.d.ts} +43 -44
- package/plugins/ctrlEnterSend/index.d.ts +40 -0
- package/plugins/customRPC/index.d.ts +282 -0
- package/plugins/customidle/index.d.ts +49 -0
- package/plugins/dearrow/index.d.ts +106 -0
- package/plugins/decor/index.d.ts +74 -0
- package/plugins/decor/lib/api.d.ts +27 -0
- package/plugins/decor/lib/constants.d.ts +10 -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 +24 -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/{messageClickActions.d.ts → devCompanion.dev/index.d.ts} +29 -25
- package/plugins/disableCallIdle/index.d.ts +16 -0
- package/plugins/{searchReply.d.ts → dontRoundMyTimestamps/index.d.ts} +11 -11
- package/plugins/emoteCloner/index.d.ts +15 -0
- package/plugins/{experiments.d.ts → experiments/index.d.ts} +51 -51
- package/plugins/{f8break.d.ts → f8break/index.d.ts} +12 -12
- package/plugins/fakeNitro/index.d.ts +165 -0
- package/plugins/{fakeProfileThemes.d.ts → fakeProfileThemes/index.d.ts} +58 -44
- package/plugins/favEmojiFirst/index.d.ts +31 -0
- package/plugins/favGifSearch/index.d.ts +120 -0
- package/plugins/{noF1.d.ts → fixCodeblockGap/index.d.ts} +16 -16
- package/plugins/fixImagesQuality/index.d.ts +16 -0
- package/plugins/fixSpotifyEmbeds.desktop/index.d.ts +19 -0
- package/plugins/fixSpotifyEmbeds.desktop/native.d.ts +1 -0
- package/plugins/{oneko.d.ts → fixYoutubeEmbeds.desktop/index.d.ts} +9 -11
- package/plugins/fixYoutubeEmbeds.desktop/native.d.ts +1 -0
- package/plugins/forceOwnerCrown/index.d.ts +23 -0
- package/plugins/{uwuify.d.ts → friendInvites/index.d.ts} +16 -18
- package/plugins/friendsSince/index.d.ts +20 -0
- package/plugins/fullSearchContext/index.d.ts +22 -0
- package/plugins/fullUserInChatbox/index.d.ts +24 -0
- package/plugins/gameActivityToggle/index.d.ts +33 -21
- package/plugins/{gifPaste.d.ts → gifPaste/index.d.ts} +19 -19
- package/plugins/{welcomeStickerPicker.d.ts → greetStickerPicker/index.d.ts} +58 -47
- package/plugins/hideAttachments/index.d.ts +31 -0
- package/plugins/iLoveSpam/index.d.ts +16 -0
- package/plugins/ignoreActivities/index.d.ts +175 -0
- package/plugins/imageLink/index.d.ts +16 -0
- package/plugins/imageZoom/components/Magnifier.d.ts +6 -7
- package/plugins/imageZoom/constants.d.ts +1 -1
- package/plugins/imageZoom/index.d.ts +222 -122
- package/plugins/imageZoom/utils/waitFor.d.ts +1 -1
- package/plugins/implicitRelationships/index.d.ts +43 -0
- package/plugins/index.d.ts +19 -13
- package/plugins/invisibleChat.desktop/components/DecryptionModal.d.ts +2 -0
- package/plugins/{invisibleChat → invisibleChat.desktop}/components/EncryptionModal.d.ts +1 -1
- package/plugins/{invisibleChat → invisibleChat.desktop}/index.d.ts +54 -42
- package/plugins/ircColors/index.d.ts +76 -0
- package/plugins/keepCurrentChannel/index.d.ts +31 -0
- package/plugins/lastfm/index.d.ts +195 -0
- package/plugins/loadingQuotes/index.d.ts +76 -0
- package/plugins/memberCount/MemberCount.d.ts +4 -0
- package/plugins/memberCount/OnlineMemberCountStore.d.ts +18 -0
- package/plugins/memberCount/index.d.ts +73 -0
- package/plugins/mentionAvatars/index.d.ts +40 -0
- package/plugins/messageClickActions/index.d.ts +56 -0
- package/plugins/messageLatency/index.d.ts +60 -0
- package/plugins/messageLinkEmbeds/index.d.ts +95 -0
- package/plugins/messageLogger/HistoryModal.d.ts +6 -0
- package/plugins/messageLogger/index.d.ts +126 -58
- package/plugins/{messageTags.d.ts → messageTags/index.d.ts} +56 -38
- package/plugins/{moreCommands.d.ts → moreCommands/index.d.ts} +25 -26
- package/plugins/{moreKaomoji.d.ts → moreKaomoji/index.d.ts} +17 -18
- package/plugins/moyai/index.d.ts +113 -0
- package/plugins/mutualGroupDMs/index.d.ts +33 -0
- package/plugins/newGuildSettings/index.d.ts +114 -0
- package/plugins/noBlockedMessages/index.d.ts +57 -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/{noBlockedMessages.d.ts → noMosaic/index.d.ts} +41 -33
- package/plugins/noOnboardingDelay/index.d.ts +16 -0
- package/plugins/noPendingCount/index.d.ts +58 -0
- package/plugins/noProfileThemes/index.d.ts +17 -0
- package/plugins/noRPC.discordDesktop/index.d.ts +16 -0
- package/plugins/noReplyMention/index.d.ts +68 -0
- package/plugins/{viewIcons.d.ts → noServerEmojis/index.d.ts} +39 -36
- package/plugins/{plainFolderIcon.d.ts → noSystemBadge.discordDesktop/index.d.ts} +16 -16
- package/plugins/noTypingAnimation/index.d.ts +16 -0
- package/plugins/noUnblockToJump/index.d.ts +16 -0
- package/plugins/{alwaysAnimate.d.ts → normalizeMessageLinks/index.d.ts} +17 -17
- package/plugins/notificationVolume/index.d.ts +34 -0
- package/plugins/nsfwGateBypass/index.d.ts +16 -0
- package/plugins/onePingPerDM/index.d.ts +68 -0
- package/plugins/{emoteCloner.d.ts → oneko/index.d.ts} +11 -11
- package/plugins/openInApp/index.d.ts +34 -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/{typingTweaks.d.ts → permissionFreeWill/index.d.ts} +52 -51
- 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.d.ts → petpet/index.d.ts} +37 -38
- 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 +205 -47
- package/plugins/plainFolderIcon/index.d.ts +16 -0
- package/plugins/{platformIndicators.d.ts → platformIndicators/index.d.ts} +50 -46
- package/plugins/previewMessage/index.d.ts +13 -0
- package/plugins/quickMention/index.d.ts +17 -0
- package/plugins/quickReply/index.d.ts +58 -0
- package/plugins/{unminifyErrors.d.ts → reactErrorDecoder/index.d.ts} +19 -19
- package/plugins/{viewRaw.d.ts → readAllNotificationsButton/index.d.ts} +14 -12
- package/plugins/relationshipNotifier/functions.d.ts +7 -7
- package/plugins/relationshipNotifier/index.d.ts +96 -53
- package/plugins/relationshipNotifier/settings.d.ts +65 -34
- package/plugins/relationshipNotifier/types.d.ts +39 -37
- package/plugins/relationshipNotifier/utils.d.ts +17 -10
- package/plugins/replaceGoogleSearch/index.d.ts +37 -0
- package/plugins/replyTimestamp/index.d.ts +33 -0
- package/plugins/{revealAllSpoilers.d.ts → revealAllSpoilers/index.d.ts} +17 -17
- 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 +10 -3
- package/plugins/reviewDB/components/ReviewBadge.d.ts +4 -3
- package/plugins/reviewDB/components/ReviewComponent.d.ts +7 -7
- package/plugins/reviewDB/components/ReviewModal.d.ts +2 -0
- package/plugins/reviewDB/components/ReviewsView.d.ts +24 -4
- package/plugins/reviewDB/entities.d.ts +72 -0
- package/plugins/reviewDB/index.d.ts +96 -34
- 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 +129 -0
- package/plugins/{sortFriendRequests.d.ts → secretRingTone/index.d.ts} +37 -34
- package/plugins/seeSummaries/index.d.ts +39 -0
- package/plugins/sendTimestamps/index.d.ts +28 -23
- package/plugins/serverInfo/GuildInfoModal.d.ts +3 -0
- package/plugins/serverInfo/index.d.ts +16 -0
- package/plugins/{serverListIndicators.d.ts → serverListIndicators/index.d.ts} +34 -37
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/api/languages.d.ts +28 -28
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/api/shiki.d.ts +77 -51
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/api/themes.d.ts +63 -37
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/ButtonRow.d.ts +6 -6
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/Code.d.ts +11 -11
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/CopyButton.d.ts +4 -5
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/Header.d.ts +8 -9
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/Highlighter.d.ts +14 -15
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/hooks/useCopyCooldown.d.ts +1 -1
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/hooks/useShikiSettings.d.ts +16 -16
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/hooks/useTheme.d.ts +8 -8
- package/plugins/shikiCodeblocks.desktop/index.d.ts +274 -0
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/previewExample.d.ts +5 -5
- package/plugins/shikiCodeblocks.desktop/settings.d.ts +173 -0
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/types.d.ts +42 -42
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/utils/color.d.ts +1 -1
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/utils/createStyle.d.ts +3 -3
- package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/utils/misc.d.ts +7 -7
- package/plugins/showAllMessageButtons/index.d.ts +16 -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 -34
- package/plugins/showHiddenChannels/index.d.ts +195 -110
- package/plugins/showHiddenThings/index.d.ts +65 -0
- package/plugins/showMeYourName/index.d.ts +78 -49
- package/plugins/showTimeoutDuration/index.d.ts +58 -0
- package/plugins/silentMessageToggle/index.d.ts +37 -0
- package/plugins/silentTyping/index.d.ts +72 -0
- package/plugins/sortFriendRequests/index.d.ts +47 -0
- package/plugins/spotifyControls/PlayerComponent.d.ts +2 -3
- package/plugins/spotifyControls/SpotifyStore.d.ts +62 -0
- package/plugins/spotifyControls/index.d.ts +46 -33
- package/plugins/{spotifyCrack.d.ts → spotifyCrack/index.d.ts} +51 -38
- package/plugins/{spotifyShareCommands.d.ts → spotifyShareCommands/index.d.ts} +17 -18
- package/plugins/startupTimings/StartupTimingPage.d.ts +2 -3
- package/plugins/startupTimings/index.d.ts +17 -18
- package/plugins/stickerPaste/index.d.ts +16 -0
- package/plugins/streamerModeOnStream/index.d.ts +13 -0
- package/plugins/superReactionTweaks/index.d.ts +107 -0
- package/plugins/textReplace/index.d.ts +40 -0
- package/plugins/themeAttributes/index.d.ts +27 -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 +158 -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 +82 -0
- package/plugins/typingTweaks/index.d.ts +72 -0
- package/plugins/{unindent.d.ts → unindent/index.d.ts} +21 -22
- package/plugins/unlockedAvatarZoom/index.d.ts +32 -0
- package/plugins/{arRPC.web.d.ts → unsuppressEmbeds/index.d.ts} +13 -13
- package/plugins/userMessagesPronouns/PronounsChatComponent.d.ts +7 -0
- package/plugins/userMessagesPronouns/index.d.ts +61 -0
- package/plugins/userMessagesPronouns/settings.d.ts +44 -0
- package/plugins/userMessagesPronouns/utils.d.ts +1 -0
- package/plugins/userVoiceShow/components.d.ts +6 -0
- package/plugins/userVoiceShow/index.d.ts +69 -36
- package/plugins/usrbg/index.d.ts +84 -36
- package/plugins/validReply/index.d.ts +35 -0
- package/plugins/validUser/index.d.ts +18 -0
- package/plugins/{vcDoubleClick.d.ts → vcDoubleClick/index.d.ts} +26 -26
- package/plugins/vcNarrator/index.d.ts +33 -0
- package/plugins/vencordToolbox/index.d.ts +21 -0
- package/plugins/viewIcons/index.d.ts +82 -0
- package/plugins/viewRaw/index.d.ts +58 -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 +2 -0
- package/plugins/volumeBooster/index.d.ts +74 -0
- package/plugins/webContextMenus.web/index.d.ts +89 -0
- package/plugins/webKeybinds.web/index.d.ts +13 -0
- package/plugins/webScreenShareFixes.web/index.d.ts +17 -0
- package/plugins/whoReacted/index.d.ts +39 -0
- package/plugins/xsOverlay/index.d.ts +226 -0
- package/plugins/xsOverlay/native.d.ts +1 -0
- package/plugins/youtubeAdblock.desktop/adguard.d.ts +54 -0
- package/plugins/youtubeAdblock.desktop/index.d.ts +9 -0
- package/plugins/youtubeAdblock.desktop/native.d.ts +1 -0
- package/shared/IpcEvents.d.ts +25 -0
- package/shared/SettingsStore.d.ts +82 -0
- package/{utils → shared}/debounce.d.ts +8 -8
- package/{utils → shared}/onceDefined.d.ts +11 -11
- package/shared/vencordUserAgent.d.ts +4 -0
- package/utils/ChangeList.d.ts +10 -10
- package/utils/Logger.d.ts +21 -21
- package/utils/Queue.d.ts +33 -33
- package/utils/apng-canvas.d.ts +1 -0
- package/utils/cloud.d.ts +7 -7
- package/utils/constants.d.ts +572 -254
- package/utils/dependencies.d.ts +40 -41
- package/utils/discord.d.ts +69 -10
- package/utils/guards.d.ts +2 -2
- package/utils/index.d.ts +37 -32
- package/utils/intlHash.d.ts +8 -0
- package/utils/lazy.d.ts +14 -0
- package/utils/lazyReact.d.ts +8 -0
- package/utils/localStorage.d.ts +1 -1
- package/utils/margins.d.ts +1 -1
- package/utils/mergeDefaults.d.ts +7 -0
- package/utils/misc.d.ts +33 -80
- package/utils/modal.d.ts +173 -149
- package/utils/native.d.ts +2 -2
- package/utils/onlyOnce.d.ts +1 -0
- package/utils/patches.d.ts +6 -5
- package/utils/quickCss.d.ts +1 -1
- package/utils/react.d.ts +34 -7
- package/utils/settingsSync.d.ts +9 -7
- package/utils/text.d.ts +38 -20
- package/utils/types.d.ts +326 -222
- package/utils/updater.d.ts +10 -11
- package/utils/web-metadata.d.ts +2 -0
- package/utils/web.d.ts +11 -1
- package/webpack/common/classes.d.ts +3 -0
- package/webpack/common/components.d.ts +103 -22
- package/webpack/common/index.d.ts +10 -8
- package/webpack/common/internal.d.ts +3 -4
- package/webpack/common/menu.d.ts +3 -3
- package/webpack/common/react.d.ts +9 -8
- package/webpack/common/stores.d.ts +40 -37
- package/webpack/common/types/classes.d.ts +39 -0
- package/webpack/common/types/components.d.ts +193 -14
- package/webpack/common/types/fluxEvents.d.ts +1 -1
- package/webpack/common/types/index.d.ts +1 -1
- package/webpack/common/types/menu.d.ts +21 -8
- package/webpack/common/types/stores.d.ts +195 -0
- package/webpack/common/types/utils.d.ts +239 -15
- package/webpack/common/userSettings.d.ts +4 -0
- package/webpack/common/utils.d.ts +83 -47
- package/webpack/index.d.ts +3 -2
- package/webpack/patchWebpack.d.ts +12 -1
- package/webpack/webpack.d.ts +183 -105
- package/webpack/wreq.d.ts +238 -0
- package/api/SettingsStore.d.ts +0 -28
- package/components/Monaco.d.ts +0 -1
- package/components/VencordSettings/index.d.ts +0 -7
- package/plugins/anonymiseFileNames.d.ts +0 -50
- package/plugins/apiBadges.d.ts +0 -36
- package/plugins/apiMessageEvents.d.ts +0 -22
- package/plugins/apiMessagePopover.d.ts +0 -16
- package/plugins/apiNotices.d.ts +0 -20
- package/plugins/betterRoleDot.d.ts +0 -35
- package/plugins/betterUploadButton.d.ts +0 -16
- package/plugins/consoleShortcuts.d.ts +0 -47
- package/plugins/customRPC.d.ts +0 -97
- package/plugins/devCompanion.dev.d.ts +0 -19
- package/plugins/disableDMCallIdle.d.ts +0 -16
- package/plugins/fakeNitro.d.ts +0 -140
- package/plugins/fart.d.ts +0 -34
- package/plugins/fixInbox.d.ts +0 -18
- package/plugins/forceOwnerCrown.d.ts +0 -17
- package/plugins/friendInvites.d.ts +0 -22
- package/plugins/fxTwitter.d.ts +0 -14
- package/plugins/highResAvatars.d.ts +0 -16
- package/plugins/iLoveSpam.d.ts +0 -16
- package/plugins/ignoreActivities.d.ts +0 -30
- package/plugins/invisibleChat/components/DecryptionModal.d.ts +0 -3
- package/plugins/keepCurrentChannel.d.ts +0 -30
- package/plugins/lastfm.d.ts +0 -90
- package/plugins/loadingQuotes.d.ts +0 -18
- package/plugins/memberCount.d.ts +0 -26
- package/plugins/messageLinkEmbeds.d.ts +0 -45
- package/plugins/moreUserTags.d.ts +0 -51
- package/plugins/moyai.d.ts +0 -58
- package/plugins/muteNewGuild.d.ts +0 -18
- package/plugins/noCanaryMessageLinks.d.ts +0 -29
- package/plugins/noDevtoolsWarning.d.ts +0 -16
- package/plugins/noRPC.discordDesktop.d.ts +0 -16
- package/plugins/noReplyMention.d.ts +0 -31
- package/plugins/noUnblockToJump.d.ts +0 -16
- package/plugins/nsfwGateBypass.d.ts +0 -16
- package/plugins/pinDms/contextMenus.d.ts +0 -2
- package/plugins/pinDms/settings.d.ts +0 -26
- package/plugins/pronoundb/components/PronounsAboutComponent.d.ts +0 -2
- package/plugins/pronoundb/components/PronounsChatComponent.d.ts +0 -11
- package/plugins/pronoundb/components/PronounsProfileWrapper.d.ts +0 -3
- package/plugins/pronoundb/index.d.ts +0 -59
- package/plugins/pronoundb/pronoundbUtils.d.ts +0 -5
- package/plugins/pronoundb/types.d.ts +0 -34
- package/plugins/quickMention.d.ts +0 -14
- package/plugins/quickReply.d.ts +0 -32
- package/plugins/readAllNotificationsButton.d.ts +0 -14
- package/plugins/relationshipNotifier/events.d.ts +0 -3
- package/plugins/reviewDB/Utils/ReviewDBAPI.d.ts +0 -13
- package/plugins/reviewDB/Utils/Utils.d.ts +0 -6
- package/plugins/reviewDB/entities/Badge.d.ts +0 -7
- package/plugins/reviewDB/entities/Review.d.ts +0 -14
- package/plugins/roleColorEverywhere.d.ts +0 -63
- package/plugins/settings.d.ts +0 -61
- package/plugins/shikiCodeblocks/index.d.ts +0 -132
- package/plugins/shikiCodeblocks/settings.d.ts +0 -58
- package/plugins/silentMessageToggle.d.ts +0 -31
- package/plugins/silentTyping.d.ts +0 -59
- package/plugins/supportHelper.d.ts +0 -21
- package/plugins/timeBarAllActivities.d.ts +0 -16
- package/plugins/typingIndicator.d.ts +0 -31
- package/plugins/urbanDictionary.d.ts +0 -24
- package/plugins/userVoiceShow/components/VoiceChannelSection.d.ts +0 -10
- package/plugins/vcNarrator.d.ts +0 -18
- package/plugins/volumeBooster.discordDesktop.d.ts +0 -38
- package/plugins/whoReacted.d.ts +0 -120
- package/plugins/wikisearch.d.ts +0 -23
- package/utils/IpcEvents.d.ts +0 -16
- package/utils/proxyLazy.d.ts +0 -10
- package/webpack/common/types/i18nMessages.d.ts +0 -2
package/Vencord.d.ts
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Vencord, a modification for Discord's desktop app
|
|
3
|
-
* Copyright (c) 2022 Vendicated and contributors
|
|
4
|
-
*
|
|
5
|
-
* This program is free software: you can redistribute it and/or modify
|
|
6
|
-
* it under the terms of the GNU General Public License as published by
|
|
7
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
-
* (at your option) any later version.
|
|
9
|
-
*
|
|
10
|
-
* This program is distributed in the hope that it will be useful,
|
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
-
* GNU General Public License for more details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU General Public License
|
|
16
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
-
*/
|
|
18
|
-
export * as Api from "./api";
|
|
19
|
-
export * as
|
|
20
|
-
export * as
|
|
21
|
-
export * as
|
|
22
|
-
export * as
|
|
23
|
-
export * as
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
import
|
|
28
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Vencord, a modification for Discord's desktop app
|
|
3
|
+
* Copyright (c) 2022 Vendicated and contributors
|
|
4
|
+
*
|
|
5
|
+
* This program is free software: you can redistribute it and/or modify
|
|
6
|
+
* it under the terms of the GNU General Public License as published by
|
|
7
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
* (at your option) any later version.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU General Public License
|
|
16
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
export * as Api from "./api";
|
|
19
|
+
export * as Components from "./components";
|
|
20
|
+
export * as Plugins from "./plugins";
|
|
21
|
+
export * as Util from "./utils";
|
|
22
|
+
export * as QuickCss from "./utils/quickCss";
|
|
23
|
+
export * as Updater from "./utils/updater";
|
|
24
|
+
export * as Webpack from "./webpack";
|
|
25
|
+
export * as WebpackPatcher from "./webpack/patchWebpack";
|
|
26
|
+
export { PlainSettings, Settings };
|
|
27
|
+
import "./utils/quickCss";
|
|
28
|
+
import "./webpack/patchWebpack";
|
|
29
|
+
import { PlainSettings, Settings } from "./api/Settings";
|
package/VencordNative.d.ts
CHANGED
|
@@ -1,14 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import type { Settings } from "./api/Settings";
|
|
2
|
+
import type { UserThemeHeader } from "./main/themes";
|
|
3
|
+
import { IpcEvents } from "./shared/IpcEvents";
|
|
4
|
+
import { IpcRes } from "./utils/types";
|
|
5
|
+
export declare function sendSync<T = any>(event: IpcEvents, ...args: any[]): T;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
themes: {
|
|
8
|
+
uploadTheme: (fileName: string, fileData: string) => Promise<void>;
|
|
9
|
+
deleteTheme: (fileName: string) => Promise<void>;
|
|
10
|
+
getThemesDir: () => Promise<string>;
|
|
11
|
+
getThemesList: () => Promise<UserThemeHeader[]>;
|
|
12
|
+
getThemeData: (fileName: string) => Promise<string | undefined>;
|
|
13
|
+
getSystemValues: () => Promise<Record<string, string>>;
|
|
14
|
+
};
|
|
15
|
+
updater: {
|
|
16
|
+
getUpdates: () => Promise<IpcRes<Record<"message" | "author" | "hash", string>[]>>;
|
|
17
|
+
update: () => Promise<IpcRes<boolean>>;
|
|
18
|
+
rebuild: () => Promise<IpcRes<boolean>>;
|
|
19
|
+
getRepo: () => Promise<IpcRes<string>>;
|
|
20
|
+
};
|
|
21
|
+
settings: {
|
|
22
|
+
get: () => Settings;
|
|
23
|
+
set: (settings: Settings, pathToNotify?: string) => Promise<void>;
|
|
24
|
+
getSettingsDir: () => Promise<string>;
|
|
25
|
+
};
|
|
26
|
+
quickCss: {
|
|
27
|
+
get: () => Promise<string>;
|
|
28
|
+
set: (css: string) => Promise<void>;
|
|
29
|
+
addChangeListener(cb: (newCss: string) => void): void;
|
|
30
|
+
addThemeChangeListener(cb: () => void): void;
|
|
31
|
+
openFile: () => Promise<void>;
|
|
32
|
+
openEditor: () => Promise<void>;
|
|
33
|
+
};
|
|
34
|
+
native: {
|
|
35
|
+
getVersions: () => Partial<NodeJS.ProcessVersions>;
|
|
36
|
+
openExternal: (url: string) => Promise<void>;
|
|
37
|
+
};
|
|
38
|
+
pluginHelpers: Record<string, Record<string, (...args: any[]) => Promise<any>>>;
|
|
39
|
+
};
|
|
40
|
+
export default _default;
|
package/api/Badges.d.ts
CHANGED
|
@@ -1,62 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
type: string;
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
verified: boolean;
|
|
52
|
-
}
|
|
53
|
-
interface Profile {
|
|
54
|
-
connectedAccounts: ConnectedAccount[];
|
|
55
|
-
premiumType: number;
|
|
56
|
-
premiumSince: string;
|
|
57
|
-
premiumGuildSince?: any;
|
|
58
|
-
lastFetched: number;
|
|
59
|
-
profileFetchFailed: boolean;
|
|
60
|
-
application?: any;
|
|
61
|
-
}
|
|
62
|
-
export {};
|
|
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<HTMLButtonElement, MouseEvent>, props: BadgeUserArgs): void;
|
|
16
|
+
/** Should the user display this badge? */
|
|
17
|
+
shouldShow?(userInfo: BadgeUserArgs): boolean;
|
|
18
|
+
/** Optional props (e.g. style) for the badge, ignored for component badges */
|
|
19
|
+
props?: HTMLProps<HTMLImageElement>;
|
|
20
|
+
/** Insert at start or end? */
|
|
21
|
+
position?: BadgePosition;
|
|
22
|
+
/** The badge name to display, Discord uses this. Required for component badges */
|
|
23
|
+
key?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Allows dynamically returning multiple badges
|
|
26
|
+
*/
|
|
27
|
+
getBadges?(userInfo: BadgeUserArgs): ProfileBadge[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Register a new badge with the Badges API
|
|
31
|
+
* @param badge The badge to register
|
|
32
|
+
*/
|
|
33
|
+
export declare function addProfileBadge(badge: ProfileBadge): void;
|
|
34
|
+
/**
|
|
35
|
+
* Unregister a badge from the Badges API
|
|
36
|
+
* @param badge The badge to remove
|
|
37
|
+
*/
|
|
38
|
+
export declare function removeProfileBadge(badge: ProfileBadge): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Inject badges into the profile badges array.
|
|
41
|
+
* You probably don't need to use this.
|
|
42
|
+
*/
|
|
43
|
+
export declare function _getBadges(args: BadgeUserArgs): ProfileBadge[];
|
|
44
|
+
export interface BadgeUserArgs {
|
|
45
|
+
userId: string;
|
|
46
|
+
guildId: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import "./ChatButton.css";
|
|
2
|
+
import { Channel } from "discord-types/general";
|
|
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">;
|
|
74
|
+
}
|
|
75
|
+
export declare const ChatBarButton: import("react").FunctionComponent<ChatBarButtonProps>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Message } from "discord-types/general";
|
|
2
|
-
import type { PartialDeep } from "type-fest";
|
|
3
|
-
import { Argument } from "./types";
|
|
4
|
-
export declare function generateId(): string;
|
|
5
|
-
/**
|
|
6
|
-
* Send a message as Clyde
|
|
7
|
-
* @param {string} channelId ID of channel to send message to
|
|
8
|
-
* @param {Message} message Message to send
|
|
9
|
-
* @returns {Message}
|
|
10
|
-
*/
|
|
11
|
-
export declare function sendBotMessage(channelId: string, message: PartialDeep<Message>): Message;
|
|
12
|
-
/**
|
|
13
|
-
* Get the value of an option by name
|
|
14
|
-
* @param args Arguments array (first argument passed to execute)
|
|
15
|
-
* @param name Name of the argument
|
|
16
|
-
* @param fallbackValue Fallback value in case this option wasn't passed
|
|
17
|
-
* @returns Value
|
|
18
|
-
*/
|
|
19
|
-
export declare function findOption<T>(args: Argument[], name: string): T & {} | undefined;
|
|
20
|
-
export declare function findOption<T>(args: Argument[], name: string, fallbackValue: T): T & {};
|
|
1
|
+
import { Message } from "discord-types/general";
|
|
2
|
+
import type { PartialDeep } from "type-fest";
|
|
3
|
+
import { Argument } from "./types";
|
|
4
|
+
export declare function generateId(): string;
|
|
5
|
+
/**
|
|
6
|
+
* Send a message as Clyde
|
|
7
|
+
* @param {string} channelId ID of channel to send message to
|
|
8
|
+
* @param {Message} message Message to send
|
|
9
|
+
* @returns {Message}
|
|
10
|
+
*/
|
|
11
|
+
export declare function sendBotMessage(channelId: string, message: PartialDeep<Message>): Message;
|
|
12
|
+
/**
|
|
13
|
+
* Get the value of an option by name
|
|
14
|
+
* @param args Arguments array (first argument passed to execute)
|
|
15
|
+
* @param name Name of the argument
|
|
16
|
+
* @param fallbackValue Fallback value in case this option wasn't passed
|
|
17
|
+
* @returns Value
|
|
18
|
+
*/
|
|
19
|
+
export declare function findOption<T>(args: Argument[], name: string): T & {} | undefined;
|
|
20
|
+
export declare function findOption<T>(args: Argument[], name: string, fallbackValue: T): T & {};
|
package/api/Commands/index.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Command, Option } from "./types";
|
|
2
|
-
export * from "./commandHelpers";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
export declare let BUILT_IN: Command[];
|
|
5
|
-
export declare const commands: Record<string, Command>;
|
|
6
|
-
/**
|
|
7
|
-
* Optional message option named "message" you can use in commands.
|
|
8
|
-
* Used in "tableflip" or "shrug"
|
|
9
|
-
* @see {@link RequiredMessageOption}
|
|
10
|
-
*/
|
|
11
|
-
export declare let OptionalMessageOption: Option;
|
|
12
|
-
/**
|
|
13
|
-
* Required message option named "message" you can use in commands.
|
|
14
|
-
* Used in "me"
|
|
15
|
-
* @see {@link OptionalMessageOption}
|
|
16
|
-
*/
|
|
17
|
-
export declare let RequiredMessageOption: Option;
|
|
18
|
-
export declare const _init: never;
|
|
19
|
-
export declare const _handleCommand: never;
|
|
20
|
-
/**
|
|
21
|
-
* Prepare a Command Option for Discord by filling missing fields
|
|
22
|
-
* @param opt
|
|
23
|
-
*/
|
|
24
|
-
export declare function prepareOption<O extends Option | Command>(opt: O): O;
|
|
25
|
-
export declare function registerCommand<C extends Command>(command: C, plugin: string): void;
|
|
26
|
-
export declare function unregisterCommand(name: string): boolean;
|
|
1
|
+
import { Command, Option } from "./types";
|
|
2
|
+
export * from "./commandHelpers";
|
|
3
|
+
export * from "./types";
|
|
4
|
+
export declare let BUILT_IN: Command[];
|
|
5
|
+
export declare const commands: Record<string, Command>;
|
|
6
|
+
/**
|
|
7
|
+
* Optional message option named "message" you can use in commands.
|
|
8
|
+
* Used in "tableflip" or "shrug"
|
|
9
|
+
* @see {@link RequiredMessageOption}
|
|
10
|
+
*/
|
|
11
|
+
export declare let OptionalMessageOption: Option;
|
|
12
|
+
/**
|
|
13
|
+
* Required message option named "message" you can use in commands.
|
|
14
|
+
* Used in "me"
|
|
15
|
+
* @see {@link OptionalMessageOption}
|
|
16
|
+
*/
|
|
17
|
+
export declare let RequiredMessageOption: Option;
|
|
18
|
+
export declare const _init: never;
|
|
19
|
+
export declare const _handleCommand: never;
|
|
20
|
+
/**
|
|
21
|
+
* Prepare a Command Option for Discord by filling missing fields
|
|
22
|
+
* @param opt
|
|
23
|
+
*/
|
|
24
|
+
export declare function prepareOption<O extends Option | Command>(opt: O): O;
|
|
25
|
+
export declare function registerCommand<C extends Command>(command: C, plugin: string): void;
|
|
26
|
+
export declare function unregisterCommand(name: string): boolean;
|
package/api/Commands/types.d.ts
CHANGED
|
@@ -1,74 +1,76 @@
|
|
|
1
|
-
import { Channel, Guild } from "discord-types/general";
|
|
2
|
-
import { Promisable } from "type-fest";
|
|
3
|
-
export interface CommandContext {
|
|
4
|
-
channel: Channel;
|
|
5
|
-
guild?: Guild;
|
|
6
|
-
}
|
|
7
|
-
export declare enum ApplicationCommandOptionType {
|
|
8
|
-
SUB_COMMAND = 1,
|
|
9
|
-
SUB_COMMAND_GROUP = 2,
|
|
10
|
-
STRING = 3,
|
|
11
|
-
INTEGER = 4,
|
|
12
|
-
BOOLEAN = 5,
|
|
13
|
-
USER = 6,
|
|
14
|
-
CHANNEL = 7,
|
|
15
|
-
ROLE = 8,
|
|
16
|
-
MENTIONABLE = 9,
|
|
17
|
-
NUMBER = 10,
|
|
18
|
-
ATTACHMENT = 11
|
|
19
|
-
}
|
|
20
|
-
export declare enum ApplicationCommandInputType {
|
|
21
|
-
BUILT_IN = 0,
|
|
22
|
-
BUILT_IN_TEXT = 1,
|
|
23
|
-
BUILT_IN_INTEGRATION = 2,
|
|
24
|
-
BOT = 3,
|
|
25
|
-
PLACEHOLDER = 4
|
|
26
|
-
}
|
|
27
|
-
export interface Option {
|
|
28
|
-
name: string;
|
|
29
|
-
displayName?: string;
|
|
30
|
-
type: ApplicationCommandOptionType;
|
|
31
|
-
description: string;
|
|
32
|
-
displayDescription?: string;
|
|
33
|
-
required?: boolean;
|
|
34
|
-
options?: Option[];
|
|
35
|
-
choices?: Array<ChoicesOption>;
|
|
36
|
-
}
|
|
37
|
-
export interface ChoicesOption {
|
|
38
|
-
label: string;
|
|
39
|
-
value: string;
|
|
40
|
-
name: string;
|
|
41
|
-
displayName?: string;
|
|
42
|
-
}
|
|
43
|
-
export declare enum ApplicationCommandType {
|
|
44
|
-
CHAT_INPUT = 1,
|
|
45
|
-
USER = 2,
|
|
46
|
-
MESSAGE = 3
|
|
47
|
-
}
|
|
48
|
-
export interface CommandReturnValue {
|
|
49
|
-
content: string;
|
|
50
|
-
/** TODO: implement */
|
|
51
|
-
cancel?: boolean;
|
|
52
|
-
}
|
|
53
|
-
export interface Argument {
|
|
54
|
-
type: ApplicationCommandOptionType;
|
|
55
|
-
name: string;
|
|
56
|
-
value: string;
|
|
57
|
-
focused: undefined;
|
|
58
|
-
options: Argument[];
|
|
59
|
-
}
|
|
60
|
-
export interface Command {
|
|
61
|
-
id?: string;
|
|
62
|
-
applicationId?: string;
|
|
63
|
-
type?: ApplicationCommandType;
|
|
64
|
-
inputType?: ApplicationCommandInputType;
|
|
65
|
-
plugin?: string;
|
|
66
|
-
isVencordCommand?: boolean;
|
|
67
|
-
name: string;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
import { Channel, Guild } from "discord-types/general";
|
|
2
|
+
import { Promisable } from "type-fest";
|
|
3
|
+
export interface CommandContext {
|
|
4
|
+
channel: Channel;
|
|
5
|
+
guild?: Guild;
|
|
6
|
+
}
|
|
7
|
+
export declare const enum ApplicationCommandOptionType {
|
|
8
|
+
SUB_COMMAND = 1,
|
|
9
|
+
SUB_COMMAND_GROUP = 2,
|
|
10
|
+
STRING = 3,
|
|
11
|
+
INTEGER = 4,
|
|
12
|
+
BOOLEAN = 5,
|
|
13
|
+
USER = 6,
|
|
14
|
+
CHANNEL = 7,
|
|
15
|
+
ROLE = 8,
|
|
16
|
+
MENTIONABLE = 9,
|
|
17
|
+
NUMBER = 10,
|
|
18
|
+
ATTACHMENT = 11
|
|
19
|
+
}
|
|
20
|
+
export declare const enum ApplicationCommandInputType {
|
|
21
|
+
BUILT_IN = 0,
|
|
22
|
+
BUILT_IN_TEXT = 1,
|
|
23
|
+
BUILT_IN_INTEGRATION = 2,
|
|
24
|
+
BOT = 3,
|
|
25
|
+
PLACEHOLDER = 4
|
|
26
|
+
}
|
|
27
|
+
export interface Option {
|
|
28
|
+
name: string;
|
|
29
|
+
displayName?: string;
|
|
30
|
+
type: ApplicationCommandOptionType;
|
|
31
|
+
description: string;
|
|
32
|
+
displayDescription?: string;
|
|
33
|
+
required?: boolean;
|
|
34
|
+
options?: Option[];
|
|
35
|
+
choices?: Array<ChoicesOption>;
|
|
36
|
+
}
|
|
37
|
+
export interface ChoicesOption {
|
|
38
|
+
label: string;
|
|
39
|
+
value: string;
|
|
40
|
+
name: string;
|
|
41
|
+
displayName?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const enum ApplicationCommandType {
|
|
44
|
+
CHAT_INPUT = 1,
|
|
45
|
+
USER = 2,
|
|
46
|
+
MESSAGE = 3
|
|
47
|
+
}
|
|
48
|
+
export interface CommandReturnValue {
|
|
49
|
+
content: string;
|
|
50
|
+
/** TODO: implement */
|
|
51
|
+
cancel?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface Argument {
|
|
54
|
+
type: ApplicationCommandOptionType;
|
|
55
|
+
name: string;
|
|
56
|
+
value: string;
|
|
57
|
+
focused: undefined;
|
|
58
|
+
options: Argument[];
|
|
59
|
+
}
|
|
60
|
+
export interface Command {
|
|
61
|
+
id?: string;
|
|
62
|
+
applicationId?: string;
|
|
63
|
+
type?: ApplicationCommandType;
|
|
64
|
+
inputType?: ApplicationCommandInputType;
|
|
65
|
+
plugin?: string;
|
|
66
|
+
isVencordCommand?: boolean;
|
|
67
|
+
name: string;
|
|
68
|
+
untranslatedName?: string;
|
|
69
|
+
displayName?: string;
|
|
70
|
+
description: string;
|
|
71
|
+
untranslatedDescription?: string;
|
|
72
|
+
displayDescription?: string;
|
|
73
|
+
options?: Option[];
|
|
74
|
+
predicate?(ctx: CommandContext): boolean;
|
|
75
|
+
execute(args: Argument[], ctx: CommandContext): Promisable<void | CommandReturnValue>;
|
|
76
|
+
}
|