@buape/carbon 0.6.1 → 0.8.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 (287) hide show
  1. package/dist/package.json +8 -7
  2. package/dist/src/abstracts/AnySelectMenu.d.ts +2 -2
  3. package/dist/src/abstracts/AnySelectMenu.d.ts.map +1 -1
  4. package/dist/src/abstracts/AnySelectMenu.js +2 -2
  5. package/dist/src/abstracts/AnySelectMenu.js.map +1 -1
  6. package/dist/src/abstracts/BaseChannel.d.ts +2 -2
  7. package/dist/src/abstracts/BaseChannel.d.ts.map +1 -1
  8. package/dist/src/abstracts/BaseChannel.js +2 -1
  9. package/dist/src/abstracts/BaseChannel.js.map +1 -1
  10. package/dist/src/abstracts/BaseCommand.d.ts +7 -4
  11. package/dist/src/abstracts/BaseCommand.d.ts.map +1 -1
  12. package/dist/src/abstracts/BaseCommand.js +17 -4
  13. package/dist/src/abstracts/BaseCommand.js.map +1 -1
  14. package/dist/src/abstracts/BaseComponent.d.ts +10 -24
  15. package/dist/src/abstracts/BaseComponent.d.ts.map +1 -1
  16. package/dist/src/abstracts/BaseComponent.js +5 -25
  17. package/dist/src/abstracts/BaseComponent.js.map +1 -1
  18. package/dist/src/abstracts/BaseComponentInteraction.d.ts +3 -3
  19. package/dist/src/abstracts/BaseComponentInteraction.d.ts.map +1 -1
  20. package/dist/src/abstracts/BaseComponentInteraction.js +2 -3
  21. package/dist/src/abstracts/BaseComponentInteraction.js.map +1 -1
  22. package/dist/src/abstracts/BaseGuildChannel.d.ts +1 -1
  23. package/dist/src/abstracts/BaseGuildChannel.d.ts.map +1 -1
  24. package/dist/src/abstracts/BaseInteraction.d.ts +5 -35
  25. package/dist/src/abstracts/BaseInteraction.d.ts.map +1 -1
  26. package/dist/src/abstracts/BaseInteraction.js +10 -24
  27. package/dist/src/abstracts/BaseInteraction.js.map +1 -1
  28. package/dist/src/abstracts/BaseListener.d.ts +13 -0
  29. package/dist/src/abstracts/BaseListener.d.ts.map +1 -0
  30. package/dist/src/abstracts/BaseListener.js +8 -0
  31. package/dist/src/abstracts/BaseListener.js.map +1 -0
  32. package/dist/src/abstracts/BaseMessageInteractiveComponent.d.ts +33 -0
  33. package/dist/src/abstracts/BaseMessageInteractiveComponent.d.ts.map +1 -0
  34. package/dist/src/abstracts/BaseMessageInteractiveComponent.js +33 -0
  35. package/dist/src/abstracts/BaseMessageInteractiveComponent.js.map +1 -0
  36. package/dist/src/abstracts/BaseModalComponent.d.ts +23 -0
  37. package/dist/src/abstracts/BaseModalComponent.d.ts.map +1 -0
  38. package/dist/src/abstracts/BaseModalComponent.js +25 -0
  39. package/dist/src/abstracts/BaseModalComponent.js.map +1 -0
  40. package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts +1 -1
  41. package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts.map +1 -1
  42. package/dist/src/abstracts/Plugin.d.ts +36 -1
  43. package/dist/src/abstracts/Plugin.d.ts.map +1 -1
  44. package/dist/src/abstracts/Plugin.js +3 -1
  45. package/dist/src/abstracts/Plugin.js.map +1 -1
  46. package/dist/src/adapters/bun/index.d.ts +8 -12
  47. package/dist/src/adapters/bun/index.d.ts.map +1 -1
  48. package/dist/src/adapters/bun/index.js +9 -13
  49. package/dist/src/adapters/bun/index.js.map +1 -1
  50. package/dist/src/adapters/fetch/index.d.ts +10 -0
  51. package/dist/src/adapters/fetch/index.d.ts.map +1 -0
  52. package/dist/src/adapters/fetch/index.js +45 -0
  53. package/dist/src/adapters/fetch/index.js.map +1 -0
  54. package/dist/src/adapters/node/index.d.ts +8 -12
  55. package/dist/src/adapters/node/index.d.ts.map +1 -1
  56. package/dist/src/adapters/node/index.js +10 -13
  57. package/dist/src/adapters/node/index.js.map +1 -1
  58. package/dist/src/classes/Client.d.ts +56 -9
  59. package/dist/src/classes/Client.d.ts.map +1 -1
  60. package/dist/src/classes/Client.js +94 -21
  61. package/dist/src/classes/Client.js.map +1 -1
  62. package/dist/src/classes/Listener.d.ts +359 -0
  63. package/dist/src/classes/Listener.d.ts.map +1 -0
  64. package/dist/src/classes/Listener.js +911 -0
  65. package/dist/src/classes/Listener.js.map +1 -0
  66. package/dist/src/classes/Modal.d.ts +3 -3
  67. package/dist/src/classes/Modal.d.ts.map +1 -1
  68. package/dist/src/classes/Modal.js.map +1 -1
  69. package/dist/src/classes/RequestClient.d.ts +77 -0
  70. package/dist/src/classes/RequestClient.d.ts.map +1 -0
  71. package/dist/src/classes/RequestClient.js +213 -0
  72. package/dist/src/classes/RequestClient.js.map +1 -0
  73. package/dist/src/classes/{Button.d.ts → components/Button.d.ts} +5 -4
  74. package/dist/src/classes/components/Button.d.ts.map +1 -0
  75. package/dist/src/classes/{Button.js → components/Button.js} +3 -2
  76. package/dist/src/classes/components/Button.js.map +1 -0
  77. package/dist/src/classes/{ChannelSelectMenu.d.ts → components/ChannelSelectMenu.d.ts} +4 -3
  78. package/dist/src/classes/components/ChannelSelectMenu.d.ts.map +1 -0
  79. package/dist/src/classes/{ChannelSelectMenu.js → components/ChannelSelectMenu.js} +2 -1
  80. package/dist/src/classes/components/ChannelSelectMenu.js.map +1 -0
  81. package/dist/src/classes/components/Container.d.ts +26 -0
  82. package/dist/src/classes/components/Container.d.ts.map +1 -0
  83. package/dist/src/classes/components/Container.js +30 -0
  84. package/dist/src/classes/components/Container.js.map +1 -0
  85. package/dist/src/classes/components/File.d.ts +21 -0
  86. package/dist/src/classes/components/File.d.ts.map +1 -0
  87. package/dist/src/classes/components/File.js +33 -0
  88. package/dist/src/classes/components/File.js.map +1 -0
  89. package/dist/src/classes/components/MediaGallery.d.ts +27 -0
  90. package/dist/src/classes/components/MediaGallery.d.ts.map +1 -0
  91. package/dist/src/classes/components/MediaGallery.js +27 -0
  92. package/dist/src/classes/components/MediaGallery.js.map +1 -0
  93. package/dist/src/classes/{MentionableSelectMenu.d.ts → components/MentionableSelectMenu.d.ts} +4 -3
  94. package/dist/src/classes/components/MentionableSelectMenu.d.ts.map +1 -0
  95. package/dist/src/classes/{MentionableSelectMenu.js → components/MentionableSelectMenu.js} +2 -1
  96. package/dist/src/classes/components/MentionableSelectMenu.js.map +1 -0
  97. package/dist/src/classes/{RoleSelectMenu.d.ts → components/RoleSelectMenu.d.ts} +4 -3
  98. package/dist/src/classes/components/RoleSelectMenu.d.ts.map +1 -0
  99. package/dist/src/classes/{RoleSelectMenu.js → components/RoleSelectMenu.js} +2 -1
  100. package/dist/src/classes/components/RoleSelectMenu.js.map +1 -0
  101. package/dist/src/classes/components/Row.d.ts +29 -0
  102. package/dist/src/classes/components/Row.d.ts.map +1 -0
  103. package/dist/src/classes/{Row.js → components/Row.js} +8 -2
  104. package/dist/src/classes/components/Row.js.map +1 -0
  105. package/dist/src/classes/components/Section.d.ts +22 -0
  106. package/dist/src/classes/components/Section.d.ts.map +1 -0
  107. package/dist/src/classes/components/Section.js +15 -0
  108. package/dist/src/classes/components/Section.js.map +1 -0
  109. package/dist/src/classes/components/Separator.d.ts +22 -0
  110. package/dist/src/classes/components/Separator.d.ts.map +1 -0
  111. package/dist/src/classes/components/Separator.js +33 -0
  112. package/dist/src/classes/components/Separator.js.map +1 -0
  113. package/dist/src/classes/{StringSelectMenu.d.ts → components/StringSelectMenu.d.ts} +4 -3
  114. package/dist/src/classes/components/StringSelectMenu.d.ts.map +1 -0
  115. package/dist/src/classes/{StringSelectMenu.js → components/StringSelectMenu.js} +2 -1
  116. package/dist/src/classes/components/StringSelectMenu.js.map +1 -0
  117. package/dist/src/classes/components/TextDisplay.d.ts +10 -0
  118. package/dist/src/classes/components/TextDisplay.d.ts.map +1 -0
  119. package/dist/src/classes/components/TextDisplay.js +19 -0
  120. package/dist/src/classes/components/TextDisplay.js.map +1 -0
  121. package/dist/src/classes/{TextInput.d.ts → components/TextInput.d.ts} +4 -3
  122. package/dist/src/classes/components/TextInput.d.ts.map +1 -0
  123. package/dist/src/classes/{TextInput.js → components/TextInput.js} +3 -2
  124. package/dist/src/classes/components/TextInput.js.map +1 -0
  125. package/dist/src/classes/components/Thumbnail.d.ts +13 -0
  126. package/dist/src/classes/components/Thumbnail.d.ts.map +1 -0
  127. package/dist/src/classes/components/Thumbnail.js +16 -0
  128. package/dist/src/classes/components/Thumbnail.js.map +1 -0
  129. package/dist/src/classes/{UserSelectMenu.d.ts → components/UserSelectMenu.d.ts} +4 -3
  130. package/dist/src/classes/components/UserSelectMenu.d.ts.map +1 -0
  131. package/dist/src/classes/{UserSelectMenu.js → components/UserSelectMenu.js} +2 -1
  132. package/dist/src/classes/components/UserSelectMenu.js.map +1 -0
  133. package/dist/src/errors/BaseError.d.ts +3 -0
  134. package/dist/src/errors/BaseError.d.ts.map +1 -0
  135. package/dist/src/errors/BaseError.js +3 -0
  136. package/dist/src/errors/BaseError.js.map +1 -0
  137. package/dist/src/errors/DiscordError.d.ts +25 -0
  138. package/dist/src/errors/DiscordError.d.ts.map +1 -0
  139. package/dist/src/errors/DiscordError.js +31 -0
  140. package/dist/src/errors/DiscordError.js.map +1 -0
  141. package/dist/src/errors/RatelimitError.d.ts +15 -0
  142. package/dist/src/errors/RatelimitError.d.ts.map +1 -0
  143. package/dist/src/errors/RatelimitError.js +18 -0
  144. package/dist/src/errors/RatelimitError.js.map +1 -0
  145. package/dist/src/{factories → functions}/channelFactory.d.ts +3 -2
  146. package/dist/src/functions/channelFactory.d.ts.map +1 -0
  147. package/dist/src/functions/channelFactory.js.map +1 -0
  148. package/dist/src/functions/errorsMapper.d.ts +14 -0
  149. package/dist/src/functions/errorsMapper.d.ts.map +1 -0
  150. package/dist/src/functions/errorsMapper.js +34 -0
  151. package/dist/src/functions/errorsMapper.js.map +1 -0
  152. package/dist/src/index.d.ts +78 -13
  153. package/dist/src/index.d.ts.map +1 -1
  154. package/dist/src/index.js +31 -14
  155. package/dist/src/index.js.map +1 -1
  156. package/dist/src/internals/AutocompleteInteraction.d.ts +6 -2
  157. package/dist/src/internals/AutocompleteInteraction.d.ts.map +1 -1
  158. package/dist/src/internals/AutocompleteInteraction.js +14 -12
  159. package/dist/src/internals/AutocompleteInteraction.js.map +1 -1
  160. package/dist/src/internals/ComponentHandler.d.ts +3 -3
  161. package/dist/src/internals/ComponentHandler.d.ts.map +1 -1
  162. package/dist/src/internals/ComponentHandler.js +6 -6
  163. package/dist/src/internals/ComponentHandler.js.map +1 -1
  164. package/dist/src/internals/EventHandler.d.ts +11 -0
  165. package/dist/src/internals/EventHandler.d.ts.map +1 -0
  166. package/dist/src/internals/EventHandler.js +18 -0
  167. package/dist/src/internals/EventHandler.js.map +1 -0
  168. package/dist/src/internals/ModalInteraction.d.ts +2 -3
  169. package/dist/src/internals/ModalInteraction.d.ts.map +1 -1
  170. package/dist/src/internals/ModalInteraction.js +2 -3
  171. package/dist/src/internals/ModalInteraction.js.map +1 -1
  172. package/dist/src/plugins/gateway/GatewayPlugin.d.ts +41 -0
  173. package/dist/src/plugins/gateway/GatewayPlugin.d.ts.map +1 -0
  174. package/dist/src/plugins/gateway/GatewayPlugin.js +249 -0
  175. package/dist/src/plugins/gateway/GatewayPlugin.js.map +1 -0
  176. package/dist/src/plugins/gateway/index.d.ts +6 -0
  177. package/dist/src/plugins/gateway/index.d.ts.map +1 -0
  178. package/dist/src/plugins/gateway/index.js +6 -0
  179. package/dist/src/plugins/gateway/index.js.map +1 -0
  180. package/dist/src/plugins/gateway/types.d.ts +62 -0
  181. package/dist/src/plugins/gateway/types.d.ts.map +1 -0
  182. package/dist/src/plugins/gateway/types.js +5 -0
  183. package/dist/src/plugins/gateway/types.js.map +1 -0
  184. package/dist/src/plugins/gateway/utils/heartbeat.d.ts +17 -0
  185. package/dist/src/plugins/gateway/utils/heartbeat.d.ts.map +1 -0
  186. package/dist/src/plugins/gateway/utils/heartbeat.js +28 -0
  187. package/dist/src/plugins/gateway/utils/heartbeat.js.map +1 -0
  188. package/dist/src/plugins/gateway/utils/monitor.d.ts +35 -0
  189. package/dist/src/plugins/gateway/utils/monitor.d.ts.map +1 -0
  190. package/dist/src/plugins/gateway/utils/monitor.js +79 -0
  191. package/dist/src/plugins/gateway/utils/monitor.js.map +1 -0
  192. package/dist/src/plugins/gateway/utils/payload.d.ts +21 -0
  193. package/dist/src/plugins/gateway/utils/payload.d.ts.map +1 -0
  194. package/dist/src/plugins/gateway/utils/payload.js +46 -0
  195. package/dist/src/plugins/gateway/utils/payload.js.map +1 -0
  196. package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.d.ts +26 -0
  197. package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.d.ts.map +1 -0
  198. package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.js +74 -0
  199. package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.js.map +1 -0
  200. package/dist/src/plugins/gateway-forwarder/index.d.ts +3 -0
  201. package/dist/src/plugins/gateway-forwarder/index.d.ts.map +1 -0
  202. package/dist/src/plugins/gateway-forwarder/index.js +3 -0
  203. package/dist/src/plugins/gateway-forwarder/index.js.map +1 -0
  204. package/dist/src/plugins/linked-roles/LinkedRoles.d.ts +24 -27
  205. package/dist/src/plugins/linked-roles/LinkedRoles.d.ts.map +1 -1
  206. package/dist/src/plugins/linked-roles/LinkedRoles.js +37 -28
  207. package/dist/src/plugins/linked-roles/LinkedRoles.js.map +1 -1
  208. package/dist/src/plugins/sharding/ShardingPlugin.d.ts +42 -0
  209. package/dist/src/plugins/sharding/ShardingPlugin.d.ts.map +1 -0
  210. package/dist/src/plugins/sharding/ShardingPlugin.js +110 -0
  211. package/dist/src/plugins/sharding/ShardingPlugin.js.map +1 -0
  212. package/dist/src/plugins/sharding/index.d.ts +3 -0
  213. package/dist/src/plugins/sharding/index.d.ts.map +1 -0
  214. package/dist/src/plugins/sharding/index.js +3 -0
  215. package/dist/src/plugins/sharding/index.js.map +1 -0
  216. package/dist/src/structures/DmChannel.d.ts +1 -1
  217. package/dist/src/structures/DmChannel.d.ts.map +1 -1
  218. package/dist/src/structures/Guild.d.ts +2 -1
  219. package/dist/src/structures/Guild.d.ts.map +1 -1
  220. package/dist/src/structures/Guild.js +3 -1
  221. package/dist/src/structures/Guild.js.map +1 -1
  222. package/dist/src/structures/Message.d.ts +10 -12
  223. package/dist/src/structures/Message.d.ts.map +1 -1
  224. package/dist/src/structures/Message.js +57 -8
  225. package/dist/src/structures/Message.js.map +1 -1
  226. package/dist/src/structures/Role.d.ts +2 -1
  227. package/dist/src/structures/Role.d.ts.map +1 -1
  228. package/dist/src/structures/Role.js +2 -0
  229. package/dist/src/structures/Role.js.map +1 -1
  230. package/dist/src/structures/User.d.ts +3 -2
  231. package/dist/src/structures/User.d.ts.map +1 -1
  232. package/dist/src/structures/User.js +2 -0
  233. package/dist/src/structures/User.js.map +1 -1
  234. package/dist/src/types/index.d.ts +67 -0
  235. package/dist/src/types/index.d.ts.map +1 -0
  236. package/dist/src/types/index.js +2 -0
  237. package/dist/src/types/index.js.map +1 -0
  238. package/dist/src/types/listeners.d.ts +539 -0
  239. package/dist/src/types/listeners.d.ts.map +1 -0
  240. package/dist/src/types/listeners.js +12 -0
  241. package/dist/src/types/listeners.js.map +1 -0
  242. package/dist/src/utils.d.ts +3 -16
  243. package/dist/src/utils.d.ts.map +1 -1
  244. package/dist/src/utils.js +18 -1
  245. package/dist/src/utils.js.map +1 -1
  246. package/dist/tsconfig.tsbuildinfo +1 -1
  247. package/package.json +8 -7
  248. package/dist/src/adapters/cloudflare/index.d.ts +0 -16
  249. package/dist/src/adapters/cloudflare/index.d.ts.map +0 -1
  250. package/dist/src/adapters/cloudflare/index.js +0 -17
  251. package/dist/src/adapters/cloudflare/index.js.map +0 -1
  252. package/dist/src/adapters/next/index.d.ts +0 -14
  253. package/dist/src/adapters/next/index.d.ts.map +0 -1
  254. package/dist/src/adapters/next/index.js +0 -17
  255. package/dist/src/adapters/next/index.js.map +0 -1
  256. package/dist/src/adapters/shared.d.ts +0 -10
  257. package/dist/src/adapters/shared.d.ts.map +0 -1
  258. package/dist/src/adapters/shared.js +0 -2
  259. package/dist/src/adapters/shared.js.map +0 -1
  260. package/dist/src/classes/Button.d.ts.map +0 -1
  261. package/dist/src/classes/Button.js.map +0 -1
  262. package/dist/src/classes/ChannelSelectMenu.d.ts.map +0 -1
  263. package/dist/src/classes/ChannelSelectMenu.js.map +0 -1
  264. package/dist/src/classes/MentionableSelectMenu.d.ts.map +0 -1
  265. package/dist/src/classes/MentionableSelectMenu.js.map +0 -1
  266. package/dist/src/classes/RoleSelectMenu.d.ts.map +0 -1
  267. package/dist/src/classes/RoleSelectMenu.js.map +0 -1
  268. package/dist/src/classes/Row.d.ts +0 -25
  269. package/dist/src/classes/Row.d.ts.map +0 -1
  270. package/dist/src/classes/Row.js.map +0 -1
  271. package/dist/src/classes/StringSelectMenu.d.ts.map +0 -1
  272. package/dist/src/classes/StringSelectMenu.js.map +0 -1
  273. package/dist/src/classes/TextInput.d.ts.map +0 -1
  274. package/dist/src/classes/TextInput.js.map +0 -1
  275. package/dist/src/classes/UserSelectMenu.d.ts.map +0 -1
  276. package/dist/src/classes/UserSelectMenu.js.map +0 -1
  277. package/dist/src/createHandle.d.ts +0 -20
  278. package/dist/src/createHandle.d.ts.map +0 -1
  279. package/dist/src/createHandle.js +0 -57
  280. package/dist/src/createHandle.js.map +0 -1
  281. package/dist/src/factories/channelFactory.d.ts.map +0 -1
  282. package/dist/src/factories/channelFactory.js.map +0 -1
  283. package/dist/src/types.d.ts +0 -37
  284. package/dist/src/types.d.ts.map +0 -1
  285. package/dist/src/types.js +0 -2
  286. package/dist/src/types.js.map +0 -1
  287. /package/dist/src/{factories → functions}/channelFactory.js +0 -0
