@vencord/types 1.11.5 → 1.13.1

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.
Files changed (327) hide show
  1. package/Vencord.d.ts +1 -0
  2. package/api/Badges.d.ts +3 -1
  3. package/api/ChatButtons.d.ts +1 -1
  4. package/api/Commands/commandHelpers.d.ts +3 -4
  5. package/api/Commands/index.d.ts +8 -7
  6. package/api/Commands/types.d.ts +3 -74
  7. package/api/MemberListDecorators.d.ts +7 -19
  8. package/api/MessageDecorations.d.ts +1 -1
  9. package/api/MessageEvents.d.ts +5 -29
  10. package/api/MessagePopover.d.ts +1 -1
  11. package/api/MessageUpdater.d.ts +1 -1
  12. package/api/Notices.d.ts +2 -1
  13. package/components/ErrorBoundary.d.ts +3 -2
  14. package/components/FormDivider.d.ts +4 -0
  15. package/components/FormSwitch.d.ts +14 -0
  16. package/components/index.d.ts +4 -2
  17. package/components/{VencordSettings → settings}/AddonCard.d.ts +1 -1
  18. package/components/{DonateButton.d.ts → settings/DonateButton.d.ts} +1 -1
  19. package/components/{Badge.d.ts → settings/PluginBadge.d.ts} +1 -1
  20. package/components/{VencordSettings/quickActions.d.ts → settings/QuickAction.d.ts} +1 -1
  21. package/components/{VencordSettings → settings}/SpecialCard.d.ts +1 -1
  22. package/components/settings/index.d.ts +7 -0
  23. package/components/{VencordSettings/shared.d.ts → settings/tabs/BaseTab.d.ts} +1 -3
  24. package/components/settings/tabs/index.d.ts +11 -0
  25. package/components/settings/tabs/patchHelper/FullPatchInput.d.ts +8 -0
  26. package/components/settings/tabs/patchHelper/PatchPreview.d.ts +9 -0
  27. package/components/settings/tabs/patchHelper/ReplacementInput.d.ts +5 -0
  28. package/components/settings/tabs/plugins/ContributorModal.d.ts +3 -0
  29. package/components/settings/tabs/plugins/PluginCard.d.ts +10 -0
  30. package/components/{PluginSettings → settings/tabs/plugins}/PluginModal.d.ts +4 -4
  31. package/components/settings/tabs/plugins/components/BooleanSetting.d.ts +3 -0
  32. package/components/settings/tabs/plugins/components/Common.d.ts +24 -0
  33. package/components/settings/tabs/plugins/components/ComponentSetting.d.ts +3 -0
  34. package/components/settings/tabs/plugins/components/NumberSetting.d.ts +3 -0
  35. package/components/settings/tabs/plugins/components/SelectSetting.d.ts +3 -0
  36. package/components/settings/tabs/plugins/components/SliderSetting.d.ts +3 -0
  37. package/components/settings/tabs/plugins/components/TextSetting.d.ts +3 -0
  38. package/components/settings/tabs/plugins/components/index.d.ts +5 -0
  39. package/components/settings/tabs/plugins/index.d.ts +6 -0
  40. package/components/settings/tabs/themes/CspErrorCard.d.ts +1 -0
  41. package/components/settings/tabs/themes/LocalThemesTab.d.ts +1 -0
  42. package/components/settings/tabs/themes/OnlineThemesTab.d.ts +1 -0
  43. package/components/settings/tabs/themes/ThemeCard.d.ts +9 -0
  44. package/components/{VencordSettings/ThemesTab.d.ts → settings/tabs/themes/index.d.ts} +1 -0
  45. package/components/settings/tabs/updater/Components.d.ts +15 -0
  46. package/components/settings/tabs/updater/runWithDispatch.d.ts +1 -0
  47. package/components/settings/tabs/vencord/DonateButton.d.ts +2 -0
  48. package/components/settings/tabs/vencord/MacVibrancySettings.d.ts +1 -0
  49. package/components/settings/tabs/vencord/NotificationSettings.d.ts +2 -0
  50. package/modules.d.ts +1 -8
  51. package/package.json +5 -5
  52. package/plugins/_api/badges/index.d.ts +13 -6
  53. package/plugins/_api/chatButtons.d.ts +2 -2
  54. package/plugins/_api/commands.d.ts +1 -1
  55. package/plugins/_api/contextMenu.d.ts +1 -1
  56. package/plugins/_api/dynamicImageModalApi.d.ts +2 -2
  57. package/plugins/_api/memberListDecorators/index.d.ts +1 -1
  58. package/plugins/_api/menuItemDemangler.d.ts +1 -1
  59. package/plugins/_api/messageAccessories.d.ts +1 -1
  60. package/plugins/_api/messageDecorations/index.d.ts +1 -1
  61. package/plugins/_api/messageEvents.d.ts +1 -1
  62. package/plugins/_api/messagePopover.d.ts +1 -1
  63. package/plugins/_api/messageUpdater.d.ts +1 -1
  64. package/plugins/_api/notices.d.ts +12 -3
  65. package/plugins/_api/serverList.d.ts +1 -1
  66. package/plugins/_api/userSettings.d.ts +1 -1
  67. package/plugins/_core/noTrack.d.ts +4 -1
  68. package/plugins/_core/settings.d.ts +2 -2
  69. package/plugins/_core/supportHelper.d.ts +3 -3
  70. package/plugins/accountPanelServerProfile/index.d.ts +6 -6
  71. package/plugins/alwaysAnimate/index.d.ts +1 -9
  72. package/plugins/alwaysExpandRoles/index.d.ts +1 -1
  73. package/plugins/alwaysTrust/index.d.ts +1 -1
  74. package/plugins/anonymiseFileNames/index.d.ts +18 -17
  75. package/plugins/appleMusic.desktop/index.d.ts +29 -28
  76. package/plugins/arRPC.web/index.d.ts +2 -1
  77. package/plugins/{partyMode → autoDndWhilePlaying.discordDesktop}/index.d.ts +17 -27
  78. package/plugins/betterFolders/index.d.ts +31 -9
  79. package/plugins/betterGifAltText/index.d.ts +1 -1
  80. package/plugins/betterGifPicker/index.d.ts +1 -1
  81. package/plugins/betterNotes/index.d.ts +1 -1
  82. package/plugins/betterRoleContext/index.d.ts +1 -1
  83. package/plugins/betterRoleDot/index.d.ts +1 -1
  84. package/plugins/betterSessions/components/icons.d.ts +1 -1
  85. package/plugins/betterSessions/index.d.ts +1 -1
  86. package/plugins/betterSessions/utils.d.ts +1 -1
  87. package/plugins/betterSettings/index.d.ts +2 -2
  88. package/plugins/betterUploadButton/index.d.ts +9 -2
  89. package/plugins/biggerStreamPreview/index.d.ts +2 -2
  90. package/plugins/biggerStreamPreview/webpack/types/stores.d.ts +1 -1
  91. package/plugins/blurNsfw/index.d.ts +1 -1
  92. package/plugins/callTimer/index.d.ts +2 -1
  93. package/plugins/clearURLs/index.d.ts +13 -6
  94. package/plugins/clientTheme/components/Settings.d.ts +2 -0
  95. package/plugins/clientTheme/index.d.ts +30 -8
  96. package/plugins/clientTheme/utils/colorUtils.d.ts +6 -0
  97. package/plugins/clientTheme/utils/styleUtils.d.ts +3 -0
  98. package/plugins/colorSighted/index.d.ts +1 -1
  99. package/plugins/consoleJanitor/index.d.ts +21 -2
  100. package/plugins/consoleShortcuts/index.d.ts +2 -2
  101. package/plugins/copyEmojiMarkdown/index.d.ts +1 -1
  102. package/plugins/copyFileContents/index.d.ts +1 -1
  103. package/plugins/copyStickerLinks/index.d.ts +14 -0
  104. package/plugins/copyUserURLs/index.d.ts +1 -1
  105. package/plugins/crashHandler/index.d.ts +1 -1
  106. package/plugins/ctrlEnterSend/index.d.ts +3 -9
  107. package/plugins/{customidle → customIdle}/index.d.ts +1 -2
  108. package/plugins/customRPC/index.d.ts +3 -9
  109. package/plugins/dearrow/index.d.ts +1 -1
  110. package/plugins/decor/index.d.ts +1 -1
  111. package/plugins/decor/lib/stores/UsersDecorationsStore.d.ts +1 -1
  112. package/plugins/decor/ui/components/index.d.ts +1 -1
  113. package/plugins/devCompanion.dev/index.d.ts +1 -1
  114. package/plugins/disableCallIdle/index.d.ts +1 -1
  115. package/plugins/dontRoundMyTimestamps/index.d.ts +1 -1
  116. package/plugins/experiments/index.d.ts +8 -1
  117. package/plugins/{emoteCloner → expressionCloner}/index.d.ts +1 -1
  118. package/plugins/f8break/index.d.ts +1 -1
  119. package/plugins/fakeNitro/index.d.ts +3 -4
  120. package/plugins/fakeProfileThemes/index.d.ts +4 -6
  121. package/plugins/favEmojiFirst/index.d.ts +2 -2
  122. package/plugins/favGifSearch/index.d.ts +4 -6
  123. package/plugins/fixCodeblockGap/index.d.ts +1 -1
  124. package/plugins/fixImagesQuality/index.d.ts +1 -1
  125. package/plugins/fixSpotifyEmbeds.desktop/index.d.ts +1 -1
  126. package/plugins/fixYoutubeEmbeds.desktop/index.d.ts +1 -1
  127. package/plugins/forceOwnerCrown/index.d.ts +2 -2
  128. package/plugins/friendInvites/index.d.ts +2 -2
  129. package/plugins/friendsSince/index.d.ts +1 -1
  130. package/plugins/fullSearchContext/index.d.ts +2 -2
  131. package/plugins/fullUserInChatbox/index.d.ts +1 -1
  132. package/plugins/gameActivityToggle/index.d.ts +4 -2
  133. package/plugins/gifPaste/index.d.ts +1 -1
  134. package/plugins/greetStickerPicker/index.d.ts +2 -2
  135. package/plugins/hideAttachments/index.d.ts +5 -4
  136. package/plugins/iLoveSpam/index.d.ts +1 -1
  137. package/plugins/ignoreActivities/index.d.ts +10 -2
  138. package/plugins/{banger → imageFilename}/index.d.ts +9 -11
  139. package/plugins/imageLink/index.d.ts +1 -1
  140. package/plugins/imageZoom/index.d.ts +3 -3
  141. package/plugins/implicitRelationships/index.d.ts +1 -1
  142. package/plugins/invisibleChat.desktop/index.d.ts +4 -3
  143. package/plugins/ircColors/index.d.ts +16 -2
  144. package/plugins/keepCurrentChannel/index.d.ts +1 -1
  145. package/plugins/{lastfm → lastfmRichPresence}/index.d.ts +28 -23
  146. package/plugins/loadingQuotes/index.d.ts +1 -1
  147. package/plugins/memberCount/CircleIcon.d.ts +3 -0
  148. package/plugins/memberCount/OnlineMemberCountStore.d.ts +11 -9
  149. package/plugins/memberCount/VoiceIcon.d.ts +3 -0
  150. package/plugins/memberCount/index.d.ts +59 -8
  151. package/plugins/mentionAvatars/index.d.ts +2 -2
  152. package/plugins/messageClickActions/index.d.ts +2 -2
  153. package/plugins/messageLatency/index.d.ts +7 -2
  154. package/plugins/messageLinkEmbeds/index.d.ts +1 -1
  155. package/plugins/messageLogger/index.d.ts +9 -2
  156. package/plugins/messageTags/index.d.ts +2 -2
  157. package/plugins/mutualGroupDMs/index.d.ts +3 -2
  158. package/plugins/newGuildSettings/index.d.ts +1 -1
  159. package/plugins/noBlockedMessages/index.d.ts +3 -3
  160. package/plugins/{nsfwGateBypass → noDeepLinks.web}/index.d.ts +4 -2
  161. package/plugins/noDevtoolsWarning/index.d.ts +1 -1
  162. package/plugins/noF1/index.d.ts +1 -1
  163. package/plugins/noMaskedUrlPaste/index.d.ts +1 -1
  164. package/plugins/noMosaic/index.d.ts +1 -1
  165. package/plugins/noOnboardingDelay/index.d.ts +1 -1
  166. package/plugins/noPendingCount/index.d.ts +10 -3
  167. package/plugins/noProfileThemes/index.d.ts +1 -1
  168. package/plugins/noReplyMention/index.d.ts +12 -2
  169. package/plugins/noServerEmojis/index.d.ts +1 -1
  170. package/plugins/noSystemBadge.discordDesktop/index.d.ts +1 -1
  171. package/plugins/noTypingAnimation/index.d.ts +2 -2
  172. package/plugins/noUnblockToJump/index.d.ts +2 -2
  173. package/plugins/normalizeMessageLinks/index.d.ts +1 -1
  174. package/plugins/notificationVolume/index.d.ts +1 -1
  175. package/plugins/onePingPerDM/index.d.ts +2 -2
  176. package/plugins/oneko/index.d.ts +1 -1
  177. package/plugins/openInApp/index.d.ts +3 -7
  178. package/plugins/overrideForumDefaults/index.d.ts +1 -1
  179. package/plugins/pauseInvitesForever/index.d.ts +1 -1
  180. package/plugins/permissionFreeWill/index.d.ts +1 -1
  181. package/plugins/permissionsViewer/components/RolesAndUsersPermissions.d.ts +1 -1
  182. package/plugins/permissionsViewer/components/UserPermissions.d.ts +1 -1
  183. package/plugins/permissionsViewer/index.d.ts +2 -2
  184. package/plugins/permissionsViewer/utils.d.ts +2 -2
  185. package/plugins/petpet/index.d.ts +4 -3
  186. package/plugins/pictureInPicture/index.d.ts +1 -1
  187. package/plugins/pinDms/index.d.ts +2 -2
  188. package/plugins/plainFolderIcon/index.d.ts +3 -2
  189. package/plugins/platformIndicators/index.d.ts +1 -1
  190. package/plugins/previewMessage/index.d.ts +1 -1
  191. package/plugins/quickMention/index.d.ts +4 -4
  192. package/plugins/quickReply/index.d.ts +14 -3
  193. package/plugins/reactErrorDecoder/index.d.ts +3 -3
  194. package/plugins/readAllNotificationsButton/index.d.ts +1 -1
  195. package/plugins/relationshipNotifier/index.d.ts +1 -1
  196. package/plugins/relationshipNotifier/types.d.ts +1 -4
  197. package/plugins/relationshipNotifier/utils.d.ts +1 -1
  198. package/plugins/replaceGoogleSearch/index.d.ts +1 -1
  199. package/plugins/replyTimestamp/index.d.ts +2 -2
  200. package/plugins/revealAllSpoilers/index.d.ts +1 -1
  201. package/plugins/reverseImageSearch/index.d.ts +1 -1
  202. package/plugins/reviewDB/components/ReviewComponent.d.ts +2 -2
  203. package/plugins/reviewDB/index.d.ts +2 -2
  204. package/plugins/roleColorEverywhere/index.d.ts +1 -1
  205. package/plugins/secretRingTone/index.d.ts +1 -1
  206. package/plugins/seeSummaries/index.d.ts +1 -1
  207. package/plugins/sendTimestamps/index.d.ts +1 -1
  208. package/plugins/serverInfo/GuildInfoModal.d.ts +1 -1
  209. package/plugins/serverInfo/index.d.ts +1 -1
  210. package/plugins/serverListIndicators/index.d.ts +1 -1
  211. package/plugins/shikiCodeblocks.desktop/api/languages.d.ts +3 -3
  212. package/plugins/shikiCodeblocks.desktop/components/ButtonRow.d.ts +1 -2
  213. package/plugins/shikiCodeblocks.desktop/components/Highlighter.d.ts +1 -2
  214. package/plugins/shikiCodeblocks.desktop/hooks/useShikiSettings.d.ts +2 -8
  215. package/plugins/shikiCodeblocks.desktop/index.d.ts +2 -4
  216. package/plugins/showAllMessageButtons/index.d.ts +1 -1
  217. package/plugins/showConnections/index.d.ts +2 -2
  218. package/plugins/showHiddenChannels/components/HiddenChannelLockScreen.d.ts +1 -1
  219. package/plugins/showHiddenChannels/index.d.ts +5 -4
  220. package/plugins/showHiddenThings/index.d.ts +5 -1
  221. package/plugins/showMeYourName/index.d.ts +30 -2
  222. package/plugins/showTimeoutDuration/index.d.ts +2 -2
  223. package/plugins/silentMessageToggle/index.d.ts +1 -1
  224. package/plugins/silentTyping/index.d.ts +2 -2
  225. package/plugins/sortFriendRequests/index.d.ts +2 -2
  226. package/plugins/spotifyControls/SeekBar.d.ts +31 -0
  227. package/plugins/spotifyControls/SpotifyStore.d.ts +11 -9
  228. package/plugins/spotifyControls/index.d.ts +1 -1
  229. package/plugins/spotifyCrack/index.d.ts +1 -1
  230. package/plugins/spotifyShareCommands/index.d.ts +3 -9
  231. package/plugins/startupTimings/index.d.ts +2 -2
  232. package/plugins/stickerPaste/index.d.ts +1 -1
  233. package/plugins/streamerModeOnStream/index.d.ts +1 -1
  234. package/plugins/superReactionTweaks/index.d.ts +10 -5
  235. package/plugins/textReplace/index.d.ts +1 -2
  236. package/plugins/themeAttributes/index.d.ts +3 -3
  237. package/plugins/translate/TranslationAccessory.d.ts +1 -1
  238. package/plugins/translate/index.d.ts +5 -4
  239. package/plugins/typingIndicator/index.d.ts +1 -1
  240. package/plugins/typingTweaks/index.d.ts +15 -13
  241. package/plugins/unindent/index.d.ts +1 -1
  242. package/plugins/unlockedAvatarZoom/index.d.ts +1 -1
  243. package/plugins/unsuppressEmbeds/index.d.ts +1 -1
  244. package/plugins/userMessagesPronouns/PronounsChatComponent.d.ts +1 -1
  245. package/plugins/userMessagesPronouns/index.d.ts +11 -5
  246. package/plugins/userVoiceShow/components.d.ts +1 -0
  247. package/plugins/userVoiceShow/index.d.ts +1 -1
  248. package/plugins/usrbg/index.d.ts +1 -1
  249. package/plugins/validReply/index.d.ts +2 -3
  250. package/plugins/validUser/index.d.ts +1 -1
  251. package/plugins/vcDoubleClick/index.d.ts +1 -1
  252. package/plugins/vcNarrator/VoiceSetting.d.ts +1 -0
  253. package/plugins/vcNarrator/index.d.ts +136 -9
  254. package/plugins/vcNarrator/settings.d.ts +135 -0
  255. package/plugins/vencordToolbox/index.d.ts +2 -5
  256. package/plugins/viewIcons/index.d.ts +2 -2
  257. package/plugins/viewRaw/index.d.ts +3 -3
  258. package/plugins/voiceDownload/index.d.ts +1 -1
  259. package/plugins/voiceMessages/index.d.ts +1 -1
  260. package/plugins/volumeBooster/index.d.ts +1 -1
  261. package/plugins/webContextMenus.web/index.d.ts +5 -3
  262. package/plugins/webKeybinds.web/index.d.ts +1 -1
  263. package/plugins/webScreenShareFixes.web/index.d.ts +6 -3
  264. package/plugins/whoReacted/index.d.ts +2 -3
  265. package/plugins/xsOverlay/index.d.ts +2 -2
  266. package/plugins/youtubeAdblock.desktop/index.d.ts +1 -1
  267. package/shared/IpcEvents.d.ts +13 -10
  268. package/utils/clipboard.d.ts +1 -0
  269. package/utils/cloud.d.ts +1 -0
  270. package/utils/constants.d.ts +19 -3
  271. package/utils/cspViolations.d.ts +2 -0
  272. package/utils/dependencies.d.ts +1 -1
  273. package/utils/discord.d.ts +25 -5
  274. package/utils/index.d.ts +2 -0
  275. package/utils/lazyReact.d.ts +5 -2
  276. package/utils/misc.d.ts +2 -1
  277. package/utils/modal.d.ts +10 -11
  278. package/utils/quickCss.d.ts +1 -1
  279. package/utils/react.d.ts +6 -1
  280. package/utils/types.d.ts +22 -26
  281. package/utils/web.d.ts +1 -0
  282. package/webpack/common/FormText.d.ts +2 -0
  283. package/webpack/common/classes.d.ts +1 -2
  284. package/webpack/common/components.d.ts +115 -54
  285. package/webpack/common/index.d.ts +0 -3
  286. package/webpack/common/internal.d.ts +2 -1
  287. package/webpack/common/menu.d.ts +1 -1
  288. package/webpack/common/react.d.ts +2 -1
  289. package/webpack/common/stores.d.ts +16 -23
  290. package/webpack/common/utils.d.ts +5 -7
  291. package/webpack/index.d.ts +1 -1
  292. package/webpack/patchWebpack.d.ts +1 -1
  293. package/webpack/types.d.ts +17 -0
  294. package/webpack/webpack.d.ts +9 -6
  295. package/VencordNative.d.ts +0 -40
  296. package/components/PluginSettings/ContributorModal.d.ts +0 -3
  297. package/components/PluginSettings/components/SettingBooleanComponent.d.ts +0 -3
  298. package/components/PluginSettings/components/SettingCustomComponent.d.ts +0 -3
  299. package/components/PluginSettings/components/SettingNumericComponent.d.ts +0 -3
  300. package/components/PluginSettings/components/SettingSelectComponent.d.ts +0 -3
  301. package/components/PluginSettings/components/SettingSliderComponent.d.ts +0 -4
  302. package/components/PluginSettings/components/SettingTextComponent.d.ts +0 -3
  303. package/components/PluginSettings/components/index.d.ts +0 -21
  304. package/components/PluginSettings/index.d.ts +0 -12
  305. package/components/VencordSettings/NotificationSettings.d.ts +0 -2
  306. package/components/VencordSettings/VencordTab.d.ts +0 -2
  307. package/plugins/clearURLs/defaultRules.d.ts +0 -1
  308. package/plugins/moreCommands/index.d.ts +0 -25
  309. package/plugins/moreKaomoji/index.d.ts +0 -17
  310. package/plugins/moyai/index.d.ts +0 -113
  311. package/plugins/noRPC.discordDesktop/index.d.ts +0 -16
  312. package/plugins/youtubeAdblock.desktop/adguard.d.ts +0 -54
  313. package/utils/apng-canvas.d.ts +0 -1
  314. package/webpack/common/types/classes.d.ts +0 -39
  315. package/webpack/common/types/components.d.ts +0 -506
  316. package/webpack/common/types/fluxEvents.d.ts +0 -40
  317. package/webpack/common/types/index.d.ts +0 -24
  318. package/webpack/common/types/menu.d.ts +0 -96
  319. package/webpack/common/types/stores.d.ts +0 -235
  320. package/webpack/common/types/utils.d.ts +0 -337
  321. package/webpack/wreq.d.ts +0 -238
  322. /package/components/{VencordSettings/PatchHelperTab.d.ts → settings/tabs/patchHelper/index.d.ts} +0 -0
  323. /package/components/{PluginSettings → settings/tabs/plugins}/LinkIconButton.d.ts +0 -0
  324. /package/components/{VencordSettings → settings/tabs/sync}/BackupAndRestoreTab.d.ts +0 -0
  325. /package/components/{VencordSettings → settings/tabs/sync}/CloudTab.d.ts +0 -0
  326. /package/components/{VencordSettings/UpdaterTab.d.ts → settings/tabs/updater/index.d.ts} +0 -0
  327. /package/components/{VencordSettings/PluginsTab.d.ts → settings/tabs/vencord/index.d.ts} +0 -0
