@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.
Files changed (487) hide show
  1. package/Vencord.d.ts +29 -28
  2. package/VencordNative.d.ts +40 -14
  3. package/api/Badges.d.ts +47 -62
  4. package/api/ChatButtons.d.ts +75 -0
  5. package/api/Commands/commandHelpers.d.ts +20 -20
  6. package/api/Commands/index.d.ts +26 -26
  7. package/api/Commands/types.d.ts +76 -74
  8. package/api/ContextMenu.d.ts +55 -57
  9. package/api/DataStore/index.d.ts +96 -96
  10. package/api/MemberListDecorators.d.ts +32 -33
  11. package/api/MessageAccessories.d.ts +10 -10
  12. package/api/MessageDecorations.d.ts +33 -34
  13. package/api/MessageEvents.d.ts +70 -39
  14. package/api/MessagePopover.d.ts +16 -16
  15. package/api/MessageUpdater.d.ts +8 -0
  16. package/api/Notices.d.ts +5 -5
  17. package/api/Notifications/NotificationComponent.d.ts +6 -7
  18. package/api/Notifications/Notifications.d.ts +25 -25
  19. package/api/Notifications/index.d.ts +1 -1
  20. package/api/Notifications/notificationLog.d.ts +14 -15
  21. package/api/ServerList.d.ts +8 -8
  22. package/api/{settings.d.ts → Settings.d.ts} +67 -76
  23. package/api/Styles.d.ts +97 -97
  24. package/api/UserSettings.d.ts +40 -0
  25. package/api/index.d.ts +101 -91
  26. package/components/Badge.d.ts +4 -5
  27. package/components/CheckedTextInput.d.ts +22 -23
  28. package/components/CodeBlock.d.ts +7 -0
  29. package/components/DonateButton.d.ts +2 -2
  30. package/components/ErrorBoundary.d.ts +25 -26
  31. package/components/ErrorCard.d.ts +3 -3
  32. package/components/Flex.d.ts +5 -6
  33. package/components/Grid.d.ts +8 -0
  34. package/components/Heart.d.ts +2 -2
  35. package/components/Icons.d.ts +40 -0
  36. package/components/Link.d.ts +5 -6
  37. package/components/PluginSettings/ContributorModal.d.ts +3 -0
  38. package/components/PluginSettings/LinkIconButton.d.ts +10 -0
  39. package/components/PluginSettings/PluginModal.d.ts +10 -9
  40. package/components/PluginSettings/components/SettingBooleanComponent.d.ts +3 -4
  41. package/components/PluginSettings/components/SettingCustomComponent.d.ts +3 -4
  42. package/components/PluginSettings/components/SettingNumericComponent.d.ts +3 -4
  43. package/components/PluginSettings/components/SettingSelectComponent.d.ts +3 -4
  44. package/components/PluginSettings/components/SettingSliderComponent.d.ts +4 -5
  45. package/components/PluginSettings/components/SettingTextComponent.d.ts +3 -4
  46. package/components/PluginSettings/components/index.d.ts +21 -19
  47. package/components/PluginSettings/index.d.ts +12 -4
  48. package/components/Switch.d.ts +8 -9
  49. package/components/VencordSettings/AddonCard.d.ts +17 -0
  50. package/components/VencordSettings/{BackupRestoreTab.d.ts → BackupAndRestoreTab.d.ts} +2 -3
  51. package/components/VencordSettings/CloudTab.d.ts +2 -3
  52. package/components/VencordSettings/NotificationSettings.d.ts +2 -0
  53. package/components/VencordSettings/{Updater.d.ts → PatchHelperTab.d.ts} +2 -3
  54. package/components/VencordSettings/PluginsTab.d.ts +2 -3
  55. package/components/VencordSettings/SpecialCard.d.ts +14 -0
  56. package/components/VencordSettings/ThemesTab.d.ts +2 -3
  57. package/components/{PatchHelper.d.ts → VencordSettings/UpdaterTab.d.ts} +3 -3
  58. package/components/VencordSettings/VencordTab.d.ts +2 -3
  59. package/components/VencordSettings/quickActions.d.ts +12 -0
  60. package/components/VencordSettings/shared.d.ts +9 -0
  61. package/components/handleComponentFailed.d.ts +1 -1
  62. package/components/index.d.ts +11 -3
  63. package/modules.d.ts +11 -2
  64. package/package.json +10 -8
  65. package/plugins/_api/badges/index.d.ts +49 -0
  66. package/plugins/_api/chatButtons.d.ts +16 -0
  67. package/plugins/{apiCommands.d.ts → _api/commands.d.ts} +29 -28
  68. package/plugins/{apiContextMenu.d.ts → _api/contextMenu.d.ts} +27 -25
  69. package/plugins/_api/dynamicImageModalApi.d.ts +16 -0
  70. package/plugins/{noTrack.d.ts → _api/memberListDecorators/index.d.ts} +23 -23
  71. package/plugins/_api/menuItemDemangler.d.ts +17 -0
  72. package/plugins/{apiServerList.d.ts → _api/messageAccessories.d.ts} +16 -16
  73. package/plugins/_api/messageDecorations/index.d.ts +17 -0
  74. package/plugins/{apiMessageAccessories.d.ts → _api/messageEvents.d.ts} +16 -16
  75. package/plugins/_api/messagePopover.d.ts +16 -0
  76. package/plugins/{alwaysTrust.d.ts → _api/messageUpdater.d.ts} +16 -16
  77. package/plugins/_api/notices.d.ts +17 -0
  78. package/plugins/{apiMessageDecorations.d.ts → _api/serverList.d.ts} +16 -16
  79. package/plugins/{apiSettingsStore.d.ts → _api/userSettings.d.ts} +16 -16
  80. package/plugins/{webContextMenus.web.d.ts → _core/noTrack.d.ts} +50 -48
  81. package/plugins/_core/settings.d.ts +68 -0
  82. package/plugins/_core/supportHelper.d.ts +42 -0
  83. package/plugins/accountPanelServerProfile/index.d.ts +45 -0
  84. package/plugins/{colorSighted.d.ts → alwaysAnimate/index.d.ts} +34 -22
  85. package/plugins/{noScreensharePreview.d.ts → alwaysExpandRoles/index.d.ts} +16 -16
  86. package/plugins/alwaysTrust/index.d.ts +45 -0
  87. package/plugins/anonymiseFileNames/index.d.ts +95 -0
  88. package/plugins/appleMusic.desktop/index.d.ts +225 -0
  89. package/plugins/appleMusic.desktop/native.d.ts +2 -0
  90. package/plugins/{hideAttachments.d.ts → arRPC.web/index.d.ts} +15 -14
  91. package/plugins/{banger.d.ts → banger/index.d.ts} +33 -25
  92. package/plugins/betterFolders/FolderSideBar.d.ts +2 -3
  93. package/plugins/betterFolders/index.d.ts +274 -71
  94. package/plugins/{betterGifAltText.d.ts → betterGifAltText/index.d.ts} +17 -17
  95. package/plugins/{noSystemBadge.discordDesktop.d.ts → betterGifPicker/index.d.ts} +16 -16
  96. package/plugins/betterNotes/index.d.ts +57 -0
  97. package/plugins/betterRoleContext/index.d.ts +46 -0
  98. package/plugins/{betterNotes.d.ts → betterRoleDot/index.d.ts} +44 -41
  99. package/plugins/betterSessions/components/RenameButton.d.ts +5 -0
  100. package/plugins/betterSessions/components/RenameModal.d.ts +7 -0
  101. package/plugins/betterSessions/components/icons.d.ts +10 -0
  102. package/plugins/betterSessions/index.d.ts +60 -0
  103. package/plugins/betterSessions/types.d.ts +13 -0
  104. package/plugins/betterSessions/utils.d.ts +10 -0
  105. package/plugins/betterSettings/PluginsSubmenu.d.ts +1 -0
  106. package/plugins/betterSettings/index.d.ts +93 -0
  107. package/plugins/{apiMemberListDecorators.d.ts → betterUploadButton/index.d.ts} +16 -16
  108. package/plugins/biggerStreamPreview/index.d.ts +48 -0
  109. package/plugins/biggerStreamPreview/webpack/stores.d.ts +3 -0
  110. package/plugins/biggerStreamPreview/webpack/types/stores.d.ts +60 -0
  111. package/plugins/{blurNsfw.d.ts → blurNsfw/index.d.ts} +28 -28
  112. package/plugins/{callTimer.d.ts → callTimer/index.d.ts} +38 -40
  113. package/plugins/clearURLs/defaultRules.d.ts +1 -1
  114. package/plugins/clearURLs/index.d.ts +18 -18
  115. package/plugins/clientTheme/index.d.ts +36 -0
  116. package/plugins/colorSighted/index.d.ts +16 -0
  117. package/plugins/consoleJanitor/index.d.ts +79 -0
  118. package/plugins/{reverseImageSearch.d.ts → consoleShortcuts/index.d.ts} +21 -18
  119. package/plugins/consoleShortcuts/native.d.ts +2 -0
  120. package/plugins/copyEmojiMarkdown/index.d.ts +37 -0
  121. package/plugins/copyFileContents/index.d.ts +21 -0
  122. package/plugins/copyUserURLs/index.d.ts +13 -0
  123. package/plugins/{crashHandler.d.ts → crashHandler/index.d.ts} +43 -44
  124. package/plugins/ctrlEnterSend/index.d.ts +40 -0
  125. package/plugins/customRPC/index.d.ts +282 -0
  126. package/plugins/customidle/index.d.ts +49 -0
  127. package/plugins/dearrow/index.d.ts +106 -0
  128. package/plugins/decor/index.d.ts +74 -0
  129. package/plugins/decor/lib/api.d.ts +27 -0
  130. package/plugins/decor/lib/constants.d.ts +10 -0
  131. package/plugins/decor/lib/stores/AuthorizationStore.d.ts +1 -0
  132. package/plugins/decor/lib/stores/CurrentUserDecorationsStore.d.ts +1 -0
  133. package/plugins/decor/lib/stores/UsersDecorationsStore.d.ts +4 -0
  134. package/plugins/decor/lib/utils/decoration.d.ts +4 -0
  135. package/plugins/decor/settings.d.ts +24 -0
  136. package/plugins/decor/ui/components/DecorDecorationGridDecoration.d.ts +9 -0
  137. package/plugins/decor/ui/components/DecorSection.d.ts +6 -0
  138. package/plugins/decor/ui/components/DecorationContextMenu.d.ts +4 -0
  139. package/plugins/decor/ui/components/DecorationGridCreate.d.ts +6 -0
  140. package/plugins/decor/ui/components/DecorationGridNone.d.ts +7 -0
  141. package/plugins/decor/ui/components/Grid.d.ts +8 -0
  142. package/plugins/decor/ui/components/SectionedGridList.d.ts +12 -0
  143. package/plugins/decor/ui/components/index.d.ts +17 -0
  144. package/plugins/decor/ui/index.d.ts +4 -0
  145. package/plugins/decor/ui/modals/ChangeDecorationModal.d.ts +1 -0
  146. package/plugins/decor/ui/modals/CreateDecorationModal.d.ts +1 -0
  147. package/plugins/decor/ui/modals/GuidelinesModal.d.ts +1 -0
  148. package/plugins/{messageClickActions.d.ts → devCompanion.dev/index.d.ts} +29 -25
  149. package/plugins/disableCallIdle/index.d.ts +16 -0
  150. package/plugins/{searchReply.d.ts → dontRoundMyTimestamps/index.d.ts} +11 -11
  151. package/plugins/emoteCloner/index.d.ts +15 -0
  152. package/plugins/{experiments.d.ts → experiments/index.d.ts} +51 -51
  153. package/plugins/{f8break.d.ts → f8break/index.d.ts} +12 -12
  154. package/plugins/fakeNitro/index.d.ts +165 -0
  155. package/plugins/{fakeProfileThemes.d.ts → fakeProfileThemes/index.d.ts} +58 -44
  156. package/plugins/favEmojiFirst/index.d.ts +31 -0
  157. package/plugins/favGifSearch/index.d.ts +120 -0
  158. package/plugins/{noF1.d.ts → fixCodeblockGap/index.d.ts} +16 -16
  159. package/plugins/fixImagesQuality/index.d.ts +16 -0
  160. package/plugins/fixSpotifyEmbeds.desktop/index.d.ts +19 -0
  161. package/plugins/fixSpotifyEmbeds.desktop/native.d.ts +1 -0
  162. package/plugins/{oneko.d.ts → fixYoutubeEmbeds.desktop/index.d.ts} +9 -11
  163. package/plugins/fixYoutubeEmbeds.desktop/native.d.ts +1 -0
  164. package/plugins/forceOwnerCrown/index.d.ts +23 -0
  165. package/plugins/{uwuify.d.ts → friendInvites/index.d.ts} +16 -18
  166. package/plugins/friendsSince/index.d.ts +20 -0
  167. package/plugins/fullSearchContext/index.d.ts +22 -0
  168. package/plugins/fullUserInChatbox/index.d.ts +24 -0
  169. package/plugins/gameActivityToggle/index.d.ts +33 -21
  170. package/plugins/{gifPaste.d.ts → gifPaste/index.d.ts} +19 -19
  171. package/plugins/{welcomeStickerPicker.d.ts → greetStickerPicker/index.d.ts} +58 -47
  172. package/plugins/hideAttachments/index.d.ts +31 -0
  173. package/plugins/iLoveSpam/index.d.ts +16 -0
  174. package/plugins/ignoreActivities/index.d.ts +175 -0
  175. package/plugins/imageLink/index.d.ts +16 -0
  176. package/plugins/imageZoom/components/Magnifier.d.ts +6 -7
  177. package/plugins/imageZoom/constants.d.ts +1 -1
  178. package/plugins/imageZoom/index.d.ts +222 -122
  179. package/plugins/imageZoom/utils/waitFor.d.ts +1 -1
  180. package/plugins/implicitRelationships/index.d.ts +43 -0
  181. package/plugins/index.d.ts +19 -13
  182. package/plugins/invisibleChat.desktop/components/DecryptionModal.d.ts +2 -0
  183. package/plugins/{invisibleChat → invisibleChat.desktop}/components/EncryptionModal.d.ts +1 -1
  184. package/plugins/{invisibleChat → invisibleChat.desktop}/index.d.ts +54 -42
  185. package/plugins/ircColors/index.d.ts +76 -0
  186. package/plugins/keepCurrentChannel/index.d.ts +31 -0
  187. package/plugins/lastfm/index.d.ts +195 -0
  188. package/plugins/loadingQuotes/index.d.ts +76 -0
  189. package/plugins/memberCount/MemberCount.d.ts +4 -0
  190. package/plugins/memberCount/OnlineMemberCountStore.d.ts +18 -0
  191. package/plugins/memberCount/index.d.ts +73 -0
  192. package/plugins/mentionAvatars/index.d.ts +40 -0
  193. package/plugins/messageClickActions/index.d.ts +56 -0
  194. package/plugins/messageLatency/index.d.ts +60 -0
  195. package/plugins/messageLinkEmbeds/index.d.ts +95 -0
  196. package/plugins/messageLogger/HistoryModal.d.ts +6 -0
  197. package/plugins/messageLogger/index.d.ts +126 -58
  198. package/plugins/{messageTags.d.ts → messageTags/index.d.ts} +56 -38
  199. package/plugins/{moreCommands.d.ts → moreCommands/index.d.ts} +25 -26
  200. package/plugins/{moreKaomoji.d.ts → moreKaomoji/index.d.ts} +17 -18
  201. package/plugins/moyai/index.d.ts +113 -0
  202. package/plugins/mutualGroupDMs/index.d.ts +33 -0
  203. package/plugins/newGuildSettings/index.d.ts +114 -0
  204. package/plugins/noBlockedMessages/index.d.ts +57 -0
  205. package/plugins/noDevtoolsWarning/index.d.ts +16 -0
  206. package/plugins/noF1/index.d.ts +16 -0
  207. package/plugins/noMaskedUrlPaste/index.d.ts +16 -0
  208. package/plugins/{noBlockedMessages.d.ts → noMosaic/index.d.ts} +41 -33
  209. package/plugins/noOnboardingDelay/index.d.ts +16 -0
  210. package/plugins/noPendingCount/index.d.ts +58 -0
  211. package/plugins/noProfileThemes/index.d.ts +17 -0
  212. package/plugins/noRPC.discordDesktop/index.d.ts +16 -0
  213. package/plugins/noReplyMention/index.d.ts +68 -0
  214. package/plugins/{viewIcons.d.ts → noServerEmojis/index.d.ts} +39 -36
  215. package/plugins/{plainFolderIcon.d.ts → noSystemBadge.discordDesktop/index.d.ts} +16 -16
  216. package/plugins/noTypingAnimation/index.d.ts +16 -0
  217. package/plugins/noUnblockToJump/index.d.ts +16 -0
  218. package/plugins/{alwaysAnimate.d.ts → normalizeMessageLinks/index.d.ts} +17 -17
  219. package/plugins/notificationVolume/index.d.ts +34 -0
  220. package/plugins/nsfwGateBypass/index.d.ts +16 -0
  221. package/plugins/onePingPerDM/index.d.ts +68 -0
  222. package/plugins/{emoteCloner.d.ts → oneko/index.d.ts} +11 -11
  223. package/plugins/openInApp/index.d.ts +34 -0
  224. package/plugins/openInApp/native.d.ts +2 -0
  225. package/plugins/overrideForumDefaults/index.d.ts +74 -0
  226. package/plugins/partyMode/index.d.ts +52 -0
  227. package/plugins/pauseInvitesForever/index.d.ts +19 -0
  228. package/plugins/{typingTweaks.d.ts → permissionFreeWill/index.d.ts} +52 -51
  229. package/plugins/permissionsViewer/components/RolesAndUsersPermissions.d.ts +14 -0
  230. package/plugins/permissionsViewer/components/UserPermissions.d.ts +7 -0
  231. package/plugins/permissionsViewer/components/icons.d.ts +3 -0
  232. package/plugins/permissionsViewer/index.d.ts +92 -0
  233. package/plugins/permissionsViewer/utils.d.ts +9 -0
  234. package/plugins/{petpet.d.ts → petpet/index.d.ts} +37 -38
  235. package/plugins/pictureInPicture/index.d.ts +34 -0
  236. package/plugins/pinDms/components/CreateCategoryModal.d.ts +10 -0
  237. package/plugins/pinDms/components/contextMenu.d.ts +5 -0
  238. package/plugins/pinDms/constants.d.ts +3 -0
  239. package/plugins/pinDms/data.d.ts +27 -0
  240. package/plugins/pinDms/index.d.ts +205 -47
  241. package/plugins/plainFolderIcon/index.d.ts +16 -0
  242. package/plugins/{platformIndicators.d.ts → platformIndicators/index.d.ts} +50 -46
  243. package/plugins/previewMessage/index.d.ts +13 -0
  244. package/plugins/quickMention/index.d.ts +17 -0
  245. package/plugins/quickReply/index.d.ts +58 -0
  246. package/plugins/{unminifyErrors.d.ts → reactErrorDecoder/index.d.ts} +19 -19
  247. package/plugins/{viewRaw.d.ts → readAllNotificationsButton/index.d.ts} +14 -12
  248. package/plugins/relationshipNotifier/functions.d.ts +7 -7
  249. package/plugins/relationshipNotifier/index.d.ts +96 -53
  250. package/plugins/relationshipNotifier/settings.d.ts +65 -34
  251. package/plugins/relationshipNotifier/types.d.ts +39 -37
  252. package/plugins/relationshipNotifier/utils.d.ts +17 -10
  253. package/plugins/replaceGoogleSearch/index.d.ts +37 -0
  254. package/plugins/replyTimestamp/index.d.ts +33 -0
  255. package/plugins/{revealAllSpoilers.d.ts → revealAllSpoilers/index.d.ts} +17 -17
  256. package/plugins/reverseImageSearch/index.d.ts +22 -0
  257. package/plugins/reviewDB/auth.d.ts +7 -0
  258. package/plugins/reviewDB/components/BlockedUserModal.d.ts +1 -0
  259. package/plugins/reviewDB/components/MessageButton.d.ts +10 -3
  260. package/plugins/reviewDB/components/ReviewBadge.d.ts +4 -3
  261. package/plugins/reviewDB/components/ReviewComponent.d.ts +7 -7
  262. package/plugins/reviewDB/components/ReviewModal.d.ts +2 -0
  263. package/plugins/reviewDB/components/ReviewsView.d.ts +24 -4
  264. package/plugins/reviewDB/entities.d.ts +72 -0
  265. package/plugins/reviewDB/index.d.ts +96 -34
  266. package/plugins/reviewDB/reviewDbApi.d.ts +18 -0
  267. package/plugins/reviewDB/settings.d.ts +63 -0
  268. package/plugins/reviewDB/utils.d.ts +6 -0
  269. package/plugins/roleColorEverywhere/index.d.ts +129 -0
  270. package/plugins/{sortFriendRequests.d.ts → secretRingTone/index.d.ts} +37 -34
  271. package/plugins/seeSummaries/index.d.ts +39 -0
  272. package/plugins/sendTimestamps/index.d.ts +28 -23
  273. package/plugins/serverInfo/GuildInfoModal.d.ts +3 -0
  274. package/plugins/serverInfo/index.d.ts +16 -0
  275. package/plugins/{serverListIndicators.d.ts → serverListIndicators/index.d.ts} +34 -37
  276. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/api/languages.d.ts +28 -28
  277. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/api/shiki.d.ts +77 -51
  278. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/api/themes.d.ts +63 -37
  279. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/ButtonRow.d.ts +6 -6
  280. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/Code.d.ts +11 -11
  281. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/CopyButton.d.ts +4 -5
  282. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/Header.d.ts +8 -9
  283. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/components/Highlighter.d.ts +14 -15
  284. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/hooks/useCopyCooldown.d.ts +1 -1
  285. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/hooks/useShikiSettings.d.ts +16 -16
  286. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/hooks/useTheme.d.ts +8 -8
  287. package/plugins/shikiCodeblocks.desktop/index.d.ts +274 -0
  288. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/previewExample.d.ts +5 -5
  289. package/plugins/shikiCodeblocks.desktop/settings.d.ts +173 -0
  290. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/types.d.ts +42 -42
  291. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/utils/color.d.ts +1 -1
  292. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/utils/createStyle.d.ts +3 -3
  293. package/plugins/{shikiCodeblocks → shikiCodeblocks.desktop}/utils/misc.d.ts +7 -7
  294. package/plugins/showAllMessageButtons/index.d.ts +16 -0
  295. package/plugins/showConnections/VerifiedIcon.d.ts +1 -0
  296. package/plugins/showConnections/index.d.ts +59 -0
  297. package/plugins/showHiddenChannels/components/HiddenChannelLockScreen.d.ts +32 -34
  298. package/plugins/showHiddenChannels/index.d.ts +195 -110
  299. package/plugins/showHiddenThings/index.d.ts +65 -0
  300. package/plugins/showMeYourName/index.d.ts +78 -49
  301. package/plugins/showTimeoutDuration/index.d.ts +58 -0
  302. package/plugins/silentMessageToggle/index.d.ts +37 -0
  303. package/plugins/silentTyping/index.d.ts +72 -0
  304. package/plugins/sortFriendRequests/index.d.ts +47 -0
  305. package/plugins/spotifyControls/PlayerComponent.d.ts +2 -3
  306. package/plugins/spotifyControls/SpotifyStore.d.ts +62 -0
  307. package/plugins/spotifyControls/index.d.ts +46 -33
  308. package/plugins/{spotifyCrack.d.ts → spotifyCrack/index.d.ts} +51 -38
  309. package/plugins/{spotifyShareCommands.d.ts → spotifyShareCommands/index.d.ts} +17 -18
  310. package/plugins/startupTimings/StartupTimingPage.d.ts +2 -3
  311. package/plugins/startupTimings/index.d.ts +17 -18
  312. package/plugins/stickerPaste/index.d.ts +16 -0
  313. package/plugins/streamerModeOnStream/index.d.ts +13 -0
  314. package/plugins/superReactionTweaks/index.d.ts +107 -0
  315. package/plugins/textReplace/index.d.ts +40 -0
  316. package/plugins/themeAttributes/index.d.ts +27 -0
  317. package/plugins/translate/TranslateIcon.d.ts +8 -0
  318. package/plugins/translate/TranslateModal.d.ts +4 -0
  319. package/plugins/translate/TranslationAccessory.d.ts +6 -0
  320. package/plugins/translate/index.d.ts +158 -0
  321. package/plugins/translate/languages.d.ts +175 -0
  322. package/plugins/translate/native.d.ts +5 -0
  323. package/plugins/translate/settings.d.ts +133 -0
  324. package/plugins/translate/utils.d.ts +177 -0
  325. package/plugins/typingIndicator/index.d.ts +82 -0
  326. package/plugins/typingTweaks/index.d.ts +72 -0
  327. package/plugins/{unindent.d.ts → unindent/index.d.ts} +21 -22
  328. package/plugins/unlockedAvatarZoom/index.d.ts +32 -0
  329. package/plugins/{arRPC.web.d.ts → unsuppressEmbeds/index.d.ts} +13 -13
  330. package/plugins/userMessagesPronouns/PronounsChatComponent.d.ts +7 -0
  331. package/plugins/userMessagesPronouns/index.d.ts +61 -0
  332. package/plugins/userMessagesPronouns/settings.d.ts +44 -0
  333. package/plugins/userMessagesPronouns/utils.d.ts +1 -0
  334. package/plugins/userVoiceShow/components.d.ts +6 -0
  335. package/plugins/userVoiceShow/index.d.ts +69 -36
  336. package/plugins/usrbg/index.d.ts +84 -36
  337. package/plugins/validReply/index.d.ts +35 -0
  338. package/plugins/validUser/index.d.ts +18 -0
  339. package/plugins/{vcDoubleClick.d.ts → vcDoubleClick/index.d.ts} +26 -26
  340. package/plugins/vcNarrator/index.d.ts +33 -0
  341. package/plugins/vencordToolbox/index.d.ts +21 -0
  342. package/plugins/viewIcons/index.d.ts +82 -0
  343. package/plugins/viewRaw/index.d.ts +58 -0
  344. package/plugins/voiceDownload/index.d.ts +19 -0
  345. package/plugins/voiceMessages/DesktopRecorder.d.ts +2 -0
  346. package/plugins/voiceMessages/VoicePreview.d.ts +6 -0
  347. package/plugins/voiceMessages/WebRecorder.d.ts +2 -0
  348. package/plugins/voiceMessages/index.d.ts +42 -0
  349. package/plugins/voiceMessages/native.d.ts +1 -0
  350. package/plugins/voiceMessages/settings.d.ts +24 -0
  351. package/plugins/voiceMessages/utils.d.ts +2 -0
  352. package/plugins/volumeBooster/index.d.ts +74 -0
  353. package/plugins/webContextMenus.web/index.d.ts +89 -0
  354. package/plugins/webKeybinds.web/index.d.ts +13 -0
  355. package/plugins/webScreenShareFixes.web/index.d.ts +17 -0
  356. package/plugins/whoReacted/index.d.ts +39 -0
  357. package/plugins/xsOverlay/index.d.ts +226 -0
  358. package/plugins/xsOverlay/native.d.ts +1 -0
  359. package/plugins/youtubeAdblock.desktop/adguard.d.ts +54 -0
  360. package/plugins/youtubeAdblock.desktop/index.d.ts +9 -0
  361. package/plugins/youtubeAdblock.desktop/native.d.ts +1 -0
  362. package/shared/IpcEvents.d.ts +25 -0
  363. package/shared/SettingsStore.d.ts +82 -0
  364. package/{utils → shared}/debounce.d.ts +8 -8
  365. package/{utils → shared}/onceDefined.d.ts +11 -11
  366. package/shared/vencordUserAgent.d.ts +4 -0
  367. package/utils/ChangeList.d.ts +10 -10
  368. package/utils/Logger.d.ts +21 -21
  369. package/utils/Queue.d.ts +33 -33
  370. package/utils/apng-canvas.d.ts +1 -0
  371. package/utils/cloud.d.ts +7 -7
  372. package/utils/constants.d.ts +572 -254
  373. package/utils/dependencies.d.ts +40 -41
  374. package/utils/discord.d.ts +69 -10
  375. package/utils/guards.d.ts +2 -2
  376. package/utils/index.d.ts +37 -32
  377. package/utils/intlHash.d.ts +8 -0
  378. package/utils/lazy.d.ts +14 -0
  379. package/utils/lazyReact.d.ts +8 -0
  380. package/utils/localStorage.d.ts +1 -1
  381. package/utils/margins.d.ts +1 -1
  382. package/utils/mergeDefaults.d.ts +7 -0
  383. package/utils/misc.d.ts +33 -80
  384. package/utils/modal.d.ts +173 -149
  385. package/utils/native.d.ts +2 -2
  386. package/utils/onlyOnce.d.ts +1 -0
  387. package/utils/patches.d.ts +6 -5
  388. package/utils/quickCss.d.ts +1 -1
  389. package/utils/react.d.ts +34 -7
  390. package/utils/settingsSync.d.ts +9 -7
  391. package/utils/text.d.ts +38 -20
  392. package/utils/types.d.ts +326 -222
  393. package/utils/updater.d.ts +10 -11
  394. package/utils/web-metadata.d.ts +2 -0
  395. package/utils/web.d.ts +11 -1
  396. package/webpack/common/classes.d.ts +3 -0
  397. package/webpack/common/components.d.ts +103 -22
  398. package/webpack/common/index.d.ts +10 -8
  399. package/webpack/common/internal.d.ts +3 -4
  400. package/webpack/common/menu.d.ts +3 -3
  401. package/webpack/common/react.d.ts +9 -8
  402. package/webpack/common/stores.d.ts +40 -37
  403. package/webpack/common/types/classes.d.ts +39 -0
  404. package/webpack/common/types/components.d.ts +193 -14
  405. package/webpack/common/types/fluxEvents.d.ts +1 -1
  406. package/webpack/common/types/index.d.ts +1 -1
  407. package/webpack/common/types/menu.d.ts +21 -8
  408. package/webpack/common/types/stores.d.ts +195 -0
  409. package/webpack/common/types/utils.d.ts +239 -15
  410. package/webpack/common/userSettings.d.ts +4 -0
  411. package/webpack/common/utils.d.ts +83 -47
  412. package/webpack/index.d.ts +3 -2
  413. package/webpack/patchWebpack.d.ts +12 -1
  414. package/webpack/webpack.d.ts +183 -105
  415. package/webpack/wreq.d.ts +238 -0
  416. package/api/SettingsStore.d.ts +0 -28
  417. package/components/Monaco.d.ts +0 -1
  418. package/components/VencordSettings/index.d.ts +0 -7
  419. package/plugins/anonymiseFileNames.d.ts +0 -50
  420. package/plugins/apiBadges.d.ts +0 -36
  421. package/plugins/apiMessageEvents.d.ts +0 -22
  422. package/plugins/apiMessagePopover.d.ts +0 -16
  423. package/plugins/apiNotices.d.ts +0 -20
  424. package/plugins/betterRoleDot.d.ts +0 -35
  425. package/plugins/betterUploadButton.d.ts +0 -16
  426. package/plugins/consoleShortcuts.d.ts +0 -47
  427. package/plugins/customRPC.d.ts +0 -97
  428. package/plugins/devCompanion.dev.d.ts +0 -19
  429. package/plugins/disableDMCallIdle.d.ts +0 -16
  430. package/plugins/fakeNitro.d.ts +0 -140
  431. package/plugins/fart.d.ts +0 -34
  432. package/plugins/fixInbox.d.ts +0 -18
  433. package/plugins/forceOwnerCrown.d.ts +0 -17
  434. package/plugins/friendInvites.d.ts +0 -22
  435. package/plugins/fxTwitter.d.ts +0 -14
  436. package/plugins/highResAvatars.d.ts +0 -16
  437. package/plugins/iLoveSpam.d.ts +0 -16
  438. package/plugins/ignoreActivities.d.ts +0 -30
  439. package/plugins/invisibleChat/components/DecryptionModal.d.ts +0 -3
  440. package/plugins/keepCurrentChannel.d.ts +0 -30
  441. package/plugins/lastfm.d.ts +0 -90
  442. package/plugins/loadingQuotes.d.ts +0 -18
  443. package/plugins/memberCount.d.ts +0 -26
  444. package/plugins/messageLinkEmbeds.d.ts +0 -45
  445. package/plugins/moreUserTags.d.ts +0 -51
  446. package/plugins/moyai.d.ts +0 -58
  447. package/plugins/muteNewGuild.d.ts +0 -18
  448. package/plugins/noCanaryMessageLinks.d.ts +0 -29
  449. package/plugins/noDevtoolsWarning.d.ts +0 -16
  450. package/plugins/noRPC.discordDesktop.d.ts +0 -16
  451. package/plugins/noReplyMention.d.ts +0 -31
  452. package/plugins/noUnblockToJump.d.ts +0 -16
  453. package/plugins/nsfwGateBypass.d.ts +0 -16
  454. package/plugins/pinDms/contextMenus.d.ts +0 -2
  455. package/plugins/pinDms/settings.d.ts +0 -26
  456. package/plugins/pronoundb/components/PronounsAboutComponent.d.ts +0 -2
  457. package/plugins/pronoundb/components/PronounsChatComponent.d.ts +0 -11
  458. package/plugins/pronoundb/components/PronounsProfileWrapper.d.ts +0 -3
  459. package/plugins/pronoundb/index.d.ts +0 -59
  460. package/plugins/pronoundb/pronoundbUtils.d.ts +0 -5
  461. package/plugins/pronoundb/types.d.ts +0 -34
  462. package/plugins/quickMention.d.ts +0 -14
  463. package/plugins/quickReply.d.ts +0 -32
  464. package/plugins/readAllNotificationsButton.d.ts +0 -14
  465. package/plugins/relationshipNotifier/events.d.ts +0 -3
  466. package/plugins/reviewDB/Utils/ReviewDBAPI.d.ts +0 -13
  467. package/plugins/reviewDB/Utils/Utils.d.ts +0 -6
  468. package/plugins/reviewDB/entities/Badge.d.ts +0 -7
  469. package/plugins/reviewDB/entities/Review.d.ts +0 -14
  470. package/plugins/roleColorEverywhere.d.ts +0 -63
  471. package/plugins/settings.d.ts +0 -61
  472. package/plugins/shikiCodeblocks/index.d.ts +0 -132
  473. package/plugins/shikiCodeblocks/settings.d.ts +0 -58
  474. package/plugins/silentMessageToggle.d.ts +0 -31
  475. package/plugins/silentTyping.d.ts +0 -59
  476. package/plugins/supportHelper.d.ts +0 -21
  477. package/plugins/timeBarAllActivities.d.ts +0 -16
  478. package/plugins/typingIndicator.d.ts +0 -31
  479. package/plugins/urbanDictionary.d.ts +0 -24
  480. package/plugins/userVoiceShow/components/VoiceChannelSection.d.ts +0 -10
  481. package/plugins/vcNarrator.d.ts +0 -18
  482. package/plugins/volumeBooster.discordDesktop.d.ts +0 -38
  483. package/plugins/whoReacted.d.ts +0 -120
  484. package/plugins/wikisearch.d.ts +0 -23
  485. package/utils/IpcEvents.d.ts +0 -16
  486. package/utils/proxyLazy.d.ts +0 -10
  487. 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 Plugins from "./plugins";