@@ -0,0 +1,27 @@
1
+ import { ComponentType } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ /**
4
+ * A media gallery component can display between 1 and 10 images.
5
+ * Each image can be a direct online URL or an attachment://<name> reference.
6
+ */
7
+ export class MediaGallery extends BaseComponent {
8
+ type = ComponentType.MediaGallery;
9
+ isV2 = true;
10
+ serialize = () => {
11
+ if (this.items.length < 1 || this.items.length > 10) {
12
+ throw new Error("MediaGallery must have between 1 and 10 items");
13
+ }
14
+ return {
15
+ type: ComponentType.MediaGallery,
16
+ id: this.id,
17
+ items: this.items.map((item) => ({
18
+ media: {
19
+ url: item.url
20
+ },
21
+ description: item.description,
22
+ spoiler: item.spoiler
23
+ }))
24
+ };
25
+ };
26
+ }
27
+ //# sourceMappingURL=MediaGallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaGallery.js","sourceRoot":"","sources":["../../../../src/classes/components/MediaGallery.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE;;;GAGG;AACH,MAAM,OAAgB,YAAa,SAAQ,aAAa;IAC9C,IAAI,GAAG,aAAa,CAAC,YAAqB,CAAA;IAC1C,IAAI,GAAG,IAAI,CAAA;IAkBpB,SAAS,GAAG,GAA6B,EAAE;QAC1C,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YACrD,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;QACjE,CAAC;QACD,OAAO;YACN,IAAI,EAAE,aAAa,CAAC,YAAY;YAChC,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAChC,KAAK,EAAE;oBACN,GAAG,EAAE,IAAI,CAAC,GAAG;iBACb;gBACD,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;aACrB,CAAC,CAAC;SACH,CAAA;IACF,CAAC,CAAA;CACD"}
@@ -1,8 +1,9 @@
1
1
  import { type APIMentionableSelectComponent, ComponentType } from "discord-api-types/v10";
