@buape/carbon 0.7.0 → 0.9.0

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 (390) hide show
  1. package/dist/package.json +8 -7
  2. package/dist/src/abstracts/AnySelectMenu.d.ts +4 -3
  3. package/dist/src/abstracts/AnySelectMenu.d.ts.map +1 -1
  4. package/dist/src/abstracts/AnySelectMenu.js +8 -2
  5. package/dist/src/abstracts/AnySelectMenu.js.map +1 -1
  6. package/dist/src/abstracts/AnySelectMenuInteraction.d.ts +0 -1
  7. package/dist/src/abstracts/AnySelectMenuInteraction.d.ts.map +1 -1
  8. package/dist/src/abstracts/AnySelectMenuInteraction.js +0 -2
  9. package/dist/src/abstracts/AnySelectMenuInteraction.js.map +1 -1
  10. package/dist/src/abstracts/BaseChannel.d.ts +12 -3
  11. package/dist/src/abstracts/BaseChannel.d.ts.map +1 -1
  12. package/dist/src/abstracts/BaseChannel.js +15 -1
  13. package/dist/src/abstracts/BaseChannel.js.map +1 -1
  14. package/dist/src/abstracts/BaseCommand.d.ts +18 -8
  15. package/dist/src/abstracts/BaseCommand.d.ts.map +1 -1
  16. package/dist/src/abstracts/BaseCommand.js +24 -7
  17. package/dist/src/abstracts/BaseCommand.js.map +1 -1
  18. package/dist/src/abstracts/BaseComponent.d.ts +10 -24
  19. package/dist/src/abstracts/BaseComponent.d.ts.map +1 -1
  20. package/dist/src/abstracts/BaseComponent.js +5 -25
  21. package/dist/src/abstracts/BaseComponent.js.map +1 -1
  22. package/dist/src/abstracts/BaseComponentInteraction.d.ts +3 -4
  23. package/dist/src/abstracts/BaseComponentInteraction.d.ts.map +1 -1
  24. package/dist/src/abstracts/BaseComponentInteraction.js +3 -6
  25. package/dist/src/abstracts/BaseComponentInteraction.js.map +1 -1
  26. package/dist/src/abstracts/BaseGuildChannel.d.ts +4 -3
  27. package/dist/src/abstracts/BaseGuildChannel.d.ts.map +1 -1
  28. package/dist/src/abstracts/BaseGuildChannel.js +5 -3
  29. package/dist/src/abstracts/BaseGuildChannel.js.map +1 -1
  30. package/dist/src/abstracts/BaseGuildTextChannel.d.ts +1 -1
  31. package/dist/src/abstracts/BaseGuildTextChannel.d.ts.map +1 -1
  32. package/dist/src/abstracts/BaseInteraction.d.ts +49 -36
  33. package/dist/src/abstracts/BaseInteraction.d.ts.map +1 -1
  34. package/dist/src/abstracts/BaseInteraction.js +105 -34
  35. package/dist/src/abstracts/BaseInteraction.js.map +1 -1
  36. package/dist/src/abstracts/BaseListener.d.ts +13 -0
  37. package/dist/src/abstracts/BaseListener.d.ts.map +1 -0
  38. package/dist/src/abstracts/BaseListener.js +8 -0
  39. package/dist/src/abstracts/BaseListener.js.map +1 -0
  40. package/dist/src/abstracts/BaseMessageInteractiveComponent.d.ts +39 -0
  41. package/dist/src/abstracts/BaseMessageInteractiveComponent.d.ts.map +1 -0
  42. package/dist/src/abstracts/BaseMessageInteractiveComponent.js +33 -0
  43. package/dist/src/abstracts/BaseMessageInteractiveComponent.js.map +1 -0
  44. package/dist/src/abstracts/BaseModalComponent.d.ts +29 -0
  45. package/dist/src/abstracts/BaseModalComponent.d.ts.map +1 -0
  46. package/dist/src/abstracts/BaseModalComponent.js +33 -0
  47. package/dist/src/abstracts/BaseModalComponent.js.map +1 -0
  48. package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts +5 -4
  49. package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts.map +1 -1
  50. package/dist/src/abstracts/GuildThreadOnlyChannel.js +1 -1
  51. package/dist/src/abstracts/GuildThreadOnlyChannel.js.map +1 -1
  52. package/dist/src/abstracts/Plugin.d.ts +6 -2
  53. package/dist/src/abstracts/Plugin.d.ts.map +1 -1
  54. package/dist/src/abstracts/Plugin.js.map +1 -1
  55. package/dist/src/classes/Client.d.ts +42 -12
  56. package/dist/src/classes/Client.d.ts.map +1 -1
  57. package/dist/src/classes/Client.js +98 -25
  58. package/dist/src/classes/Client.js.map +1 -1
  59. package/dist/src/classes/Command.d.ts +10 -2
  60. package/dist/src/classes/Command.d.ts.map +1 -1
  61. package/dist/src/classes/Command.js +12 -1
  62. package/dist/src/classes/Command.js.map +1 -1
  63. package/dist/src/classes/Listener.d.ts +376 -5
  64. package/dist/src/classes/Listener.d.ts.map +1 -1
  65. package/dist/src/classes/Listener.js +1011 -1
  66. package/dist/src/classes/Listener.js.map +1 -1
  67. package/dist/src/classes/Modal.d.ts +22 -5
  68. package/dist/src/classes/Modal.d.ts.map +1 -1
  69. package/dist/src/classes/Modal.js +14 -0
  70. package/dist/src/classes/Modal.js.map +1 -1
  71. package/dist/src/classes/RequestClient.d.ts +79 -0
  72. package/dist/src/classes/RequestClient.d.ts.map +1 -0
  73. package/dist/src/classes/RequestClient.js +225 -0
  74. package/dist/src/classes/RequestClient.js.map +1 -0
  75. package/dist/src/classes/{Button.d.ts → components/Button.d.ts} +8 -5
  76. package/dist/src/classes/components/Button.d.ts.map +1 -0
  77. package/dist/src/classes/{Button.js → components/Button.js} +13 -3
  78. package/dist/src/classes/components/Button.js.map +1 -0
  79. package/dist/src/classes/{ChannelSelectMenu.d.ts → components/ChannelSelectMenu.d.ts} +6 -4
  80. package/dist/src/classes/components/ChannelSelectMenu.d.ts.map +1 -0
  81. package/dist/src/classes/{ChannelSelectMenu.js → components/ChannelSelectMenu.js} +8 -1
  82. package/dist/src/classes/components/ChannelSelectMenu.js.map +1 -0
  83. package/dist/src/classes/components/Container.d.ts +23 -0
  84. package/dist/src/classes/components/Container.d.ts.map +1 -0
  85. package/dist/src/classes/components/Container.js +27 -0
  86. package/dist/src/classes/components/Container.js.map +1 -0
  87. package/dist/src/classes/components/File.d.ts +21 -0
  88. package/dist/src/classes/components/File.d.ts.map +1 -0
  89. package/dist/src/classes/components/File.js +33 -0
  90. package/dist/src/classes/components/File.js.map +1 -0
  91. package/dist/src/classes/components/MediaGallery.d.ts +27 -0
  92. package/dist/src/classes/components/MediaGallery.d.ts.map +1 -0
  93. package/dist/src/classes/components/MediaGallery.js +27 -0
  94. package/dist/src/classes/components/MediaGallery.js.map +1 -0
  95. package/dist/src/classes/{MentionableSelectMenu.d.ts → components/MentionableSelectMenu.d.ts} +6 -4
  96. package/dist/src/classes/components/MentionableSelectMenu.d.ts.map +1 -0
  97. package/dist/src/classes/{MentionableSelectMenu.js → components/MentionableSelectMenu.js} +8 -1
  98. package/dist/src/classes/components/MentionableSelectMenu.js.map +1 -0
  99. package/dist/src/classes/{RoleSelectMenu.d.ts → components/RoleSelectMenu.d.ts} +6 -4
  100. package/dist/src/classes/components/RoleSelectMenu.d.ts.map +1 -0
  101. package/dist/src/classes/components/RoleSelectMenu.js +20 -0
  102. package/dist/src/classes/components/RoleSelectMenu.js.map +1 -0
  103. package/dist/src/classes/components/Row.d.ts +29 -0
  104. package/dist/src/classes/components/Row.d.ts.map +1 -0
  105. package/dist/src/classes/{Row.js → components/Row.js} +8 -2
  106. package/dist/src/classes/components/Row.js.map +1 -0
  107. package/dist/src/classes/components/Section.d.ts +22 -0
  108. package/dist/src/classes/components/Section.d.ts.map +1 -0
  109. package/dist/src/classes/components/Section.js +15 -0
  110. package/dist/src/classes/components/Section.js.map +1 -0
  111. package/dist/src/classes/components/Separator.d.ts +22 -0
  112. package/dist/src/classes/components/Separator.d.ts.map +1 -0
  113. package/dist/src/classes/components/Separator.js +33 -0
  114. package/dist/src/classes/components/Separator.js.map +1 -0
  115. package/dist/src/classes/components/StringSelectMenu.d.ts +15 -0
  116. package/dist/src/classes/components/StringSelectMenu.d.ts.map +1 -0
  117. package/dist/src/classes/components/StringSelectMenu.js +19 -0
  118. package/dist/src/classes/components/StringSelectMenu.js.map +1 -0
  119. package/dist/src/classes/components/TextDisplay.d.ts +10 -0
  120. package/dist/src/classes/components/TextDisplay.d.ts.map +1 -0
  121. package/dist/src/classes/components/TextDisplay.js +19 -0
  122. package/dist/src/classes/components/TextDisplay.js.map +1 -0
  123. package/dist/src/classes/{TextInput.d.ts → components/TextInput.d.ts} +4 -3
  124. package/dist/src/classes/components/TextInput.d.ts.map +1 -0
  125. package/dist/src/classes/{TextInput.js → components/TextInput.js} +3 -2
  126. package/dist/src/classes/components/TextInput.js.map +1 -0
  127. package/dist/src/classes/components/Thumbnail.d.ts +13 -0
  128. package/dist/src/classes/components/Thumbnail.d.ts.map +1 -0
  129. package/dist/src/classes/components/Thumbnail.js +16 -0
  130. package/dist/src/classes/components/Thumbnail.js.map +1 -0
  131. package/dist/src/classes/{UserSelectMenu.d.ts → components/UserSelectMenu.d.ts} +6 -4
  132. package/dist/src/classes/components/UserSelectMenu.d.ts.map +1 -0
  133. package/dist/src/classes/components/UserSelectMenu.js +20 -0
  134. package/dist/src/classes/components/UserSelectMenu.js.map +1 -0
  135. package/dist/src/errors/BaseError.d.ts +3 -0
  136. package/dist/src/errors/BaseError.d.ts.map +1 -0
  137. package/dist/src/errors/BaseError.js +3 -0
  138. package/dist/src/errors/BaseError.js.map +1 -0
  139. package/dist/src/errors/DiscordError.d.ts +25 -0
  140. package/dist/src/errors/DiscordError.d.ts.map +1 -0
  141. package/dist/src/errors/DiscordError.js +31 -0
  142. package/dist/src/errors/DiscordError.js.map +1 -0
  143. package/dist/src/errors/RatelimitError.d.ts +15 -0
  144. package/dist/src/errors/RatelimitError.d.ts.map +1 -0
  145. package/dist/src/errors/RatelimitError.js +18 -0
  146. package/dist/src/errors/RatelimitError.js.map +1 -0
  147. package/dist/src/{factories → functions}/channelFactory.d.ts +3 -2
  148. package/dist/src/functions/channelFactory.d.ts.map +1 -0
  149. package/dist/src/functions/channelFactory.js.map +1 -0
  150. package/dist/src/functions/enforceChoicesLimit.d.ts +3 -0
  151. package/dist/src/functions/enforceChoicesLimit.d.ts.map +1 -0
  152. package/dist/src/functions/enforceChoicesLimit.js +17 -0
  153. package/dist/src/functions/enforceChoicesLimit.js.map +1 -0
  154. package/dist/src/functions/errorsMapper.d.ts +14 -0
  155. package/dist/src/functions/errorsMapper.d.ts.map +1 -0
  156. package/dist/src/functions/errorsMapper.js +46 -0
  157. package/dist/src/functions/errorsMapper.js.map +1 -0
  158. package/dist/src/index.d.ts +29 -63
  159. package/dist/src/index.d.ts.map +1 -1
  160. package/dist/src/index.js +31 -15
  161. package/dist/src/index.js.map +1 -1
  162. package/dist/src/internals/AutocompleteInteraction.d.ts +15 -5
  163. package/dist/src/internals/AutocompleteInteraction.d.ts.map +1 -1
  164. package/dist/src/internals/AutocompleteInteraction.js +27 -15
  165. package/dist/src/internals/AutocompleteInteraction.js.map +1 -1
  166. package/dist/src/internals/ButtonInteraction.d.ts +0 -1
  167. package/dist/src/internals/ButtonInteraction.d.ts.map +1 -1
  168. package/dist/src/internals/ButtonInteraction.js +0 -2
  169. package/dist/src/internals/ButtonInteraction.js.map +1 -1
  170. package/dist/src/internals/CommandHandler.d.ts +1 -1
  171. package/dist/src/internals/CommandHandler.d.ts.map +1 -1
  172. package/dist/src/internals/CommandHandler.js +25 -3
  173. package/dist/src/internals/CommandHandler.js.map +1 -1
  174. package/dist/src/internals/CommandInteraction.d.ts +7 -1
  175. package/dist/src/internals/CommandInteraction.d.ts.map +1 -1
  176. package/dist/src/internals/CommandInteraction.js +10 -4
  177. package/dist/src/internals/CommandInteraction.js.map +1 -1
  178. package/dist/src/internals/ComponentHandler.d.ts +8 -5
  179. package/dist/src/internals/ComponentHandler.d.ts.map +1 -1
  180. package/dist/src/internals/ComponentHandler.js +40 -16
  181. package/dist/src/internals/ComponentHandler.js.map +1 -1
  182. package/dist/src/internals/EventHandler.d.ts +7 -5
  183. package/dist/src/internals/EventHandler.d.ts.map +1 -1
  184. package/dist/src/internals/EventHandler.js +13 -11
  185. package/dist/src/internals/EventHandler.js.map +1 -1
  186. package/dist/src/internals/ModalHandler.d.ts +1 -1
  187. package/dist/src/internals/ModalHandler.d.ts.map +1 -1
  188. package/dist/src/internals/ModalHandler.js +6 -2
  189. package/dist/src/internals/ModalHandler.js.map +1 -1
  190. package/dist/src/internals/ModalInteraction.d.ts +2 -3
  191. package/dist/src/internals/ModalInteraction.d.ts.map +1 -1
  192. package/dist/src/internals/ModalInteraction.js +3 -4
  193. package/dist/src/internals/ModalInteraction.js.map +1 -1
  194. package/dist/src/internals/OptionsHandler.d.ts +13 -3
  195. package/dist/src/internals/OptionsHandler.d.ts.map +1 -1
  196. package/dist/src/internals/OptionsHandler.js +51 -1
  197. package/dist/src/internals/OptionsHandler.js.map +1 -1
  198. package/dist/src/permissions.d.ts +54 -0
  199. package/dist/src/permissions.d.ts.map +1 -0
  200. package/dist/src/permissions.js +4 -0
  201. package/dist/src/permissions.js.map +1 -0
  202. package/dist/src/plugins/command-data/CommandDataPlugin.d.ts +16 -0
  203. package/dist/src/plugins/command-data/CommandDataPlugin.d.ts.map +1 -0
  204. package/dist/src/plugins/command-data/CommandDataPlugin.js +46 -0
  205. package/dist/src/plugins/command-data/CommandDataPlugin.js.map +1 -0
  206. package/dist/src/plugins/command-data/index.d.ts +2 -0
  207. package/dist/src/plugins/command-data/index.d.ts.map +1 -0
  208. package/dist/src/plugins/command-data/index.js +2 -0
  209. package/dist/src/plugins/command-data/index.js.map +1 -0
  210. package/dist/src/plugins/gateway/GatewayPlugin.d.ts +41 -0
  211. package/dist/src/plugins/gateway/GatewayPlugin.d.ts.map +1 -0
  212. package/dist/src/plugins/gateway/GatewayPlugin.js +282 -0
  213. package/dist/src/plugins/gateway/GatewayPlugin.js.map +1 -0
  214. package/dist/src/plugins/gateway/index.d.ts +6 -0
  215. package/dist/src/plugins/gateway/index.d.ts.map +1 -0
  216. package/dist/src/plugins/gateway/index.js +6 -0
  217. package/dist/src/plugins/gateway/index.js.map +1 -0
  218. package/dist/src/plugins/gateway/types.d.ts +62 -0
  219. package/dist/src/plugins/gateway/types.d.ts.map +1 -0
  220. package/dist/src/plugins/gateway/types.js +5 -0
  221. package/dist/src/plugins/gateway/types.js.map +1 -0
  222. package/dist/src/plugins/gateway/utils/heartbeat.d.ts +17 -0
  223. package/dist/src/plugins/gateway/utils/heartbeat.d.ts.map +1 -0
  224. package/dist/src/plugins/gateway/utils/heartbeat.js +28 -0
  225. package/dist/src/plugins/gateway/utils/heartbeat.js.map +1 -0
  226. package/dist/src/plugins/gateway/utils/monitor.d.ts +37 -0
  227. package/dist/src/plugins/gateway/utils/monitor.d.ts.map +1 -0
  228. package/dist/src/plugins/gateway/utils/monitor.js +88 -0
  229. package/dist/src/plugins/gateway/utils/monitor.js.map +1 -0
  230. package/dist/src/plugins/gateway/utils/payload.d.ts +22 -0
  231. package/dist/src/plugins/gateway/utils/payload.d.ts.map +1 -0
  232. package/dist/src/plugins/gateway/utils/payload.js +47 -0
  233. package/dist/src/plugins/gateway/utils/payload.js.map +1 -0
  234. package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.d.ts +26 -0
  235. package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.d.ts.map +1 -0
  236. package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.js +74 -0
  237. package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.js.map +1 -0
  238. package/dist/src/plugins/gateway-forwarder/ShardedGatewayForwarderPlugin.d.ts +9 -0
  239. package/dist/src/plugins/gateway-forwarder/ShardedGatewayForwarderPlugin.d.ts.map +1 -0
  240. package/dist/src/plugins/gateway-forwarder/ShardedGatewayForwarderPlugin.js +10 -0
  241. package/dist/src/plugins/gateway-forwarder/ShardedGatewayForwarderPlugin.js.map +1 -0
  242. package/dist/src/plugins/gateway-forwarder/index.d.ts +4 -0
  243. package/dist/src/plugins/gateway-forwarder/index.d.ts.map +1 -0
  244. package/dist/src/plugins/gateway-forwarder/index.js +4 -0
  245. package/dist/src/plugins/gateway-forwarder/index.js.map +1 -0
  246. package/dist/src/plugins/linked-roles/LinkedRoles.d.ts +1 -0
  247. package/dist/src/plugins/linked-roles/LinkedRoles.d.ts.map +1 -1
  248. package/dist/src/plugins/linked-roles/LinkedRoles.js +1 -0
  249. package/dist/src/plugins/linked-roles/LinkedRoles.js.map +1 -1
  250. package/dist/src/plugins/paginator/Paginator.d.ts +51 -0
  251. package/dist/src/plugins/paginator/Paginator.d.ts.map +1 -0
  252. package/dist/src/plugins/paginator/Paginator.js +155 -0
  253. package/dist/src/plugins/paginator/Paginator.js.map +1 -0
  254. package/dist/src/plugins/paginator/index.d.ts +8 -0
  255. package/dist/src/plugins/paginator/index.d.ts.map +1 -0
  256. package/dist/src/plugins/paginator/index.js +8 -0
  257. package/dist/src/plugins/paginator/index.js.map +1 -0
  258. package/dist/src/plugins/sharding/ShardingPlugin.d.ts +43 -0
  259. package/dist/src/plugins/sharding/ShardingPlugin.d.ts.map +1 -0
  260. package/dist/src/plugins/sharding/ShardingPlugin.js +111 -0
  261. package/dist/src/plugins/sharding/ShardingPlugin.js.map +1 -0
  262. package/dist/src/plugins/sharding/index.d.ts +3 -0
  263. package/dist/src/plugins/sharding/index.d.ts.map +1 -0
  264. package/dist/src/plugins/sharding/index.js +3 -0
  265. package/dist/src/plugins/sharding/index.js.map +1 -0
  266. package/dist/src/structures/DmChannel.d.ts +3 -3
  267. package/dist/src/structures/DmChannel.d.ts.map +1 -1
  268. package/dist/src/structures/DmChannel.js +5 -3
  269. package/dist/src/structures/DmChannel.js.map +1 -1
  270. package/dist/src/structures/GroupDmChannel.d.ts +1 -1
  271. package/dist/src/structures/GroupDmChannel.d.ts.map +1 -1
  272. package/dist/src/structures/Guild.d.ts +186 -6
  273. package/dist/src/structures/Guild.d.ts.map +1 -1
  274. package/dist/src/structures/Guild.js +409 -13
  275. package/dist/src/structures/Guild.js.map +1 -1
  276. package/dist/src/structures/GuildCategoryChannel.d.ts +1 -1
  277. package/dist/src/structures/GuildCategoryChannel.d.ts.map +1 -1
  278. package/dist/src/structures/GuildForumChannel.d.ts +1 -1
  279. package/dist/src/structures/GuildForumChannel.d.ts.map +1 -1
  280. package/dist/src/structures/GuildMember.d.ts +15 -12
  281. package/dist/src/structures/GuildMember.d.ts.map +1 -1
  282. package/dist/src/structures/GuildMember.js +78 -19
  283. package/dist/src/structures/GuildMember.js.map +1 -1
  284. package/dist/src/structures/GuildStageOrVoiceChannel.d.ts +1 -1
  285. package/dist/src/structures/GuildStageOrVoiceChannel.d.ts.map +1 -1
  286. package/dist/src/structures/GuildTextChannel.d.ts +1 -1
  287. package/dist/src/structures/GuildTextChannel.d.ts.map +1 -1
  288. package/dist/src/structures/GuildThreadChannel.d.ts +1 -1
  289. package/dist/src/structures/GuildThreadChannel.d.ts.map +1 -1
  290. package/dist/src/structures/Message.d.ts +31 -14
  291. package/dist/src/structures/Message.d.ts.map +1 -1
  292. package/dist/src/structures/Message.js +126 -17
  293. package/dist/src/structures/Message.js.map +1 -1
  294. package/dist/src/structures/Poll.d.ts +25 -0
  295. package/dist/src/structures/Poll.d.ts.map +1 -0
  296. package/dist/src/structures/Poll.js +45 -0
  297. package/dist/src/structures/Poll.js.map +1 -0
  298. package/dist/src/structures/Role.d.ts +31 -13
  299. package/dist/src/structures/Role.d.ts.map +1 -1
  300. package/dist/src/structures/Role.js +50 -21
  301. package/dist/src/structures/Role.js.map +1 -1
  302. package/dist/src/structures/ThreadMember.d.ts +36 -0
  303. package/dist/src/structures/ThreadMember.d.ts.map +1 -0
  304. package/dist/src/structures/ThreadMember.js +72 -0
  305. package/dist/src/structures/ThreadMember.js.map +1 -0
  306. package/dist/src/structures/User.d.ts +10 -4
  307. package/dist/src/structures/User.d.ts.map +1 -1
  308. package/dist/src/structures/User.js +10 -1
  309. package/dist/src/structures/User.js.map +1 -1
  310. package/dist/src/structures/Webhook.d.ts +135 -0
  311. package/dist/src/structures/Webhook.d.ts.map +1 -0
  312. package/dist/src/structures/Webhook.js +239 -0
  313. package/dist/src/structures/Webhook.js.map +1 -0
  314. package/dist/src/types/index.d.ts +132 -0
  315. package/dist/src/types/index.d.ts.map +1 -0
  316. package/dist/src/types/index.js +2 -0
  317. package/dist/src/types/index.js.map +1 -0
  318. package/dist/src/types/listeners.d.ts +566 -0
  319. package/dist/src/types/listeners.d.ts.map +1 -0
  320. package/dist/src/types/listeners.js +12 -0
  321. package/dist/src/types/listeners.js.map +1 -0
  322. package/dist/src/utils/customIdParser.d.ts +3 -0
  323. package/dist/src/utils/customIdParser.d.ts.map +1 -0
  324. package/dist/src/utils/customIdParser.js +17 -0
  325. package/dist/src/utils/customIdParser.js.map +1 -0
  326. package/dist/src/utils/index.d.ts +4 -0
  327. package/dist/src/utils/index.d.ts.map +1 -0
  328. package/dist/src/utils/index.js +4 -0
  329. package/dist/src/utils/index.js.map +1 -0
  330. package/dist/src/utils/payload.d.ts +4 -0
  331. package/dist/src/utils/payload.d.ts.map +1 -0
  332. package/dist/src/utils/payload.js +45 -0
  333. package/dist/src/utils/payload.js.map +1 -0
  334. package/dist/src/utils/verification.d.ts +4 -0
  335. package/dist/src/utils/verification.d.ts.map +1 -0
  336. package/dist/src/{utils.js → utils/verification.js} +1 -26
  337. package/dist/src/utils/verification.js.map +1 -0
  338. package/dist/tsconfig.tsbuildinfo +1 -1
  339. package/package.json +8 -7
  340. package/dist/src/adapters/cloudflare/index.d.ts +0 -16
  341. package/dist/src/adapters/cloudflare/index.d.ts.map +0 -1
  342. package/dist/src/adapters/cloudflare/index.js +0 -17
  343. package/dist/src/adapters/cloudflare/index.js.map +0 -1
  344. package/dist/src/adapters/next/index.d.ts +0 -14
  345. package/dist/src/adapters/next/index.d.ts.map +0 -1
  346. package/dist/src/adapters/next/index.js +0 -17
  347. package/dist/src/adapters/next/index.js.map +0 -1
  348. package/dist/src/adapters/shared.d.ts +0 -10
  349. package/dist/src/adapters/shared.d.ts.map +0 -1
  350. package/dist/src/adapters/shared.js +0 -2
  351. package/dist/src/adapters/shared.js.map +0 -1
  352. package/dist/src/classes/Button.d.ts.map +0 -1
  353. package/dist/src/classes/Button.js.map +0 -1
  354. package/dist/src/classes/ChannelSelectMenu.d.ts.map +0 -1
  355. package/dist/src/classes/ChannelSelectMenu.js.map +0 -1
  356. package/dist/src/classes/MentionableSelectMenu.d.ts.map +0 -1
  357. package/dist/src/classes/MentionableSelectMenu.js.map +0 -1
  358. package/dist/src/classes/RoleSelectMenu.d.ts.map +0 -1
  359. package/dist/src/classes/RoleSelectMenu.js +0 -13
  360. package/dist/src/classes/RoleSelectMenu.js.map +0 -1
  361. package/dist/src/classes/Row.d.ts +0 -25
  362. package/dist/src/classes/Row.d.ts.map +0 -1
  363. package/dist/src/classes/Row.js.map +0 -1
  364. package/dist/src/classes/StringSelectMenu.d.ts +0 -13
  365. package/dist/src/classes/StringSelectMenu.d.ts.map +0 -1
  366. package/dist/src/classes/StringSelectMenu.js +0 -12
  367. package/dist/src/classes/StringSelectMenu.js.map +0 -1
  368. package/dist/src/classes/TextInput.d.ts.map +0 -1
  369. package/dist/src/classes/TextInput.js.map +0 -1
  370. package/dist/src/classes/UserSelectMenu.d.ts.map +0 -1
  371. package/dist/src/classes/UserSelectMenu.js +0 -13
  372. package/dist/src/classes/UserSelectMenu.js.map +0 -1
  373. package/dist/src/createHandle.d.ts +0 -20
  374. package/dist/src/createHandle.d.ts.map +0 -1
  375. package/dist/src/createHandle.js +0 -57
  376. package/dist/src/createHandle.js.map +0 -1
  377. package/dist/src/factories/channelFactory.d.ts.map +0 -1
  378. package/dist/src/factories/channelFactory.js.map +0 -1
  379. package/dist/src/types/messagePayload.d.ts +0 -37
  380. package/dist/src/types/messagePayload.d.ts.map +0 -1
  381. package/dist/src/types/messagePayload.js +0 -2
  382. package/dist/src/types/messagePayload.js.map +0 -1
  383. package/dist/src/types.d.ts +0 -38
  384. package/dist/src/types.d.ts.map +0 -1
  385. package/dist/src/types.js +0 -2
  386. package/dist/src/types.js.map +0 -1
  387. package/dist/src/utils.d.ts +0 -27
  388. package/dist/src/utils.d.ts.map +0 -1
  389. package/dist/src/utils.js.map +0 -1
  390. /package/dist/src/{factories → functions}/channelFactory.js +0 -0