20
- export * as Util from "./utils";
21
- export * as QuickCss from "./utils/quickCss";
22
- export * as Updater from "./utils/updater";
23
- export * as Webpack from "./webpack";
24
- export { PlainSettings, Settings };
25
- import "./utils/quickCss";
26
- import "./webpack/patchWebpack";
27
- import { PlainSettings, Settings } from "./api/settings";
28
- export declare let Components: any;
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";
@@ -1,14 +1,40 @@
1
- /// <reference types="standalone-electron-types" />
2
- /// <reference types="node" />
3
- import { IpcRenderer } from "electron";
4
- declare const _default: {
5
- getVersions: () => NodeJS.ProcessVersions;
6
- ipc: {
7
- send(event: string, ...args: any[]): void;
8
- sendSync<T = any>(event: string, ...args: any[]): T;
9
- on(event: string, listener: Parameters<IpcRenderer["on"]>[1]): void;
10
- off(event: string, listener: Parameters<IpcRenderer["off"]>[1]): void;
11
- invoke<T_1 = any>(event: string, ...args: any[]): Promise<T_1>;
12
- };
13
- };
14
- export default _default;
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 { User } from "discord-types/general";
2
- import { ComponentType, HTMLProps } from "react";
3
- export declare enum BadgePosition {
4
- START = 0,
5
- END = 1
6
- }
7
- export interface ProfileBadge {
8
- /** The tooltip to show on hover. Required for image badges */
9
- description?: string;
10
- /** Custom component for the badge (tooltip not included) */
11
- component?: ComponentType<ProfileBadge & BadgeUserArgs>;
12
- /** The custom image to use */
13
- image?: string;
14
- link?: string;
15
- /** Action to perform when you click the badge */
16
- onClick?(): void;
17
- /** Should the user display this badge? */
18
- shouldShow?(userInfo: BadgeUserArgs): boolean;
19
- /** Optional props (e.g. style) for the badge, ignored for component badges */
20
- props?: HTMLProps<HTMLImageElement>;
21
- /** Insert at start or end? */
22
- position?: BadgePosition;
23
- /** The badge name to display, Discord uses this. Required for component badges */
24
- key?: string;
25
- }
26
- /**
27
- * Register a new badge with the Badges API
28
- * @param badge The badge to register
29
- */
30
- export declare function addBadge(badge: ProfileBadge): void;
31
- /**
32
- * Unregister a badge from the Badges API
33
- * @param badge The badge to remove
34
- */
35
- export declare function removeBadge(badge: ProfileBadge): boolean;
36
- /**
37
- * Inject badges into the profile badges array.
38
- * You probably don't need to use this.
39
- */
40
- export declare function _getBadges(args: BadgeUserArgs): ProfileBadge[];
41
- export interface BadgeUserArgs {
42
- user: User;
43
- profile: Profile;
44
- premiumSince: Date;
45
- premiumGuildSince?: Date;
46
- }
47
- interface ConnectedAccount {
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 & {};
@@ -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;
@@ -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
- displayName?: string;
69
- description: string;
70
- displayDescription?: string;
71
- options?: Option[];
72
- predicate?(ctx: CommandContext): boolean;
73
- execute(args: Argument[], ctx: CommandContext): Promisable<void | CommandReturnValue>;
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
+ }