2
- import { AnySelectMenu } from "../abstracts/AnySelectMenu.js";
3
- import type { MentionableSelectMenuInteraction } from "../internals/MentionableSelectMenuInteraction.js";
2
+ import { AnySelectMenu } from "../../abstracts/AnySelectMenu.js";
3
+ import type { MentionableSelectMenuInteraction } from "../../internals/MentionableSelectMenuInteraction.js";
4
4
  export declare abstract class MentionableSelectMenu extends AnySelectMenu {
5
- type: ComponentType.MentionableSelect;
5
+ readonly type: ComponentType.MentionableSelect;
6
+ readonly isV2 = false;
6
7
  defaultValues?: APIMentionableSelectComponent["default_values"];
7
8
  abstract run(interaction: MentionableSelectMenuInteraction): Promise<void>;
8
9
  serializeOptions(): {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MentionableSelectMenu.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/MentionableSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,6BAA6B,EAClC,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAA;AAE3G,8BAAsB,qBAAsB,SAAQ,aAAa;IAChE,QAAQ,CAAC,IAAI,kCAA2C;IACxD,QAAQ,CAAC,IAAI,SAAQ;IACrB,aAAa,CAAC,EAAE,6BAA6B,CAAC,gBAAgB,CAAC,CAAA;IAC/D,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,gCAAgC,GAAG,OAAO,CAAC,IAAI,CAAC;IAE1E,gBAAgB;;;;CAMhB"}
@@ -1,7 +1,8 @@
1
1
  import { ComponentType } from "discord-api-types/v10";
2
- import { AnySelectMenu } from "../abstracts/AnySelectMenu.js";
2
+ import { AnySelectMenu } from "../../abstracts/AnySelectMenu.js";
3
3
  export class MentionableSelectMenu extends AnySelectMenu {
4
4
  type = ComponentType.MentionableSelect;
5
+ isV2 = false;
5
6
  defaultValues;
6
7
  serializeOptions() {
7
8
  return {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MentionableSelectMenu.js","sourceRoot":"","sources":["../../../../src/classes/components/MentionableSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGhE,MAAM,OAAgB,qBAAsB,SAAQ,aAAa;IACvD,IAAI,GAAG,aAAa,CAAC,iBAA0B,CAAA;IAC/C,IAAI,GAAG,KAAK,CAAA;IACrB,aAAa,CAAkD;IAG/D,gBAAgB;QACf,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,aAAa;SAClC,CAAA;IACF,CAAC;CACD"}
@@ -1,8 +1,9 @@
1
1
  import { type APIRoleSelectComponent, ComponentType } from "discord-api-types/v10";
2
- import { AnySelectMenu } from "../abstracts/AnySelectMenu.js";
3
- import type { RoleSelectMenuInteraction } from "../internals/RoleSelectMenuInteraction.js";
2
+ import { AnySelectMenu } from "../../abstracts/AnySelectMenu.js";
3
+ import type { RoleSelectMenuInteraction } from "../../internals/RoleSelectMenuInteraction.js";
4
4
  export declare abstract class RoleSelectMenu extends AnySelectMenu {
5
- type: ComponentType.RoleSelect;
5
+ readonly type: ComponentType.RoleSelect;
6
+ readonly isV2 = false;
6
7
  defaultValues?: APIRoleSelectComponent["default_values"];
7
8
  abstract run(interaction: RoleSelectMenuInteraction): Promise<void>;
8
9
  serializeOptions(): {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoleSelectMenu.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/RoleSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,sBAAsB,EAC3B,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAA;AAE7F,8BAAsB,cAAe,SAAQ,aAAa;IACzD,QAAQ,CAAC,IAAI,2BAAoC;IACjD,QAAQ,CAAC,IAAI,SAAQ;IACrB,aAAa,CAAC,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAA;IACxD,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEnE,gBAAgB;;;;CAMhB"}
@@ -1,7 +1,8 @@
1
1
  import { ComponentType } from "discord-api-types/v10";
2
- import { AnySelectMenu } from "../abstracts/AnySelectMenu.js";
2
+ import { AnySelectMenu } from "../../abstracts/AnySelectMenu.js";
3
3
  export class RoleSelectMenu extends AnySelectMenu {
4
4
  type = ComponentType.RoleSelect;
5
+ isV2 = false;
5
6
  defaultValues;
6
7
  serializeOptions() {
7
8
  return {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoleSelectMenu.js","sourceRoot":"","sources":["../../../../src/classes/components/RoleSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGhE,MAAM,OAAgB,cAAe,SAAQ,aAAa;IAChD,IAAI,GAAG,aAAa,CAAC,UAAmB,CAAA;IACxC,IAAI,GAAG,KAAK,CAAA;IACrB,aAAa,CAA2C;IAGxD,gBAAgB;QACf,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,aAAa;SAClC,CAAA;IACF,CAAC;CACD"}
@@ -0,0 +1,29 @@
1
+ import { ComponentType } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ import type { BaseMessageInteractiveComponent } from "../../abstracts/BaseMessageInteractiveComponent.js";
4
+ import type { BaseModalComponent } from "../../abstracts/BaseModalComponent.js";
5
+ export declare class Row<T extends BaseMessageInteractiveComponent | BaseModalComponent = BaseMessageInteractiveComponent> extends BaseComponent {
6
+ readonly type: ComponentType.ActionRow;
7
+ readonly isV2 = false;
8
+ /**
9
+ * The components in the action row
10
+ */
11
+ components: T[];
12
+ constructor(components?: T[]);
13
+ /**
14
+ * Add a component to the action row
15
+ * @param component The component to add
16
+ */
17
+ addComponent(component: T): void;
18
+ /**
19
+ * Remove a component from the action row
20
+ * @param component The component to remove
21
+ */
22
+ removeComponent(component: T): void;
23
+ /**
24
+ * Remove all components from the action row
25
+ */
26
+ removeAllComponents(): void;
27
+ serialize: () => ReturnType<BaseComponent["serialize"]>;
28
+ }
29
+ //# sourceMappingURL=Row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/Row.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAA;AACzG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAE/E,qBAAa,GAAG,CACf,CAAC,SACE,+BAA+B,GAC/B,kBAAkB,GAAG,+BAA+B,CACtD,SAAQ,aAAa;IACtB,QAAQ,CAAC,IAAI,0BAAmC;IAChD,QAAQ,CAAC,IAAI,SAAQ;IAErB;;OAEG;IACH,UAAU,EAAE,CAAC,EAAE,CAAK;gBAER,UAAU,CAAC,EAAE,CAAC,EAAE;IAK5B;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,CAAC;IAIzB;;;OAGG;IACH,eAAe,CAAC,SAAS,EAAE,CAAC;IAM5B;;OAEG;IACH,mBAAmB;IAInB,SAAS,QAAO,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAQrD;CACD"}
@@ -1,9 +1,14 @@
1
- export class Row {
1
+ import { ComponentType } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ export class Row extends BaseComponent {
4
+ type = ComponentType.ActionRow;
5
+ isV2 = false;
2
6
  /**
3
7
  * The components in the action row
4
8
  */
5
9
  components = [];
6
10
  constructor(components) {
11
+ super();
7
12
  if (components)
8
13
  this.components = components;
9
14
  }
@@ -32,9 +37,10 @@ export class Row {
32
37
  }
33
38
  serialize = () => {
34
39
  return {
35
- type: 1,
40
+ type: ComponentType.ActionRow,
36
41
  components: this.components.map((component) => component.serialize())
37
42
  };
43
+ // god i hate these types
38
44
  };
39
45
  }
40
46
  //# sourceMappingURL=Row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.js","sourceRoot":"","sources":["../../../../src/classes/components/Row.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAIhE,MAAM,OAAO,GAIX,SAAQ,aAAa;IACb,IAAI,GAAG,aAAa,CAAC,SAAkB,CAAA;IACvC,IAAI,GAAG,KAAK,CAAA;IAErB;;OAEG;IACH,UAAU,GAAQ,EAAE,CAAA;IAEpB,YAAY,UAAgB;QAC3B,KAAK,EAAE,CAAA;QACP,IAAI,UAAU;YAAE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAC7C,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,SAAY;QACxB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IAChC,CAAC;IAED;;;OAGG;IACH,eAAe,CAAC,SAAY;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;QAChD,IAAI,KAAK,KAAK,CAAC,CAAC;YAAE,OAAM;QACxB,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACjC,CAAC;IAED;;OAEG;IACH,mBAAmB;QAClB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;IACrB,CAAC;IAED,SAAS,GAAG,GAA2C,EAAE;QACxD,OAAO;YACN,IAAI,EAAE,aAAa,CAAC,SAAS;YAC7B,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;SAGhB,CAAA;QACtD,yBAAyB;IAC1B,CAAC,CAAA;CACD"}
@@ -0,0 +1,22 @@
1
+ import { type APISectionComponent, ComponentType } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ import type { Button, LinkButton } from "./Button.js";
4
+ import type { TextDisplay } from "./TextDisplay.js";
5
+ import type { Thumbnail } from "./Thumbnail.js";
6
+ export declare abstract class Section extends BaseComponent {
7
+ readonly type: ComponentType.Section;
8
+ readonly isV2 = true;
9
+ /**
10
+ * This is the main text that will be displayed in the section.
11
+ * You can have 1-3 TextDisplays in a Section
12
+ */
13
+ abstract components: TextDisplay[];
14
+ /**
15
+ * The Thumbnail or Button that will be displayed to the right of the main text.
16
+ * You can only have 1 Thumbnail or Button in a Section.
17
+ * If you don't want an accessory, you should be just using the TextDisplay directly.
18
+ */
19
+ abstract accessory: Thumbnail | Button | LinkButton;
20
+ serialize: () => APISectionComponent;
21
+ }
22
+ //# sourceMappingURL=Section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/Section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,8BAAsB,OAAQ,SAAQ,aAAa;IAClD,QAAQ,CAAC,IAAI,wBAAiC;IAC9C,QAAQ,CAAC,IAAI,QAAO;IAEpB;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,WAAW,EAAE,CAAA;IAElC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,CAAA;IAEnD,SAAS,QAAO,mBAAmB,CAOlC;CACD"}
@@ -0,0 +1,15 @@
1
+ import { ComponentType } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ export class Section extends BaseComponent {
4
+ type = ComponentType.Section;
5
+ isV2 = true;
6
+ serialize = () => {
7
+ return {
8
+ type: this.type,
9
+ id: this.id,
10
+ components: this.components.map((component) => component.serialize()),
11
+ accessory: this.accessory.serialize()
12
+ };
13
+ };
14
+ }
15
+ //# sourceMappingURL=Section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.js","sourceRoot":"","sources":["../../../../src/classes/components/Section.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAKhE,MAAM,OAAgB,OAAQ,SAAQ,aAAa;IACzC,IAAI,GAAG,aAAa,CAAC,OAAgB,CAAA;IACrC,IAAI,GAAG,IAAI,CAAA;IAepB,SAAS,GAAG,GAAwB,EAAE;QACrC,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;YACrE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE;SACrC,CAAA;IACF,CAAC,CAAA;CACD"}
@@ -0,0 +1,22 @@
1
+ import { type APISeparatorComponent, ComponentType } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ export declare class Separator extends BaseComponent {
4
+ readonly type: ComponentType.Separator;
5
+ readonly isV2 = true;
6
+ /**
7
+ * Whether a visual divider should be displayed in the component
8
+ */
9
+ divider: boolean;
10
+ /**
11
+ * The size of the separator's padding
12
+ * Either "small" or "large"
13
+ * @default "small"
14
+ */
15
+ spacing: 1 | 2 | "small" | "large";
16
+ constructor(options?: {
17
+ spacing?: typeof Separator.prototype.spacing;
18
+ divider?: typeof Separator.prototype.divider;
19
+ });
20
+ serialize: () => APISeparatorComponent;
21
+ }
22
+ //# sourceMappingURL=Separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/Separator.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,qBAAqB,EAC1B,aAAa,EAEb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,qBAAa,SAAU,SAAQ,aAAa;IAC3C,QAAQ,CAAC,IAAI,0BAAmC;IAChD,QAAQ,CAAC,IAAI,QAAO;IAEpB;;OAEG;IACH,OAAO,UAAO;IAEd;;;;OAIG;IACH,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,OAAO,GAAG,OAAO,CAAU;gBAG3C,OAAO,GAAE;QACR,OAAO,CAAC,EAAE,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAA;QAC5C,OAAO,CAAC,EAAE,OAAO,SAAS,CAAC,SAAS,CAAC,OAAO,CAAA;KACvC;IAOP,SAAS,QAAO,qBAAqB,CAWpC;CACD"}
@@ -0,0 +1,33 @@
1
+ import { ComponentType, SeparatorSpacingSize } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ export class Separator extends BaseComponent {
4
+ type = ComponentType.Separator;
5
+ isV2 = true;
6
+ /**
7
+ * Whether a visual divider should be displayed in the component
8
+ */
9
+ divider = true;
10
+ /**
11
+ * The size of the separator's padding
12
+ * Either "small" or "large"
13
+ * @default "small"
14
+ */
15
+ spacing = "small"; // integers here because its technically that on the API
16
+ constructor(options = {}) {
17
+ super();
18
+ this.spacing = options.spacing ?? "small";
19
+ this.divider = options.divider ?? true;
20
+ }
21
+ serialize = () => {
22
+ return {
23
+ type: this.type,
24
+ divider: this.divider,
25
+ spacing: typeof this.spacing === "number"
26
+ ? this.spacing
27
+ : this.spacing === "small"
28
+ ? SeparatorSpacingSize.Small
29
+ : SeparatorSpacingSize.Large
30
+ };
31
+ };
32
+ }
33
+ //# sourceMappingURL=Separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.js","sourceRoot":"","sources":["../../../../src/classes/components/Separator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,oBAAoB,EACpB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,OAAO,SAAU,SAAQ,aAAa;IAClC,IAAI,GAAG,aAAa,CAAC,SAAkB,CAAA;IACvC,IAAI,GAAG,IAAI,CAAA;IAEpB;;OAEG;IACH,OAAO,GAAG,IAAI,CAAA;IAEd;;;;OAIG;IACH,OAAO,GAA8B,OAAO,CAAA,CAAC,wDAAwD;IAErG,YACC,UAGI,EAAE;QAEN,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,OAAO,CAAA;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,IAAI,CAAA;IACvC,CAAC;IAED,SAAS,GAAG,GAA0B,EAAE;QACvC,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EACN,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ;gBAC/B,CAAC,CAAC,IAAI,CAAC,OAAO;gBACd,CAAC,CAAC,IAAI,CAAC,OAAO,KAAK,OAAO;oBACzB,CAAC,CAAC,oBAAoB,CAAC,KAAK;oBAC5B,CAAC,CAAC,oBAAoB,CAAC,KAAK;SAC/B,CAAA;IACF,CAAC,CAAA;CACD"}
@@ -1,8 +1,9 @@
1
1
  import { type APIStringSelectComponent, ComponentType } from "discord-api-types/v10";
2
- import { AnySelectMenu } from "../abstracts/AnySelectMenu.js";
3
- import type { StringSelectMenuInteraction } from "../internals/StringSelectMenuInteraction.js";
2
+ import { AnySelectMenu } from "../../abstracts/AnySelectMenu.js";
3
+ import type { StringSelectMenuInteraction } from "../../internals/StringSelectMenuInteraction.js";
4
4
  export declare abstract class StringSelectMenu extends AnySelectMenu {
5
- type: ComponentType.StringSelect;
5
+ readonly type: ComponentType.StringSelect;
6
+ readonly isV2 = false;
6
7
  abstract options: APIStringSelectComponent["options"];
7
8
  abstract run(interaction: StringSelectMenuInteraction): Promise<void>;
8
9
  serializeOptions(): {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringSelectMenu.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/StringSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,wBAAwB,EAC7B,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAA;AAEjG,8BAAsB,gBAAiB,SAAQ,aAAa;IAC3D,QAAQ,CAAC,IAAI,6BAAsC;IACnD,QAAQ,CAAC,IAAI,SAAQ;IACrB,QAAQ,CAAC,OAAO,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAA;IACrD,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;IAErE,gBAAgB;;;;CAMhB"}
@@ -1,7 +1,8 @@
1
1
  import { ComponentType } from "discord-api-types/v10";
2
- import { AnySelectMenu } from "../abstracts/AnySelectMenu.js";
2
+ import { AnySelectMenu } from "../../abstracts/AnySelectMenu.js";
3
3
  export class StringSelectMenu extends AnySelectMenu {
4
4
  type = ComponentType.StringSelect;
5
+ isV2 = false;
5
6
  serializeOptions() {
6
7
  return {
7
8
  type: this.type,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringSelectMenu.js","sourceRoot":"","sources":["../../../../src/classes/components/StringSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGhE,MAAM,OAAgB,gBAAiB,SAAQ,aAAa;IAClD,IAAI,GAAG,aAAa,CAAC,YAAqB,CAAA;IAC1C,IAAI,GAAG,KAAK,CAAA;IAIrB,gBAAgB;QACf,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;SACrB,CAAA;IACF,CAAC;CACD"}
@@ -0,0 +1,10 @@
1
+ import { type APITextDisplayComponent, ComponentType } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ export declare class TextDisplay extends BaseComponent {
4
+ readonly type: ComponentType.TextDisplay;
5
+ readonly isV2 = true;
6
+ content: string;
7
+ constructor(content: string);
8
+ serialize: () => APITextDisplayComponent;
9
+ }
10
+ //# sourceMappingURL=TextDisplay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextDisplay.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/TextDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,uBAAuB,EAC5B,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,qBAAa,WAAY,SAAQ,aAAa;IAC7C,QAAQ,CAAC,IAAI,4BAAqC;IAClD,QAAQ,CAAC,IAAI,QAAO;IAEpB,OAAO,EAAE,MAAM,CAAA;gBAEH,OAAO,EAAE,MAAM;IAK3B,SAAS,QAAO,uBAAuB,CAMtC;CACD"}
@@ -0,0 +1,19 @@
1
+ import { ComponentType } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ export class TextDisplay extends BaseComponent {
4
+ type = ComponentType.TextDisplay;
5
+ isV2 = true;
6
+ content;
7
+ constructor(content) {
8
+ super();
9
+ this.content = content;
10
+ }
11
+ serialize = () => {
12
+ return {
13
+ type: this.type,
14
+ id: this.id,
15
+ content: this.content
16
+ };
17
+ };
18
+ }
19
+ //# sourceMappingURL=TextDisplay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextDisplay.js","sourceRoot":"","sources":["../../../../src/classes/components/TextDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,OAAO,WAAY,SAAQ,aAAa;IACpC,IAAI,GAAG,aAAa,CAAC,WAAoB,CAAA;IACzC,IAAI,GAAG,IAAI,CAAA;IAEpB,OAAO,CAAQ;IAEf,YAAY,OAAe;QAC1B,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACvB,CAAC;IAED,SAAS,GAAG,GAA4B,EAAE;QACzC,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;SACrB,CAAA;IACF,CAAC,CAAA;CACD"}
@@ -1,7 +1,8 @@
1
1
  import { type APITextInputComponent, ComponentType, TextInputStyle } from "discord-api-types/v10";
2
- import { BaseComponent } from "../abstracts/BaseComponent.js";
3
- export declare abstract class TextInput extends BaseComponent {
4
- type: ComponentType;
2
+ import { BaseModalComponent } from "../../abstracts/BaseModalComponent.js";
3
+ export declare abstract class TextInput extends BaseModalComponent {
4
+ readonly type: ComponentType.TextInput;
5
+ readonly isV2 = false;
5
6
  /**
6
7
  * The custom ID of the text input
7
8
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/TextInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,qBAAqB,EAC1B,aAAa,EACb,cAAc,EACd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAE1E,8BAAsB,SAAU,SAAQ,kBAAkB;IACzD,QAAQ,CAAC,IAAI,0BAAmC;IAChD,QAAQ,CAAC,IAAI,SAAQ;IAErB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IAEtB;;;OAGG;IACH,KAAK,EAAE,cAAc,CAAuB;IAE5C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,SAAS,QAAO,qBAAqB,CAYpC;CACD"}
@@ -1,7 +1,8 @@
1
1
  import { ComponentType, TextInputStyle } from "discord-api-types/v10";
2
- import { BaseComponent } from "../abstracts/BaseComponent.js";
3
- export class TextInput extends BaseComponent {
2
+ import { BaseModalComponent } from "../../abstracts/BaseModalComponent.js";
3
+ export class TextInput extends BaseModalComponent {
4
4
  type = ComponentType.TextInput;
5
+ isV2 = false;
5
6
  /**
6
7
  * The style of the text input
7
8
  * @default TextInputStyle.Short
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../../src/classes/components/TextInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,cAAc,EACd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAE1E,MAAM,OAAgB,SAAU,SAAQ,kBAAkB;IAChD,IAAI,GAAG,aAAa,CAAC,SAAkB,CAAA;IACvC,IAAI,GAAG,KAAK,CAAA;IAYrB;;;OAGG;IACH,KAAK,GAAmB,cAAc,CAAC,KAAK,CAAA;IAE5C;;OAEG;IACH,SAAS,CAAS;IAElB;;OAEG;IACH,SAAS,CAAS;IAElB;;OAEG;IACH,QAAQ,CAAU;IAElB;;OAEG;IACH,KAAK,CAAS;IAEd;;OAEG;IACH,WAAW,CAAS;IAEpB,SAAS,GAAG,GAA0B,EAAE;QACvC,OAAO;YACN,IAAI,EAAE,aAAa,CAAC,SAAS;YAC7B,SAAS,EAAE,IAAI,CAAC,QAAQ;YACxB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,UAAU,EAAE,IAAI,CAAC,SAAS;YAC1B,UAAU,EAAE,IAAI,CAAC,SAAS;YAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAA;IACF,CAAC,CAAA;CACD"}
@@ -0,0 +1,13 @@
1
+ import type { APIThumbnailComponent } from "discord-api-types/v10";
2
+ import { ComponentType } from "discord-api-types/v10";
3
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
4
+ export declare abstract class Thumbnail extends BaseComponent {
5
+ readonly type: ComponentType.Thumbnail;
6
+ readonly isV2 = true;
7
+ /**
8
+ * The URL of the thumbnail. This can either be a direct online URL or an attachment://<name> reference
9
+ */
10
+ abstract url: string;
11
+ serialize: () => APIThumbnailComponent;
12
+ }
13
+ //# sourceMappingURL=Thumbnail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Thumbnail.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/Thumbnail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,8BAAsB,SAAU,SAAQ,aAAa;IACpD,QAAQ,CAAC,IAAI,0BAAmC;IAChD,QAAQ,CAAC,IAAI,QAAO;IAEpB;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IAEpB,SAAS,QAAO,qBAAqB,CAQpC;CACD"}
@@ -0,0 +1,16 @@
1
+ import { ComponentType } from "discord-api-types/v10";
2
+ import { BaseComponent } from "../../abstracts/BaseComponent.js";
3
+ export class Thumbnail extends BaseComponent {
4
+ type = ComponentType.Thumbnail;
5
+ isV2 = true;
6
+ serialize = () => {
7
+ return {
8
+ type: this.type,
9
+ id: this.id,
10
+ media: {
11
+ url: this.url
12
+ }
13
+ };
14
+ };
15
+ }
16
+ //# sourceMappingURL=Thumbnail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Thumbnail.js","sourceRoot":"","sources":["../../../../src/classes/components/Thumbnail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,OAAgB,SAAU,SAAQ,aAAa;IAC3C,IAAI,GAAG,aAAa,CAAC,SAAkB,CAAA;IACvC,IAAI,GAAG,IAAI,CAAA;IAOpB,SAAS,GAAG,GAA0B,EAAE;QACvC,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE;gBACN,GAAG,EAAE,IAAI,CAAC,GAAG;aACb;SACD,CAAA;IACF,CAAC,CAAA;CACD"}
@@ -1,8 +1,9 @@
1
1
  import { type APIUserSelectComponent, ComponentType } from "discord-api-types/v10";
2
- import { AnySelectMenu } from "../abstracts/AnySelectMenu.js";
3
- import type { UserSelectMenuInteraction } from "../internals/UserSelectMenuInteraction.js";
2
+ import { AnySelectMenu } from "../../abstracts/AnySelectMenu.js";
3
+ import type { UserSelectMenuInteraction } from "../../internals/UserSelectMenuInteraction.js";
4
4
  export declare abstract class UserSelectMenu extends AnySelectMenu {
5
- type: ComponentType.UserSelect;
5
+ readonly type: ComponentType.UserSelect;
6
+ readonly isV2 = false;
6
7
  defaultValues?: APIUserSelectComponent["default_values"];
7
8
  abstract run(interaction: UserSelectMenuInteraction): Promise<void>;
8
9
  serializeOptions(): {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserSelectMenu.d.ts","sourceRoot":"","sources":["../../../../src/classes/components/UserSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,sBAAsB,EAC3B,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAA;AAE7F,8BAAsB,cAAe,SAAQ,aAAa;IACzD,QAAQ,CAAC,IAAI,2BAAoC;IACjD,QAAQ,CAAC,IAAI,SAAQ;IACrB,aAAa,CAAC,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAA;IACxD,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEnE,gBAAgB;;;;CAMhB"}
@@ -1,7 +1,8 @@
1
1
  import { ComponentType } from "discord-api-types/v10";
2
- import { AnySelectMenu } from "../abstracts/AnySelectMenu.js";
2
+ import { AnySelectMenu } from "../../abstracts/AnySelectMenu.js";
3
3
  export class UserSelectMenu extends AnySelectMenu {
4
4
  type = ComponentType.UserSelect;
5
+ isV2 = false;
5
6
  defaultValues;
6
7
  serializeOptions() {
7
8
  return {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserSelectMenu.js","sourceRoot":"","sources":["../../../../src/classes/components/UserSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAA;AAGhE,MAAM,OAAgB,cAAe,SAAQ,aAAa;IAChD,IAAI,GAAG,aAAa,CAAC,UAAmB,CAAA;IACxC,IAAI,GAAG,KAAK,CAAA;IACrB,aAAa,CAA2C;IAGxD,gBAAgB;QACf,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,aAAa;SAClC,CAAA;IACF,CAAC;CACD"}
@@ -0,0 +1,3 @@
1
+ export declare class BaseError extends Error {
2
+ }
3
+ //# sourceMappingURL=BaseError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseError.d.ts","sourceRoot":"","sources":["../../../src/errors/BaseError.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAU,SAAQ,KAAK;CAAG"}
@@ -0,0 +1,3 @@
1
+ export class BaseError extends Error {
2
+ }
3
+ //# sourceMappingURL=BaseError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseError.js","sourceRoot":"","sources":["../../../src/errors/BaseError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,SAAU,SAAQ,KAAK;CAAG"}
@@ -0,0 +1,25 @@
1
+ import { type DiscordRawError, type TransformedError } from "../functions/errorsMapper.js";
2
+ import { BaseError } from "./BaseError.js";
3
+ export declare class DiscordError extends BaseError {
4
+ /**
5
+ * The HTTP status code of the response from Discord
6
+ * @see https://discord.com/developers/docs/topics/opcodes-and-status-codes#http
7
+ */
8
+ status: number;
9
+ /**
10
+ * The Discord error code
11
+ * @see https://discord.com/developers/docs/topics/opcodes-and-status-codes#json
12
+ */
13
+ discordCode?: number;
14
+ /**
15
+ * An array of the errors that were returned by Discord
16
+ */
17
+ errors: TransformedError[];
18
+ /**
19
+ * The raw body of the error from Discord
20
+ * @internal
21
+ */
22
+ rawBody: DiscordRawError;
23
+ constructor(response: Response, body: DiscordRawError);
24
+ }
25
+ //# sourceMappingURL=DiscordError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiscordError.d.ts","sourceRoot":"","sources":["../../../src/errors/DiscordError.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAErB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,qBAAa,YAAa,SAAQ,SAAS;IAC1C;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAE1B;;;OAGG;IACH,OAAO,EAAE,eAAe,CAAA;gBAEZ,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe;CAOrD"}
@@ -0,0 +1,31 @@
1
+ import { errorMapper } from "../functions/errorsMapper.js";
2
+ import { BaseError } from "./BaseError.js";
3
+ export class DiscordError extends BaseError {
4
+ /**
5
+ * The HTTP status code of the response from Discord
6
+ * @see https://discord.com/developers/docs/topics/opcodes-and-status-codes#http
7
+ */
8
+ status;
9
+ /**
10
+ * The Discord error code
11
+ * @see https://discord.com/developers/docs/topics/opcodes-and-status-codes#json
12
+ */
13
+ discordCode;
14
+ /**
15
+ * An array of the errors that were returned by Discord
16
+ */
17
+ errors;
18
+ /**
19
+ * The raw body of the error from Discord
20
+ * @internal
21
+ */
22
+ rawBody;
23
+ constructor(response, body) {
24
+ super(body.message);
25
+ this.rawBody = body;
26
+ this.status = response.status;
27
+ this.discordCode = body.code;
28
+ this.errors = errorMapper(body);
29
+ }
30
+ }
31
+ //# sourceMappingURL=DiscordError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiscordError.js","sourceRoot":"","sources":["../../../src/errors/DiscordError.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,WAAW,EACX,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,OAAO,YAAa,SAAQ,SAAS;IAC1C;;;OAGG;IACH,MAAM,CAAQ;IACd;;;OAGG;IACH,WAAW,CAAS;IACpB;;OAEG;IACH,MAAM,CAAoB;IAE1B;;;OAGG;IACH,OAAO,CAAiB;IAExB,YAAY,QAAkB,EAAE,IAAqB;QACpD,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;QACnB,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;QAC7B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAA;QAC5B,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACD"}
@@ -0,0 +1,15 @@
1
+ import { DiscordError } from "./DiscordError.js";
2
+ /**
3
+ * A RateLimitError is thrown when the bot is rate limited by Discord, and you don't have requests set to queue.
4
+ */
5
+ export declare class RateLimitError extends DiscordError {
6
+ retryAfter: number;
7
+ scope: "global" | "shared" | "user";
8
+ bucket: string | null;
9
+ constructor(response: Response, body: {
10
+ message: string;
11
+ retry_after: number;
12
+ global: boolean;
13
+ });
14
+ }
15
+ //# sourceMappingURL=RatelimitError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RatelimitError.d.ts","sourceRoot":"","sources":["../../../src/errors/RatelimitError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAC/C,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAA;IACnC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;gBAGpB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE;QACL,OAAO,EAAE,MAAM,CAAA;QACf,WAAW,EAAE,MAAM,CAAA;QACnB,MAAM,EAAE,OAAO,CAAA;KACf;CAYF"}
@@ -0,0 +1,18 @@
1
+ import { DiscordError } from "./DiscordError.js";
2
+ /**
3
+ * A RateLimitError is thrown when the bot is rate limited by Discord, and you don't have requests set to queue.
4
+ */
5
+ export class RateLimitError extends DiscordError {
6
+ retryAfter;
7
+ scope;
8
+ bucket;
9
+ constructor(response, body) {
10
+ super(response, body);
11
+ if (this.status !== 429)
12
+ throw new Error("Invalid status code for RateLimitError");
13
+ this.retryAfter = body.retry_after;
14
+ this.scope = response.headers.get("X-RateLimit-Scope");
15
+ this.bucket = response.headers.get("X-RateLimit-Bucket");
16
+ }
17
+ }
18
+ //# sourceMappingURL=RatelimitError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RatelimitError.js","sourceRoot":"","sources":["../../../src/errors/RatelimitError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,YAAY;IAC/C,UAAU,CAAQ;IAClB,KAAK,CAA8B;IACnC,MAAM,CAAe;IAErB,YACC,QAAkB,EAClB,IAIC;QAED,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QACrB,IAAI,IAAI,CAAC,MAAM,KAAK,GAAG;YACtB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAA;QAC1D,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAA;QAClC,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAG5C,CAAA;QACT,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;IACzD,CAAC;CACD"}
@@ -1,4 +1,4 @@
1
- import { type APIChannel } from "discord-api-types/v10";
1
+ import { type APIChannel, type ThreadChannelType } from "discord-api-types/v10";
2
2
  import type { Client } from "../classes/Client.js";
3
3
  import { DmChannel } from "../structures/DmChannel.js";
4
4
  import { GroupDmChannel } from "../structures/GroupDmChannel.js";
@@ -9,5 +9,6 @@ import { GuildMediaChannel } from "../structures/GuildMediaChannel.js";
9
9
  import { GuildStageChannel, GuildVoiceChannel } from "../structures/GuildStageOrVoiceChannel.js";
10
10
  import { GuildTextChannel } from "../structures/GuildTextChannel.js";
11
11
  import { GuildThreadChannel } from "../structures/GuildThreadChannel.js";
12
- export declare const channelFactory: (client: Client, channelData: APIChannel) => DmChannel<false> | GroupDmChannel<false> | GuildTextChannel<false> | GuildVoiceChannel<false> | GuildCategoryChannel<false> | GuildAnnouncementChannel<false> | GuildThreadChannel<import("discord-api-types/v10").ThreadChannelType, false> | GuildStageChannel<false> | GuildForumChannel<false> | GuildMediaChannel | null;
12
+ export type AnyChannel = DmChannel | GroupDmChannel | GuildTextChannel | GuildVoiceChannel | GuildStageChannel | GuildCategoryChannel | GuildAnnouncementChannel | GuildThreadChannel<ThreadChannelType> | GuildForumChannel | GuildMediaChannel;
13
+ export declare const channelFactory: (client: Client, channelData: APIChannel) => DmChannel<false> | GroupDmChannel<false> | GuildTextChannel<false> | GuildVoiceChannel<false> | GuildCategoryChannel<false> | GuildAnnouncementChannel<false> | GuildThreadChannel<ThreadChannelType, false> | GuildStageChannel<false> | GuildForumChannel<false> | GuildMediaChannel | null;
13
14
  //# sourceMappingURL=channelFactory.d.ts.map