@@ -0,0 +1,135 @@
1
+ import type { APIWebhook, RESTPatchAPIWebhookJSONBody, WebhookType } from "discord-api-types/v10";
2
+ import { Base } from "../abstracts/Base.js";
3
+ import type { Client } from "../classes/Client.js";
4
+ import type { IfPartial, MessagePayload } from "../types/index.js";
5
+ import { Message } from "./Message.js";
6
+ import { User } from "./User.js";
7
+ export type WebhookInput = APIWebhook | {
8
+ id: string;
9
+ token: string;
10
+ threadId?: string;
11
+ } | string;
12
+ export declare class Webhook<IsPartial extends boolean = false> extends Base {
13
+ constructor(client: Client, rawData: APIWebhook);
14
+ constructor(client: Client, idAndToken: {
15
+ id: string;
16
+ token: string;
17
+ threadId?: string;
18
+ });
19
+ constructor(client: Client, url: string);
20
+ constructor(client: Client, input: WebhookInput);
21
+ protected rawData: APIWebhook | null;
22
+ private setData;
23
+ /**
24
+ * The ID of the webhook
25
+ */
26
+ readonly id: string;
27
+ /**
28
+ * The token of the webhook
29
+ */
30
+ readonly token?: string;
31
+ /**
32
+ * The thread ID this webhook is for
33
+ */
34
+ readonly threadId?: string;
35
+ /**
36
+ * Whether the webhook is a partial webhook (meaning it does not have all the data).
37
+ * If this is true, you should use {@link Webhook.fetch} to get the full data of the webhook.
38
+ */
39
+ get partial(): IsPartial;
40
+ /**
41
+ * The type of the webhook
42
+ * @see https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types
43
+ */
44
+ get type(): IfPartial<IsPartial, WebhookType>;
45
+ /**
46
+ * The guild id this webhook is for
47
+ */
48
+ get guildId(): IfPartial<IsPartial, string | undefined>;
49
+ /**
50
+ * The channel id this webhook is for
51
+ */
52
+ get channelId(): IfPartial<IsPartial, string>;
53
+ /**
54
+ * The user this webhook was created by
55
+ * Not returned when getting a webhook with its token
56
+ */
57
+ get user(): IfPartial<IsPartial, User | undefined>;
58
+ /**
59
+ * The default name of the webhook
60
+ */
61
+ get name(): IfPartial<IsPartial, string | null>;
62
+ /**
63
+ * The default avatar of the webhook
64
+ */
65
+ get avatar(): IfPartial<IsPartial, string | null>;
66
+ /**
67
+ * Get the URL of the webhook's avatar
68
+ */
69
+ get avatarUrl(): IfPartial<IsPartial, string | null>;
70
+ /**
71
+ * The bot/OAuth2 application that created this webhook
72
+ */
73
+ get applicationId(): IfPartial<IsPartial, string | null>;
74
+ /**
75
+ * The guild of the channel that this webhook is following
76
+ * Only returned for Channel Follower Webhooks
77
+ */
78
+ get sourceGuild(): IfPartial<IsPartial, APIWebhook["source_guild"] | undefined>;
79
+ /**
80
+ * The channel that this webhook is following
81
+ * Only returned for Channel Follower Webhooks
82
+ */
83
+ get sourceChannel(): IfPartial<IsPartial, APIWebhook["source_channel"] | undefined>;
84
+ /**
85
+ * The url used for executing the webhook
86
+ * Only returned by the webhooks OAuth2 flow
87
+ */
88
+ get url(): IfPartial<IsPartial, string | undefined>;
89
+ /**
90
+ * Fetch this webhook's data
91
+ * @returns A Promise that resolves to a non-partial Webhook
92
+ */
93
+ fetch(): Promise<Webhook<false>>;
94
+ /**
95
+ * Modify this webhook
96
+ * @param data The data to modify the webhook with
97
+ * @returns A Promise that resolves to the modified webhook
98
+ */
99
+ modify(data: RESTPatchAPIWebhookJSONBody): Promise<Webhook<false>>;
100
+ /**
101
+ * Delete this webhook
102
+ * @returns A Promise that resolves when the webhook is deleted
103
+ */
104
+ delete(): Promise<void>;
105
+ /**
106
+ * Send a message through this webhook
107
+ * @param data The data to send with the webhook
108
+ * @param threadId Optional ID of the thread to send the message to. If not provided, uses the webhook's thread ID.
109
+ * @returns A Promise that resolves to the created message
110
+ */
111
+ send(data: MessagePayload, threadId?: string): Promise<Message>;
112
+ /**
113
+ * Edit a message sent by this webhook
114
+ * @param messageId The ID of the message to edit
115
+ * @param data The data to edit the message with
116
+ * @param threadId Optional ID of the thread to edit the message in. If not provided, uses the webhook's thread ID.
117
+ * @returns A Promise that resolves to the edited message
118
+ */
119
+ edit(messageId: string, data: MessagePayload, threadId?: string): Promise<Message>;
120
+ /**
121
+ * Delete a message sent by this webhook
122
+ * @param messageId The ID of the message to delete
123
+ * @param threadId Optional ID of the thread to delete the message from. If not provided, uses the webhook's thread ID.
124
+ * @returns A Promise that resolves when the message is deleted
125
+ */
126
+ deleteMessage(messageId: string, threadId?: string): Promise<void>;
127
+ /**
128
+ * Get a message sent by this webhook
129
+ * @param messageId The ID of the message to get
130
+ * @param threadId Optional ID of the thread to get the message from. If not provided, uses the webhook's thread ID.
131
+ * @returns A Promise that resolves to the message
132
+ */
133
+ getMessage(messageId: string, threadId?: string): Promise<Message>;
134
+ }
135
+ //# sourceMappingURL=Webhook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Webhook.d.ts","sourceRoot":"","sources":["../../../src/structures/Webhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EAEV,2BAA2B,EAG3B,WAAW,EACX,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,MAAM,MAAM,YAAY,GACrB,UAAU,GACV;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAChD,MAAM,CAAA;AAET,qBAAa,OAAO,CAAC,SAAS,SAAS,OAAO,GAAG,KAAK,CAAE,SAAQ,IAAI;gBACvD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU;gBAE9C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE;QACX,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,QAAQ,CAAC,EAAE,MAAM,CAAA;KACjB;gBAEU,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;gBAC3B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY;IAsB/C,SAAS,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAAO;IAC3C,OAAO,C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G,SAAS,CAAC,CAGlD;IAED;;;OAGG;IACG,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAWtC;;;;OAIG;IACG,MAAM,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAUxE;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B;;;;;OAKG;IACG,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAiBrE;;;;;;OAMG;IACG,IAAI,CACT,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,cAAc,EACpB,QAAQ,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC;IAiBnB;;;;;OAKG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYxE;;;;;OAKG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAWxE"}
@@ -0,0 +1,239 @@
1
+ import { Routes } from "discord-api-types/v10";
2
+ import { Base } from "../abstracts/Base.js";
3
+ import { serializePayload } from "../utils/index.js";
4
+ import { Message } from "./Message.js";
5
+ import { User } from "./User.js";
6
+ export class Webhook extends Base {
7
+ constructor(client, input) {
8
+ super(client);
9
+ if (typeof input === "string") {
10
+ const url = new URL(input);
11
+ if (url.protocol !== "https:")
12
+ throw new Error("Invalid URL");
13
+ const [id, token] = url.pathname.split("/").slice(2);
14
+ if (!id || !token)
15
+ throw new Error("Invalid URL");
16
+ this.id = id;
17
+ this.token = token;
18
+ const potentialThreadId = url.searchParams.get("thread_id");
19
+ this.threadId = potentialThreadId ?? undefined;
20
+ }
21
+ else {
22
+ if ("channel_id" in input) {
23
+ this.setData(input);
24
+ }
25
+ this.id = input.id;
26
+ this.token = input.token;
27
+ this.threadId = "threadId" in input ? input.threadId : undefined;
28
+ }
29
+ }
30
+ rawData = null;
31
+ setData(data) {
32
+ if (!data)
33
+ throw new Error("Cannot set data without having data... smh");
34
+ this.rawData = data;
35
+ }
36
+ /**
37
+ * The ID of the webhook
38
+ */
39
+ id;
40
+ /**
41
+ * The token of the webhook
42
+ */
43
+ token;
44
+ /**
45
+ * The thread ID this webhook is for
46
+ */
47
+ threadId;
48
+ /**
49
+ * Whether the webhook is a partial webhook (meaning it does not have all the data).
50
+ * If this is true, you should use {@link Webhook.fetch} to get the full data of the webhook.
51
+ */
52
+ get partial() {
53
+ return (this.rawData === null);
54
+ }
55
+ /**
56
+ * The type of the webhook
57
+ * @see https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types
58
+ */
59
+ get type() {
60
+ if (!this.rawData)
61
+ return undefined;
62
+ return this.rawData.type;
63
+ }
64
+ /**
65
+ * The guild id this webhook is for
66
+ */
67
+ get guildId() {
68
+ if (!this.rawData)
69
+ return undefined;
70
+ return this.rawData.guild_id;
71
+ }
72
+ /**
73
+ * The channel id this webhook is for
74
+ */
75
+ get channelId() {
76
+ if (!this.rawData)
77
+ return undefined;
78
+ return this.rawData.channel_id;
79
+ }
80
+ /**
81
+ * The user this webhook was created by
82
+ * Not returned when getting a webhook with its token
83
+ */
84
+ get user() {
85
+ if (!this.rawData?.user)
86
+ return undefined;
87
+ return new User(this.client, this.rawData.user);
88
+ }
89
+ /**
90
+ * The default name of the webhook
91
+ */
92
+ get name() {
93
+ if (!this.rawData)
94
+ return undefined;
95
+ return this.rawData.name;
96
+ }
97
+ /**
98
+ * The default avatar of the webhook
99
+ */
100
+ get avatar() {
101
+ if (!this.rawData)
102
+ return undefined;
103
+ return this.rawData.avatar;
104
+ }
105
+ /**
106
+ * Get the URL of the webhook's avatar
107
+ */
108
+ get avatarUrl() {
109
+ if (!this.rawData)
110
+ return undefined;
111
+ if (!this.avatar)
112
+ return null;
113
+ return `https://cdn.discordapp.com/avatars/${this.id}/${this.avatar}.png`;
114
+ }
115
+ /**
116
+ * The bot/OAuth2 application that created this webhook
117
+ */
118
+ get applicationId() {
119
+ if (!this.rawData)
120
+ return undefined;
121
+ return this.rawData.application_id;
122
+ }
123
+ /**
124
+ * The guild of the channel that this webhook is following
125
+ * Only returned for Channel Follower Webhooks
126
+ */
127
+ get sourceGuild() {
128
+ if (!this.rawData)
129
+ return undefined;
130
+ return this.rawData.source_guild;
131
+ }
132
+ /**
133
+ * The channel that this webhook is following
134
+ * Only returned for Channel Follower Webhooks
135
+ */
136
+ get sourceChannel() {
137
+ if (!this.rawData)
138
+ return undefined;
139
+ return this.rawData.source_channel;
140
+ }
141
+ /**
142
+ * The url used for executing the webhook
143
+ * Only returned by the webhooks OAuth2 flow
144
+ */
145
+ get url() {
146
+ if (!this.rawData)
147
+ return undefined;
148
+ return this.rawData.url;
149
+ }
150
+ /**
151
+ * Fetch this webhook's data
152
+ * @returns A Promise that resolves to a non-partial Webhook
153
+ */
154
+ async fetch() {
155
+ const newData = (await this.client.rest.get(Routes.webhook(this.id)));
156
+ if (!newData)
157
+ throw new Error(`Webhook ${this.id} not found`);
158
+ this.setData(newData);
159
+ return this;
160
+ }
161
+ /**
162
+ * Modify this webhook
163
+ * @param data The data to modify the webhook with
164
+ * @returns A Promise that resolves to the modified webhook
165
+ */
166
+ async modify(data) {
167
+ const newData = (await this.client.rest.patch(Routes.webhook(this.id), {
168
+ body: data
169
+ }));
170
+ this.setData(newData);
171
+ return this;
172
+ }
173
+ /**
174
+ * Delete this webhook
175
+ * @returns A Promise that resolves when the webhook is deleted
176
+ */
177
+ async delete() {
178
+ await this.client.rest.delete(Routes.webhook(this.id));
179
+ }
180
+ /**
181
+ * Send a message through this webhook
182
+ * @param data The data to send with the webhook
183
+ * @param threadId Optional ID of the thread to send the message to. If not provided, uses the webhook's thread ID.
184
+ * @returns A Promise that resolves to the created message
185
+ */
186
+ async send(data, threadId) {
187
+ if (!this.token)
188
+ throw new Error("Cannot send webhook message without token");
189
+ const serialized = serializePayload(data);
190
+ const finalThreadId = threadId || this.threadId;
191
+ const message = (await this.client.rest.post(Routes.webhook(this.id, this.token), {
192
+ body: serialized
193
+ }, finalThreadId ? { thread_id: finalThreadId } : undefined));
194
+ return new Message(this.client, message);
195
+ }
196
+ /**
197
+ * Edit a message sent by this webhook
198
+ * @param messageId The ID of the message to edit
199
+ * @param data The data to edit the message with
200
+ * @param threadId Optional ID of the thread to edit the message in. If not provided, uses the webhook's thread ID.
201
+ * @returns A Promise that resolves to the edited message
202
+ */
203
+ async edit(messageId, data, threadId) {
204
+ if (!this.token)
205
+ throw new Error("Cannot edit webhook message without token");
206
+ const serialized = serializePayload(data);
207
+ const finalThreadId = threadId || this.threadId;
208
+ const message = (await this.client.rest.patch(Routes.webhookMessage(this.id, this.token, messageId), {
209
+ body: serialized
210
+ }, finalThreadId ? { thread_id: finalThreadId } : undefined));
211
+ return new Message(this.client, message);
212
+ }
213
+ /**
214
+ * Delete a message sent by this webhook
215
+ * @param messageId The ID of the message to delete
216
+ * @param threadId Optional ID of the thread to delete the message from. If not provided, uses the webhook's thread ID.
217
+ * @returns A Promise that resolves when the message is deleted
218
+ */
219
+ async deleteMessage(messageId, threadId) {
220
+ if (!this.token)
221
+ throw new Error("Cannot delete webhook message without token");
222
+ const finalThreadId = threadId || this.threadId;
223
+ await this.client.rest.delete(Routes.webhookMessage(this.id, this.token, messageId), undefined, finalThreadId ? { thread_id: finalThreadId } : undefined);
224
+ }
225
+ /**
226
+ * Get a message sent by this webhook
227
+ * @param messageId The ID of the message to get
228
+ * @param threadId Optional ID of the thread to get the message from. If not provided, uses the webhook's thread ID.
229
+ * @returns A Promise that resolves to the message
230
+ */
231
+ async getMessage(messageId, threadId) {
232
+ if (!this.token)
233
+ throw new Error("Cannot get webhook message without token");
234
+ const finalThreadId = threadId || this.threadId;
235
+ const message = (await this.client.rest.get(Routes.webhookMessage(this.id, this.token, messageId), finalThreadId ? { thread_id: finalThreadId } : undefined));
236
+ return new Message(this.client, message);
237
+ }
238
+ }
239
+ //# sourceMappingURL=Webhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Webhook.js","sourceRoot":"","sources":["../../../src/structures/Webhook.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAOhC,MAAM,OAAO,OAA2C,SAAQ,IAAI;IAYnE,YAAY,MAAc,EAAE,KAAmB;QAC9C,KAAK,CAAC,MAAM,CAAC,CAAA;QACb,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAA;YAC1B,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ;gBAAE,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAA;YAC7D,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;YACpD,IAAI,CAAC,EAAE,IAAI,CAAC,KAAK;gBAAE,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAA;YACjD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;YACZ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;YAClB,MAAM,iBAAiB,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;YAC3D,IAAI,CAAC,QAAQ,GAAG,iBAAiB,IAAI,SAAS,CAAA;QAC/C,CAAC;aAAM,CAAC;YACP,IAAI,YA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,CAAC,QAAQ,CAAA;QAC/C,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAC5B,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,EACrD,SAAS,EACT,aAAa,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,SAAS,CACxD,CAAA;IACF,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CAAC,SAAiB,EAAE,QAAiB;QACpD,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;QAE5E,MAAM,aAAa,GAAG,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAA;QAC/C,MAAM,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAC1C,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,EACrD,aAAa,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,SAAS,CACxD,CAAsC,CAAA;QAEvC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,CAAC;CACD"}
@@ -0,0 +1,132 @@
1
+ import type { APIAllowedMentions, APIAttachment } from "discord-api-types/v10";
2
+ import type { BaseMessageInteractiveComponent } from "../abstracts/BaseMessageInteractiveComponent.js";
3
+ import type { Embed } from "../classes/Embed.js";
4
+ import type { Container } from "../classes/components/Container.js";
5
+ import type { File } from "../classes/components/File.js";
6
+ import type { MediaGallery } from "../classes/components/MediaGallery.js";
7
+ import type { Row } from "../classes/components/Row.js";
8
+ import type { Section } from "../classes/components/Section.js";
9
+ import type { Separator } from "../classes/components/Separator.js";
10
+ import type { TextDisplay } from "../classes/components/TextDisplay.js";
11
+ export type ComponentParserResult = {
12
+ key: string;
13
+ data: Record<string, string | number | boolean>;
14
+ };
15
+ export type ComponentData<T extends keyof ComponentParserResult["data"] = keyof ComponentParserResult["data"]> = {
16
+ [K in T]: ComponentParserResult["data"][K];
17
+ };
18
+ export type AllowedMentions = APIAllowedMentions;
19
+ export type TopLevelComponents = Row<BaseMessageInteractiveComponent> | Container | File | MediaGallery | Section | Separator | TextDisplay;
20
+ export type PollSendPayload = {
21
+ question: {
22
+ /**
23
+ * The text of the question, up to 300 characters
24
+ */
25
+ text?: string;
26
+ };
27
+ answers: {
28
+ /**
29
+ * The text of the answer, up to 55 characters
30
+ */
31
+ text?: string;
32
+ /**
33
+ * The emoji of the answer.
34
+ * When creating a poll answer with an emoji,
35
+ * you only need to send either the id (custom emoji) or name (default emoji) as the only field.
36
+ */
37
+ emoji?: {
38
+ name: string;
39
+ id: string;
40
+ };
41
+ }[];
42
+ /**
43
+ * The time in seconds before the poll expires.
44
+ */
45
+ expiry: number;
46
+ /**
47
+ * Whether the poll allows multiple answers
48
+ */
49
+ allowMultiselect: boolean;
50
+ /**
51
+ * The layout type of the poll.
52
+ * Currently only 1 is supported, and will be set by default.
53
+ * @default 1
54
+ */
55
+ layoutType?: 1;
56
+ };
57
+ export type MessagePayloadObject = {
58
+ /**
59
+ * The content of the message
60
+ */
61
+ content?: string;
62
+ /**
63
+ * The embeds of the message
64
+ */
65
+ embeds?: Embed[];
66
+ /**
67
+ * The components to send in the message
68
+ */
69
+ components?: TopLevelComponents[];
70
+ /**
71
+ * The settings for which mentions are allowed in the message
72
+ */
73
+ allowedMentions?: AllowedMentions;
74
+ /**
75
+ * The flags for the message
76
+ */
77
+ flags?: number;
78
+ /**
79
+ * Whether the message should be TTS
80
+ */
81
+ tts?: boolean;
82
+ /**
83
+ * The files to send in the message
84
+ */
85
+ files?: MessagePayloadFile[];
86
+ /**
87
+ * The poll to send in the message
88
+ */
89
+ poll?: PollSendPayload;
90
+ };
91
+ /**
92
+ * The data that is sent to Discord when sending a message.
93
+ * If you pass just a string, it will be treated as the content of the message.
94
+ */
95
+ export type MessagePayload = string | MessagePayloadObject;
96
+ /**
97
+ * The data for a file to send in an interaction
98
+ */
99
+ export type MessagePayloadFile = {
100
+ /**
101
+ * The name of the file that will be given to Discord
102
+ */
103
+ name: string;
104
+ /**
105
+ * The data of the file in a Blob
106
+ */
107
+ data: Blob;
108
+ /**
109
+ * The alt text of the file, shown for accessibility
110
+ */
111
+ description?: string;
112
+ };
113
+ export type VoiceState = {
114
+ guildId?: string;
115
+ channelId: string | null;
116
+ userId: string;
117
+ sessionId: string;
118
+ deaf: boolean;
119
+ mute: boolean;
120
+ selfDeaf: boolean;
121
+ selfMute: boolean;
122
+ selfStream: boolean;
123
+ selfVideo: boolean;
124
+ suppress: boolean;
125
+ requestToSpeakTimestamp: string | null;
126
+ };
127
+ export type ResolvedFile = APIAttachment;
128
+ export type BaseMessageInteractiveComponentConstructor = new (...args: any[]) => BaseMessageInteractiveComponent;
129
+ export type ArrayOrSingle<T> = T | T[];
130
+ export type IfPartial<T, U, V = U | undefined> = T extends true ? V : U;
131
+ export * from "./listeners.js";
132
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAA;AACtG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAA;AACzE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,8BA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CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAA;AACtC,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,IAAI,CAAC,SAAS,IAAI,GAAG,CAAC,GAAG,CAAC,CAAA;AAEvE,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./listeners.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAwJA,cAAc,gBAAgB,CAAA"}