package/Vencord.d.ts CHANGED
@@ -15,6 +15,7 @@
15
15
  * You should have received a copy of the GNU General Public License
16
16
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17
17
  */
18
+ import "~plugins";
18
19
  export * as Api from "./api";
19
20
  export * as Components from "./components";
20
21
  export * as Plugins from "./plugins";
package/api/Badges.d.ts CHANGED
@@ -12,7 +12,9 @@ export interface ProfileBadge {
12
12
  image?: string;
13
13
  link?: string;
14
14
  /** Action to perform when you click the badge */
15
- onClick?(event: React.MouseEvent<HTMLButtonElement, MouseEvent>, props: BadgeUserArgs): void;
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;
16
18
  /** Should the user display this badge? */
17
19
  shouldShow?(userInfo: BadgeUserArgs): boolean;
18
20
  /** Optional props (e.g. style) for the badge, ignored for component badges */
@@ -1,5 +1,5 @@
1
1
  import "./ChatButton.css";
2
- import { Channel } from "discord-types/general";
2
+ import { Channel } from "@vencord/discord-types";
3
3
  import { HTMLProps, JSX, MouseEventHandler, ReactNode } from "react";
4
4
  export interface ChatBarProps {
5
5
  channel: Channel;
@@ -1,6 +1,5 @@
1
- import { Message } from "discord-types/general";
1
+ import { CommandArgument, Message } from "@vencord/discord-types";
2
2
  import type { PartialDeep } from "type-fest";
3
- import { Argument } from "./types";
4
3
  export declare function generateId(): string;
5
4
  /**
6
5
  * Send a message as Clyde
@@ -16,5 +15,5 @@ export declare function sendBotMessage(channelId: string, message: PartialDeep<M
16
15
  * @param fallbackValue Fallback value in case this option wasn't passed
17
16
  * @returns Value
18
17
  */
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 & {};
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 & {};
@@ -1,26 +1,27 @@
1
- import { Command, Option } from "./types";
1
+ import { CommandOption } from "@vencord/discord-types";
2
+ import { VencordCommand } from "./types";
2
3
  export * from "./commandHelpers";
3
4
  export * from "./types";
4
- export declare let BUILT_IN: Command[];
5
- export declare const commands: Record<string, Command>;
5
+ export declare let BUILT_IN: VencordCommand[];
6
+ export declare const commands: Record<string, VencordCommand>;
6
7
  /**
7
8
  * Optional message option named "message" you can use in commands.
8
9
  * Used in "tableflip" or "shrug"
9
10
  * @see {@link RequiredMessageOption}
10
11
  */
11
- export declare let OptionalMessageOption: Option;
12
+ export declare let OptionalMessageOption: CommandOption;
12
13
  /**
13
14
  * Required message option named "message" you can use in commands.
14
15
  * Used in "me"
15
16
  * @see {@link OptionalMessageOption}
16
17
  */
17
- export declare let RequiredMessageOption: Option;
18
+ export declare let RequiredMessageOption: CommandOption;
18
19
  export declare const _init: never;
19
20
  export declare const _handleCommand: never;
20
21
  /**
21
22
  * Prepare a Command Option for Discord by filling missing fields
22
23
  * @param opt
23
24
  */
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;
25
+ export declare function prepareOption<O extends CommandOption | VencordCommand>(opt: O): O;
26
+ export declare function registerCommand<C extends VencordCommand>(command: C, plugin: string): void;
26
27
  export declare function unregisterCommand(name: string): boolean;
@@ -1,76 +1,5 @@
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;
1
+ import { Command } from "@vencord/discord-types";
2
+ export { ApplicationCommandInputType, ApplicationCommandOptionType, ApplicationCommandType } from "@vencord/discord-types/enums";
3
+ export interface VencordCommand extends Command {
66
4
  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
5
  }
@@ -1,24 +1,12 @@
1
- import { Channel, User } from "discord-types/general/index.js";
1
+ import { Channel, User } from "@vencord/discord-types";
2
2
  import { JSX } from "react";
3
3
  interface DecoratorProps {
4
- activities: any[];
5
- channel: Channel;
6
- /**
7
- * Only for DM members
8
- */
9
- channelName?: string;
10
- /**
11
- * Only for server members
12
- */
13
- currentUser?: User;
14
- guildId?: string;
15
- isMobile: boolean;
16
- isOwner?: boolean;
17
- isTyping: boolean;
18
- selected: boolean;
19
- status: string;
4
+ type: "guild" | "dm";
20
5
  user: User;
21
- [key: string]: any;
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;
22
10
  }
23
11
  export type MemberListDecoratorFactory = (props: DecoratorProps) => JSX.Element | null;
24
12
  type OnlyIn = "guilds" | "dms";
@@ -28,5 +16,5 @@ export declare const decoratorsFactories: Map<string, {
28
16
  }>;
29
17
  export declare function addMemberListDecorator(identifier: string, render: MemberListDecoratorFactory, onlyIn?: OnlyIn): void;
30
18
  export declare function removeMemberListDecorator(identifier: string): void;
31
- export declare function __getDecorators(props: DecoratorProps): JSX.Element;
19
+ export declare function __getDecorators(props: DecoratorProps, type: "guild" | "dm"): JSX.Element;
32
20
  export {};
@@ -1,4 +1,4 @@
1
- import { Channel, Message } from "discord-types/general/index.js";
1
+ import { Channel, Message } from "@vencord/discord-types";
2
2
  import { JSX } from "react";
3
3
  export interface MessageDecorationProps {
4
4
  author: {
@@ -1,5 +1,4 @@
1
- import { CustomEmoji } from "../webpack/common/types";
2
- import type { Channel, Message } from "discord-types/general";
1
+ import type { Channel, CloudUpload, CustomEmoji, Message } from "@vencord/discord-types";
3
2
  import type { Promisable } from "type-fest";
4
3
  export interface MessageObject {
5
4
  content: string;
@@ -7,29 +6,6 @@ export interface MessageObject {
7
6
  invalidEmojis: any[];
8
7
  tts: boolean;
9
8
  }
10
- export interface Upload {
11
- classification: string;
12
- currentSize: number;
13
- description: string | null;
14
- filename: string;
15
- id: string;
16
- isImage: boolean;
17
- isVideo: boolean;
18
- item: {
19
- file: File;
20
- platform: number;
21
- };
22
- loaded: number;
23
- mimeType: string;
24
- preCompressionSize: number;
25
- responseUrl: string;
26
- sensitive: boolean;
27
- showLargeMessageDialog: boolean;
28
- spoiler: boolean;
29
- status: "NOT_STARTED" | "STARTED" | "UPLOADING" | "ERROR" | "COMPLETED" | "CANCELLED";
30
- uniqueId: string;
31
- uploadedFilename: string;
32
- }
33
9
  export interface MessageReplyOptions {
34
10
  messageReference: Message["messageReference"];
35
11
  allowedMentions?: {
@@ -37,22 +13,22 @@ export interface MessageReplyOptions {
37
13
  repliedUser: boolean;
38
14
  };
39
15
  }
40
- export interface MessageExtra {
16
+ export interface MessageOptions {
41
17
  stickers?: string[];
42
- uploads?: Upload[];
18
+ uploads?: CloudUpload[];
43
19
  replyOptions: MessageReplyOptions;
44
20
  content: string;
45
21
  channel: Channel;
46
22
  type?: any;
47
23
  openWarningPopout: (props: any) => any;
48
24
  }
49
- export type MessageSendListener = (channelId: string, messageObj: MessageObject, extra: MessageExtra) => Promisable<void | {
25
+ export type MessageSendListener = (channelId: string, messageObj: MessageObject, options: MessageOptions) => Promisable<void | {
50
26
  cancel: boolean;
51
27
  }>;
52
28
  export type MessageEditListener = (channelId: string, messageId: string, messageObj: MessageObject) => Promisable<void | {
53
29
  cancel: boolean;
54
30
  }>;
55
- export declare function _handlePreSend(channelId: string, messageObj: MessageObject, extra: MessageExtra, replyOptions: MessageReplyOptions): Promise<boolean>;
31
+ export declare function _handlePreSend(channelId: string, messageObj: MessageObject, options: MessageOptions, replyOptions: MessageReplyOptions): Promise<boolean>;
56
32
  export declare function _handlePreEdit(channelId: string, messageId: string, messageObj: MessageObject): Promise<boolean>;
57
33
  /**
58
34
  * Note: This event fires off before a message is sent, allowing you to edit the message.
@@ -1,4 +1,4 @@
1
- import { Channel, Message } from "discord-types/general";
1
+ import { Channel, Message } from "@vencord/discord-types";
2
2
  import type { ComponentType, MouseEventHandler } from "react";
3
3
  export interface MessagePopoverButtonItem {
4
4
  key?: string;
@@ -1,4 +1,4 @@
1
- import { Message } from "discord-types/general";
1
+ import { Message } from "@vencord/discord-types";
2
2
  /**
3
3
  * Update and re-render a message
4
4
  * @param channelId The channel id of the message
package/api/Notices.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { ReactNode } from "react";
1
2
  export declare const noticesQueue: any[];
2
3
  export declare let currentNotice: any;
3
4
  export declare function popNotice(): void;
4
5
  export declare function nextNotice(): void;
5
- export declare function showNotice(message: string, buttonText: string, onOkClick: () => void): void;
6
+ export declare function showNotice(message: ReactNode, buttonText: string, onOkClick: () => void): void;
@@ -1,3 +1,4 @@
1
+ import { LazyComponentWrapper } from "../utils/lazyReact";
1
2
  interface Props<T = any> {
2
3
  /** Render nothing if an error occurs */
3
4
  noop?: boolean;
@@ -19,7 +20,7 @@ interface Props<T = any> {
19
20
  /** The props passed to the wrapped component. Only used by wrap */
20
21
  wrappedProps?: T;
21
22
  }
22
- declare const ErrorBoundary: React.ComponentType<React.PropsWithChildren<Props>> & {
23
+ declare const ErrorBoundary: LazyComponentWrapper<React.ComponentType<React.PropsWithChildren<Props>> & {
23
24
  wrap<T extends object = any>(Component: React.ComponentType<T>, errorBoundaryProps?: Omit<Props<T>, "wrappedProps">): React.FunctionComponent<T>;
24
- };
25
+ }>;
25
26
  export default ErrorBoundary;
@@ -0,0 +1,4 @@
1
+ import "./FormDivider.css";
2
+ export declare function FormDivider({ className }: {
3
+ className?: string;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import "./FormSwitch.css";
2
+ import type { PropsWithChildren, ReactNode } from "react";
3
+ export interface FormSwitchProps {
4
+ title: ReactNode;
5
+ description?: ReactNode;
6
+ value: boolean;
7
+ onChange(value: boolean): void;
8
+ className?: string;
9
+ disabled?: boolean;
10
+ hideBorder?: boolean;
11
+ }
12
+ export declare function FormSwitch({ onChange, title, value, description, disabled, className, hideBorder }: FormSwitchProps): import("react").JSX.Element;
13
+ /** Compatibility with Discord's old FormSwitch */
14
+ export declare function FormSwitchCompat(props: PropsWithChildren<any>): import("react").JSX.Element;
@@ -1,11 +1,13 @@
1
- export * from "./Badge";
2
1
  export * from "./CheckedTextInput";
3
2
  export * from "./CodeBlock";
4
- export * from "./DonateButton";
5
3
  export { default as ErrorBoundary } from "./ErrorBoundary";
6
4
  export * from "./ErrorCard";
7
5
  export * from "./Flex";
6
+ export * from "./FormDivider";
7
+ export * from "./FormSwitch";
8
+ export * from "./Grid";
8
9
  export * from "./Heart";
9
10
  export * from "./Icons";
10
11
  export * from "./Link";
12
+ export * from "./settings";
11
13
  export * from "./Switch";
@@ -1,4 +1,4 @@
1
- import "./addonCard.css";
1
+ import "./AddonCard.css";
2
2
  import type { MouseEventHandler, ReactNode } from "react";
3
3
  interface Props {
4
4
  name: ReactNode;
@@ -1,2 +1,2 @@
1
- import { ButtonProps } from "../webpack/common/types";
1
+ import { ButtonProps } from "@vencord/discord-types";
2
2
  export default function DonateButton({ look, color, ...props }: Partial<ButtonProps>): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare function Badge({ text, color }: {
1
+ export declare function AddonBadge({ text, color }: {
2
2
  text: any;
3
3
  color: any;
4
4
  }): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import "./quickActions.css";
1
+ import "./QuickAction.css";
2
2
  import type { ComponentType, PropsWithChildren, ReactNode } from "react";
3
3
  export interface QuickActionProps {
4
4
  Icon: ComponentType<{
@@ -1,4 +1,4 @@
1
- import "./specialCard.css";
1
+ import "./SpecialCard.css";
2
2
  import type { PropsWithChildren } from "react";
3
3
  interface StyledCardProps {
4
4
  title: string;
@@ -0,0 +1,7 @@
1
+ export * from "../Switch";
2
+ export * from "./AddonCard";
3
+ export * from "./DonateButton";
4
+ export * from "./PluginBadge";
5
+ export * from "./QuickAction";
6
+ export * from "./SpecialCard";
7
+ export * from "./tabs";
@@ -1,6 +1,4 @@
1
- import "./settingsStyles.css";
2
- import "./themesStyles.css";
3
- import { handleComponentFailed } from "../handleComponentFailed";
1
+ import { handleComponentFailed } from "../../handleComponentFailed";
4
2
  import type { ComponentType, PropsWithChildren } from "react";
5
3
  export declare function SettingsTab({ title, children }: PropsWithChildren<{
6
4
  title: string;
@@ -0,0 +1,11 @@
1
+ import "./styles.css";
2
+ export * from "./BaseTab";
3
+ export { default as PatchHelperTab } from "./patchHelper";
4
+ export { default as PluginsTab } from "./plugins";
5
+ export { openContributorModal } from "./plugins/ContributorModal";
6
+ export { openPluginModal } from "./plugins/PluginModal";
7
+ export { default as BackupAndRestoreTab } from "./sync/BackupAndRestoreTab";
8
+ export { default as CloudTab } from "./sync/CloudTab";
9
+ export { default as ThemesTab } from "./themes";
10
+ export { openUpdaterModal, default as UpdaterTab } from "./updater";
11
+ export { default as VencordTab } from "./vencord";
@@ -0,0 +1,8 @@
1
+ import { ReplaceFn } from "../../../../utils/types";
2
+ export interface FullPatchInputProps {
3
+ setFind(v: string): void;
4
+ setParsedFind(v: string | RegExp): void;
5
+ setMatch(v: string): void;
6
+ setReplacement(v: string | ReplaceFn): void;
7
+ }
8
+ export declare function FullPatchInput({ setFind, setParsedFind, setMatch, setReplacement }: FullPatchInputProps): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ReplaceFn } from "../../../../utils/types";
2
+ interface PatchPreviewProps {
3
+ module: [id: number, factory: Function];
4
+ match: string;
5
+ replacement: string | ReplaceFn;
6
+ setReplacementError(error: any): void;
7
+ }
8
+ export declare function PatchPreview({ module, match, replacement, setReplacementError }: PatchPreviewProps): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare function ReplacementInput({ replacement, setReplacement, replacementError }: {
2
+ replacement: any;
3
+ setReplacement: any;
4
+ replacementError: any;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import "./ContributorModal.css";
2
+ import { User } from "@vencord/discord-types";
3
+ export declare function openContributorModal(user: User): void;
@@ -0,0 +1,10 @@
1
+ import { Plugin } from "../../../../utils/types";
2
+ export declare const ButtonClasses: any;
3
+ interface PluginCardProps extends React.HTMLProps<HTMLDivElement> {
4
+ plugin: Plugin;
5
+ disabled: boolean;
6
+ onRestartNeeded(name: string, key: string): void;
7
+ isNew?: boolean;
8
+ }
9
+ export declare function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLeave, isNew }: PluginCardProps): import("react").JSX.Element;
10
+ export {};
@@ -1,10 +1,10 @@
1
1
  import "./PluginModal.css";
2
- import { ModalProps } from "../../utils/modal";
3
- import { Plugin } from "../../utils/types";
2
+ import { ModalProps } from "../../../../utils/modal";
3
+ import { Plugin } from "../../../../utils/types";
4
4
  interface PluginModalProps extends ModalProps {
5
5
  plugin: Plugin;
6
- onRestartNeeded(): void;
6
+ onRestartNeeded(key: string): void;
7
7
  }
8
8
  export default function PluginModal({ plugin, onRestartNeeded, onClose, transitionState }: PluginModalProps): import("react").JSX.Element;
9
- export declare function openPluginModal(plugin: Plugin, onRestartNeeded?: (pluginName: string) => void): void;
9
+ export declare function openPluginModal(plugin: Plugin, onRestartNeeded?: (pluginName: string, key: string) => void): void;
10
10
  export {};
@@ -0,0 +1,3 @@
1
+ import { PluginOptionBoolean } from "../../../../../utils/types";
2
+ import { SettingProps } from "./Common";
3
+ export declare function BooleanSetting({ option, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginOptionBoolean>): import("react").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { DefinedSettings, PluginOptionBase } from "../../../../../utils/types";
2
+ import { PropsWithChildren } from "react";
3
+ export declare const cl: (...args: (string | false | 0 | string[] | Record<string, unknown> | null | undefined)[]) => string;
4
+ interface SettingBaseProps<T> {
5
+ option: T;
6
+ onChange(newValue: any): void;
7
+ pluginSettings: {
8
+ [setting: string]: any;
9
+ enabled: boolean;
10
+ };
11
+ id: string;
12
+ definedSettings?: DefinedSettings;
13
+ }
14
+ export type SettingProps<T extends PluginOptionBase> = SettingBaseProps<T>;
15
+ export type ComponentSettingProps<T extends Omit<PluginOptionBase, "description" | "placeholder">> = SettingBaseProps<T>;
16
+ export declare function resolveError(isValidResult: boolean | string): string | null;
17
+ interface SettingsSectionProps extends PropsWithChildren {
18
+ name: string;
19
+ description: string;
20
+ error?: string | null;
21
+ inlineSetting?: boolean;
22
+ }
23
+ export declare function SettingsSection({ name, description, error, inlineSetting, children }: SettingsSectionProps): import("react").JSX.Element;
24
+ export {};
@@ -0,0 +1,3 @@
1
+ import { PluginOptionComponent } from "../../../../../utils/types";
2
+ import { ComponentSettingProps } from "./Common";
3
+ export declare function ComponentSetting({ option, onChange }: ComponentSettingProps<PluginOptionComponent>): import("react").ReactNode | Promise<import("react").ReactNode>;
@@ -0,0 +1,3 @@
1
+ import { PluginOptionNumber } from "../../../../../utils/types";
2
+ import { SettingProps } from "./Common";
3
+ export declare function NumberSetting({ option, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginOptionNumber>): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { PluginOptionSelect } from "../../../../../utils/types";
2
+ import { SettingProps } from "./Common";
3
+ export declare function SelectSetting({ option, pluginSettings, definedSettings, onChange, id }: SettingProps<PluginOptionSelect>): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { PluginOptionSlider } from "../../../../../utils/types";
2
+ import { SettingProps } from "./Common";
3
+ export declare function SliderSetting({ option, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginOptionSlider>): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { PluginOptionString } from "../../../../../utils/types";
2
+ import { SettingProps } from "./Common";
3
+ export declare function TextSetting({ option, pluginSettings, definedSettings, id, onChange }: SettingProps<PluginOptionString>): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import "./styles.css";
2
+ import { OptionType } from "../../../../../utils/types";
3
+ import { ComponentType } from "react";
4
+ import { ComponentSettingProps, SettingProps } from "./Common";
5
+ export declare const OptionComponentMap: Record<OptionType, ComponentType<SettingProps<any> | ComponentSettingProps<any>>>;
@@ -0,0 +1,6 @@
1
+ import "./styles.css";
2
+ import { Logger } from "../../../../utils/Logger";
3
+ export declare const cl: (...args: (string | false | 0 | string[] | Record<string, unknown> | null | undefined)[]) => string;
4
+ export declare const logger: Logger;
5
+ declare const _default: import("react").FunctionComponent<any>;
6
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare function CspErrorCard(): import("react").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function LocalThemesTab(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function OnlineThemesTab(): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { UserThemeHeader } from "../../../../main/themes";
2
+ interface ThemeCardProps {
3
+ theme: UserThemeHeader;
4
+ enabled: boolean;
5
+ onChange: (enabled: boolean) => void;
6
+ onDelete: () => void;
7
+ }
8
+ export declare function ThemeCard({ theme, enabled, onChange, onDelete }: ThemeCardProps): import("react").JSX.Element;
9
+ export {};
@@ -1,2 +1,3 @@
1
+ import "./styles.css";
1
2
  declare const _default: import("react").FunctionComponent<any>;
2
3
  export default _default;
@@ -0,0 +1,15 @@
1
+ import { changes } from "../../../../utils/updater";
2
+ export interface CommonProps {
3
+ repo: string;
4
+ repoPending: boolean;
5
+ }
6
+ export declare function HashLink({ repo, hash, disabled }: {
7
+ repo: string;
8
+ hash: string;
9
+ disabled?: boolean;
10
+ }): import("react").JSX.Element;
11
+ export declare function Changes({ updates, repo, repoPending }: CommonProps & {
12
+ updates: typeof changes;
13
+ }): import("react").JSX.Element;
14
+ export declare function Newer(props: CommonProps): import("react").JSX.Element;
15
+ export declare function Updatable(props: CommonProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function runWithDispatch(dispatch: React.Dispatch<React.SetStateAction<boolean>>, action: () => any): () => Promise<void>;
@@ -0,0 +1,2 @@
1
+ export declare const isDonor: (userId: string) => boolean;
2
+ export declare function DonateButtonComponent(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function VibrancySettings(): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare function NotificationSection(): import("react").JSX.Element;
2
+ export declare function openNotificationSettingsModal(): void;
package/modules.d.ts CHANGED
@@ -16,8 +16,6 @@
16
16
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17
17
  */
18
18
 
19
- /// <reference types="standalone-electron-types"/>
20
-
21
19
  declare module "~plugins" {
22
20
  const plugins: Record<string, import("./utils/types").Plugin>;
23
21
  export default plugins;
@@ -25,12 +23,7 @@ declare module "~plugins" {
25
23
  folderName: string;
26
24
  userPlugin: boolean;
27
25
  }>;
28
- export const ExcludedPlugins: Record<string, "web" | "discordDesktop" | "vencordDesktop" | "desktop" | "dev">;
29
- }
30
-
31
- declare module "~pluginNatives" {
32
- const pluginNatives: Record<string, Record<string, (event: Electron.IpcMainInvokeEvent, ...args: unknown[]) => unknown>>;
33
- export default pluginNatives;
26
+ export const ExcludedPlugins: Record<string, "web" | "discordDesktop" | "vesktop" | "desktop" | "dev">;
34
27
  }
35
28
 
36
29
  declare module "~git-hash" {