@buape/carbon 0.1.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 (428) hide show
  1. package/.turbo/turbo-build.log +5 -0
  2. package/.turbo/turbo-dev.log +12 -0
  3. package/.turbo/turbo-docs.log +10 -0
  4. package/CHANGELOG.md +14 -0
  5. package/LICENSE +21 -0
  6. package/README.md +45 -0
  7. package/dist/package.json +18 -0
  8. package/dist/src/abstracts/AnySelectMenu.d.ts +31 -0
  9. package/dist/src/abstracts/AnySelectMenu.d.ts.map +1 -0
  10. package/dist/src/abstracts/AnySelectMenu.js +19 -0
  11. package/dist/src/abstracts/AnySelectMenu.js.map +1 -0
  12. package/dist/src/abstracts/AnySelectMenuInteraction.d.ts +12 -0
  13. package/dist/src/abstracts/AnySelectMenuInteraction.d.ts.map +1 -0
  14. package/dist/src/abstracts/AnySelectMenuInteraction.js +21 -0
  15. package/dist/src/abstracts/AnySelectMenuInteraction.js.map +1 -0
  16. package/dist/src/abstracts/Base.d.ts +10 -0
  17. package/dist/src/abstracts/Base.d.ts.map +1 -0
  18. package/dist/src/abstracts/Base.js +11 -0
  19. package/dist/src/abstracts/Base.js.map +1 -0
  20. package/dist/src/abstracts/BaseChannel.d.ts +44 -0
  21. package/dist/src/abstracts/BaseChannel.d.ts.map +1 -0
  22. package/dist/src/abstracts/BaseChannel.js +58 -0
  23. package/dist/src/abstracts/BaseChannel.js.map +1 -0
  24. package/dist/src/abstracts/BaseCommand.d.ts +58 -0
  25. package/dist/src/abstracts/BaseCommand.d.ts.map +1 -0
  26. package/dist/src/abstracts/BaseCommand.js +69 -0
  27. package/dist/src/abstracts/BaseCommand.js.map +1 -0
  28. package/dist/src/abstracts/BaseComponent.d.ts +34 -0
  29. package/dist/src/abstracts/BaseComponent.d.ts.map +1 -0
  30. package/dist/src/abstracts/BaseComponent.js +30 -0
  31. package/dist/src/abstracts/BaseComponent.js.map +1 -0
  32. package/dist/src/abstracts/BaseComponentInteraction.d.ts +9 -0
  33. package/dist/src/abstracts/BaseComponentInteraction.d.ts.map +1 -0
  34. package/dist/src/abstracts/BaseComponentInteraction.js +14 -0
  35. package/dist/src/abstracts/BaseComponentInteraction.js.map +1 -0
  36. package/dist/src/abstracts/BaseGuildChannel.d.ts +68 -0
  37. package/dist/src/abstracts/BaseGuildChannel.d.ts.map +1 -0
  38. package/dist/src/abstracts/BaseGuildChannel.js +130 -0
  39. package/dist/src/abstracts/BaseGuildChannel.js.map +1 -0
  40. package/dist/src/abstracts/BaseGuildTextChannel.d.ts +42 -0
  41. package/dist/src/abstracts/BaseGuildTextChannel.d.ts.map +1 -0
  42. package/dist/src/abstracts/BaseGuildTextChannel.js +61 -0
  43. package/dist/src/abstracts/BaseGuildTextChannel.js.map +1 -0
  44. package/dist/src/abstracts/BaseInteraction.d.ts +87 -0
  45. package/dist/src/abstracts/BaseInteraction.d.ts.map +1 -0
  46. package/dist/src/abstracts/BaseInteraction.js +101 -0
  47. package/dist/src/abstracts/BaseInteraction.js.map +1 -0
  48. package/dist/src/abstracts/ButtonInteraction.d.ts +8 -0
  49. package/dist/src/abstracts/ButtonInteraction.d.ts.map +1 -0
  50. package/dist/src/abstracts/ButtonInteraction.js +18 -0
  51. package/dist/src/abstracts/ButtonInteraction.js.map +1 -0
  52. package/dist/src/abstracts/ChannelSelectMenuInteraction.d.ts +7 -0
  53. package/dist/src/abstracts/ChannelSelectMenuInteraction.d.ts.map +1 -0
  54. package/dist/src/abstracts/ChannelSelectMenuInteraction.js +11 -0
  55. package/dist/src/abstracts/ChannelSelectMenuInteraction.js.map +1 -0
  56. package/dist/src/abstracts/CommandHandler.d.ts +6 -0
  57. package/dist/src/abstracts/CommandHandler.d.ts.map +1 -0
  58. package/dist/src/abstracts/CommandHandler.js +65 -0
  59. package/dist/src/abstracts/CommandHandler.js.map +1 -0
  60. package/dist/src/abstracts/CommandInteraction.d.ts +15 -0
  61. package/dist/src/abstracts/CommandInteraction.d.ts.map +1 -0
  62. package/dist/src/abstracts/CommandInteraction.js +60 -0
  63. package/dist/src/abstracts/CommandInteraction.js.map +1 -0
  64. package/dist/src/abstracts/ComponentHandler.d.ts +6 -0
  65. package/dist/src/abstracts/ComponentHandler.d.ts.map +1 -0
  66. package/dist/src/abstracts/ComponentHandler.js +64 -0
  67. package/dist/src/abstracts/ComponentHandler.js.map +1 -0
  68. package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts +42 -0
  69. package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts.map +1 -0
  70. package/dist/src/abstracts/GuildThreadOnlyChannel.js +54 -0
  71. package/dist/src/abstracts/GuildThreadOnlyChannel.js.map +1 -0
  72. package/dist/src/abstracts/MentionableSelectMenuInteraction.d.ts +8 -0
  73. package/dist/src/abstracts/MentionableSelectMenuInteraction.d.ts.map +1 -0
  74. package/dist/src/abstracts/MentionableSelectMenuInteraction.js +15 -0
  75. package/dist/src/abstracts/MentionableSelectMenuInteraction.js.map +1 -0
  76. package/dist/src/abstracts/RoleSelectMenuInteraction.d.ts +8 -0
  77. package/dist/src/abstracts/RoleSelectMenuInteraction.d.ts.map +1 -0
  78. package/dist/src/abstracts/RoleSelectMenuInteraction.js +14 -0
  79. package/dist/src/abstracts/RoleSelectMenuInteraction.js.map +1 -0
  80. package/dist/src/abstracts/StringSelectMenuInteraction.d.ts +8 -0
  81. package/dist/src/abstracts/StringSelectMenuInteraction.d.ts.map +1 -0
  82. package/dist/src/abstracts/StringSelectMenuInteraction.js +14 -0
  83. package/dist/src/abstracts/StringSelectMenuInteraction.js.map +1 -0
  84. package/dist/src/abstracts/UserSelectMenuInteraction.d.ts +8 -0
  85. package/dist/src/abstracts/UserSelectMenuInteraction.d.ts.map +1 -0
  86. package/dist/src/abstracts/UserSelectMenuInteraction.js +14 -0
  87. package/dist/src/abstracts/UserSelectMenuInteraction.js.map +1 -0
  88. package/dist/src/classes/Button.d.ts +53 -0
  89. package/dist/src/classes/Button.d.ts.map +1 -0
  90. package/dist/src/classes/Button.js +55 -0
  91. package/dist/src/classes/Button.js.map +1 -0
  92. package/dist/src/classes/ChannelSelectMenu.d.ts +15 -0
  93. package/dist/src/classes/ChannelSelectMenu.d.ts.map +1 -0
  94. package/dist/src/classes/ChannelSelectMenu.js +15 -0
  95. package/dist/src/classes/ChannelSelectMenu.js.map +1 -0
  96. package/dist/src/classes/Client.d.ts +117 -0
  97. package/dist/src/classes/Client.d.ts.map +1 -0
  98. package/dist/src/classes/Client.js +170 -0
  99. package/dist/src/classes/Client.js.map +1 -0
  100. package/dist/src/classes/Command.d.ts +35 -0
  101. package/dist/src/classes/Command.d.ts.map +1 -0
  102. package/dist/src/classes/Command.js +31 -0
  103. package/dist/src/classes/Command.js.map +1 -0
  104. package/dist/src/classes/CommandWithSubcommandGroups.d.ts +22 -0
  105. package/dist/src/classes/CommandWithSubcommandGroups.d.ts.map +1 -0
  106. package/dist/src/classes/CommandWithSubcommandGroups.js +31 -0
  107. package/dist/src/classes/CommandWithSubcommandGroups.js.map +1 -0
  108. package/dist/src/classes/CommandWithSubcommands.d.ts +19 -0
  109. package/dist/src/classes/CommandWithSubcommands.d.ts.map +1 -0
  110. package/dist/src/classes/CommandWithSubcommands.js +21 -0
  111. package/dist/src/classes/CommandWithSubcommands.js.map +1 -0
  112. package/dist/src/classes/MentionableSelectMenu.d.ts +13 -0
  113. package/dist/src/classes/MentionableSelectMenu.d.ts.map +1 -0
  114. package/dist/src/classes/MentionableSelectMenu.js +13 -0
  115. package/dist/src/classes/MentionableSelectMenu.js.map +1 -0
  116. package/dist/src/classes/Paginator.d.ts +3 -0
  117. package/dist/src/classes/Paginator.d.ts.map +1 -0
  118. package/dist/src/classes/Paginator.js +3 -0
  119. package/dist/src/classes/Paginator.js.map +1 -0
  120. package/dist/src/classes/RoleSelectMenu.d.ts +13 -0
  121. package/dist/src/classes/RoleSelectMenu.d.ts.map +1 -0
  122. package/dist/src/classes/RoleSelectMenu.js +13 -0
  123. package/dist/src/classes/RoleSelectMenu.js.map +1 -0
  124. package/dist/src/classes/Row.d.ts +27 -0
  125. package/dist/src/classes/Row.d.ts.map +1 -0
  126. package/dist/src/classes/Row.js +39 -0
  127. package/dist/src/classes/Row.js.map +1 -0
  128. package/dist/src/classes/StringSelectMenu.d.ts +13 -0
  129. package/dist/src/classes/StringSelectMenu.d.ts.map +1 -0
  130. package/dist/src/classes/StringSelectMenu.js +12 -0
  131. package/dist/src/classes/StringSelectMenu.js.map +1 -0
  132. package/dist/src/classes/UserSelectMenu.d.ts +13 -0
  133. package/dist/src/classes/UserSelectMenu.d.ts.map +1 -0
  134. package/dist/src/classes/UserSelectMenu.js +13 -0
  135. package/dist/src/classes/UserSelectMenu.js.map +1 -0
  136. package/dist/src/factories/channelFactory.d.ts +13 -0
  137. package/dist/src/factories/channelFactory.d.ts.map +1 -0
  138. package/dist/src/factories/channelFactory.js +39 -0
  139. package/dist/src/factories/channelFactory.js.map +1 -0
  140. package/dist/src/index.d.ts +49 -0
  141. package/dist/src/index.d.ts.map +1 -0
  142. package/dist/src/index.js +55 -0
  143. package/dist/src/index.js.map +1 -0
  144. package/dist/src/internals/AutocompleteInteraction.d.ts +34 -0
  145. package/dist/src/internals/AutocompleteInteraction.d.ts.map +1 -0
  146. package/dist/src/internals/AutocompleteInteraction.js +68 -0
  147. package/dist/src/internals/AutocompleteInteraction.js.map +1 -0
  148. package/dist/src/internals/ButtonInteraction.d.ts +8 -0
  149. package/dist/src/internals/ButtonInteraction.d.ts.map +1 -0
  150. package/dist/src/internals/ButtonInteraction.js +18 -0
  151. package/dist/src/internals/ButtonInteraction.js.map +1 -0
  152. package/dist/src/internals/ChannelSelectMenuInteraction.d.ts +7 -0
  153. package/dist/src/internals/ChannelSelectMenuInteraction.d.ts.map +1 -0
  154. package/dist/src/internals/ChannelSelectMenuInteraction.js +11 -0
  155. package/dist/src/internals/ChannelSelectMenuInteraction.js.map +1 -0
  156. package/dist/src/internals/CommandHandler.d.ts +8 -0
  157. package/dist/src/internals/CommandHandler.d.ts.map +1 -0
  158. package/dist/src/internals/CommandHandler.js +81 -0
  159. package/dist/src/internals/CommandHandler.js.map +1 -0
  160. package/dist/src/internals/CommandInteraction.d.ts +17 -0
  161. package/dist/src/internals/CommandInteraction.d.ts.map +1 -0
  162. package/dist/src/internals/CommandInteraction.js +29 -0
  163. package/dist/src/internals/CommandInteraction.js.map +1 -0
  164. package/dist/src/internals/ComponentHandler.d.ts +6 -0
  165. package/dist/src/internals/ComponentHandler.d.ts.map +1 -0
  166. package/dist/src/internals/ComponentHandler.js +64 -0
  167. package/dist/src/internals/ComponentHandler.js.map +1 -0
  168. package/dist/src/internals/MentionableSelectMenuInteraction.d.ts +8 -0
  169. package/dist/src/internals/MentionableSelectMenuInteraction.d.ts.map +1 -0
  170. package/dist/src/internals/MentionableSelectMenuInteraction.js +15 -0
  171. package/dist/src/internals/MentionableSelectMenuInteraction.js.map +1 -0
  172. package/dist/src/internals/OptionsHandler.d.ts +70 -0
  173. package/dist/src/internals/OptionsHandler.d.ts.map +1 -0
  174. package/dist/src/internals/OptionsHandler.js +115 -0
  175. package/dist/src/internals/OptionsHandler.js.map +1 -0
  176. package/dist/src/internals/RoleSelectMenuInteraction.d.ts +8 -0
  177. package/dist/src/internals/RoleSelectMenuInteraction.d.ts.map +1 -0
  178. package/dist/src/internals/RoleSelectMenuInteraction.js +14 -0
  179. package/dist/src/internals/RoleSelectMenuInteraction.js.map +1 -0
  180. package/dist/src/internals/StringSelectMenuInteraction.d.ts +8 -0
  181. package/dist/src/internals/StringSelectMenuInteraction.d.ts.map +1 -0
  182. package/dist/src/internals/StringSelectMenuInteraction.js +14 -0
  183. package/dist/src/internals/StringSelectMenuInteraction.js.map +1 -0
  184. package/dist/src/internals/UserSelectMenuInteraction.d.ts +8 -0
  185. package/dist/src/internals/UserSelectMenuInteraction.d.ts.map +1 -0
  186. package/dist/src/internals/UserSelectMenuInteraction.js +14 -0
  187. package/dist/src/internals/UserSelectMenuInteraction.js.map +1 -0
  188. package/dist/src/structures/AnySelectMenu.d.ts +31 -0
  189. package/dist/src/structures/AnySelectMenu.d.ts.map +1 -0
  190. package/dist/src/structures/AnySelectMenu.js +19 -0
  191. package/dist/src/structures/AnySelectMenu.js.map +1 -0
  192. package/dist/src/structures/AnySelectMenuInteraction.d.ts +12 -0
  193. package/dist/src/structures/AnySelectMenuInteraction.d.ts.map +1 -0
  194. package/dist/src/structures/AnySelectMenuInteraction.js +21 -0
  195. package/dist/src/structures/AnySelectMenuInteraction.js.map +1 -0
  196. package/dist/src/structures/Base.d.ts +10 -0
  197. package/dist/src/structures/Base.d.ts.map +1 -0
  198. package/dist/src/structures/Base.js +11 -0
  199. package/dist/src/structures/Base.js.map +1 -0
  200. package/dist/src/structures/BaseCommand.d.ts +64 -0
  201. package/dist/src/structures/BaseCommand.d.ts.map +1 -0
  202. package/dist/src/structures/BaseCommand.js +58 -0
  203. package/dist/src/structures/BaseCommand.js.map +1 -0
  204. package/dist/src/structures/BaseComponent.d.ts +34 -0
  205. package/dist/src/structures/BaseComponent.d.ts.map +1 -0
  206. package/dist/src/structures/BaseComponent.js +30 -0
  207. package/dist/src/structures/BaseComponent.js.map +1 -0
  208. package/dist/src/structures/BaseComponentInteraction.d.ts +9 -0
  209. package/dist/src/structures/BaseComponentInteraction.d.ts.map +1 -0
  210. package/dist/src/structures/BaseComponentInteraction.js +14 -0
  211. package/dist/src/structures/BaseComponentInteraction.js.map +1 -0
  212. package/dist/src/structures/BaseInteraction.d.ts +81 -0
  213. package/dist/src/structures/BaseInteraction.d.ts.map +1 -0
  214. package/dist/src/structures/BaseInteraction.js +99 -0
  215. package/dist/src/structures/BaseInteraction.js.map +1 -0
  216. package/dist/src/structures/ButtonInteraction.d.ts +8 -0
  217. package/dist/src/structures/ButtonInteraction.d.ts.map +1 -0
  218. package/dist/src/structures/ButtonInteraction.js +18 -0
  219. package/dist/src/structures/ButtonInteraction.js.map +1 -0
  220. package/dist/src/structures/ChannelSelectMenuInteraction.d.ts +7 -0
  221. package/dist/src/structures/ChannelSelectMenuInteraction.d.ts.map +1 -0
  222. package/dist/src/structures/ChannelSelectMenuInteraction.js +11 -0
  223. package/dist/src/structures/ChannelSelectMenuInteraction.js.map +1 -0
  224. package/dist/src/structures/CommandHandler.d.ts +6 -0
  225. package/dist/src/structures/CommandHandler.d.ts.map +1 -0
  226. package/dist/src/structures/CommandHandler.js +70 -0
  227. package/dist/src/structures/CommandHandler.js.map +1 -0
  228. package/dist/src/structures/CommandInteraction.d.ts +15 -0
  229. package/dist/src/structures/CommandInteraction.d.ts.map +1 -0
  230. package/dist/src/structures/CommandInteraction.js +60 -0
  231. package/dist/src/structures/CommandInteraction.js.map +1 -0
  232. package/dist/src/structures/ComponentHandler.d.ts +6 -0
  233. package/dist/src/structures/ComponentHandler.d.ts.map +1 -0
  234. package/dist/src/structures/ComponentHandler.js +64 -0
  235. package/dist/src/structures/ComponentHandler.js.map +1 -0
  236. package/dist/src/structures/DmChannel.d.ts +18 -0
  237. package/dist/src/structures/DmChannel.d.ts.map +1 -0
  238. package/dist/src/structures/DmChannel.js +24 -0
  239. package/dist/src/structures/DmChannel.js.map +1 -0
  240. package/dist/src/structures/GroupDmChannel.d.ts +67 -0
  241. package/dist/src/structures/GroupDmChannel.d.ts.map +1 -0
  242. package/dist/src/structures/GroupDmChannel.js +109 -0
  243. package/dist/src/structures/GroupDmChannel.js.map +1 -0
  244. package/dist/src/structures/Guild.d.ts +71 -0
  245. package/dist/src/structures/Guild.d.ts.map +1 -0
  246. package/dist/src/structures/Guild.js +123 -0
  247. package/dist/src/structures/Guild.js.map +1 -0
  248. package/dist/src/structures/GuildAnnouncementChannel.d.ts +12 -0
  249. package/dist/src/structures/GuildAnnouncementChannel.d.ts.map +1 -0
  250. package/dist/src/structures/GuildAnnouncementChannel.js +17 -0
  251. package/dist/src/structures/GuildAnnouncementChannel.js.map +1 -0
  252. package/dist/src/structures/GuildCategoryChannel.d.ts +13 -0
  253. package/dist/src/structures/GuildCategoryChannel.d.ts.map +1 -0
  254. package/dist/src/structures/GuildCategoryChannel.js +14 -0
  255. package/dist/src/structures/GuildCategoryChannel.js.map +1 -0
  256. package/dist/src/structures/GuildForumChannel.d.ts +13 -0
  257. package/dist/src/structures/GuildForumChannel.d.ts.map +1 -0
  258. package/dist/src/structures/GuildForumChannel.js +14 -0
  259. package/dist/src/structures/GuildForumChannel.js.map +1 -0
  260. package/dist/src/structures/GuildMediaChannel.d.ts +13 -0
  261. package/dist/src/structures/GuildMediaChannel.d.ts.map +1 -0
  262. package/dist/src/structures/GuildMediaChannel.js +12 -0
  263. package/dist/src/structures/GuildMediaChannel.js.map +1 -0
  264. package/dist/src/structures/GuildStageOrVoiceChannel.d.ts +30 -0
  265. package/dist/src/structures/GuildStageOrVoiceChannel.d.ts.map +1 -0
  266. package/dist/src/structures/GuildStageOrVoiceChannel.js +34 -0
  267. package/dist/src/structures/GuildStageOrVoiceChannel.js.map +1 -0
  268. package/dist/src/structures/GuildTextChannel.d.ts +15 -0
  269. package/dist/src/structures/GuildTextChannel.d.ts.map +1 -0
  270. package/dist/src/structures/GuildTextChannel.js +18 -0
  271. package/dist/src/structures/GuildTextChannel.js.map +1 -0
  272. package/dist/src/structures/GuildThreadChannel.d.ts +89 -0
  273. package/dist/src/structures/GuildThreadChannel.d.ts.map +1 -0
  274. package/dist/src/structures/GuildThreadChannel.js +134 -0
  275. package/dist/src/structures/GuildThreadChannel.js.map +1 -0
  276. package/dist/src/structures/MentionableSelectMenuInteraction.d.ts +8 -0
  277. package/dist/src/structures/MentionableSelectMenuInteraction.d.ts.map +1 -0
  278. package/dist/src/structures/MentionableSelectMenuInteraction.js +15 -0
  279. package/dist/src/structures/MentionableSelectMenuInteraction.js.map +1 -0
  280. package/dist/src/structures/Message.d.ts +52 -0
  281. package/dist/src/structures/Message.d.ts.map +1 -0
  282. package/dist/src/structures/Message.js +93 -0
  283. package/dist/src/structures/Message.js.map +1 -0
  284. package/dist/src/structures/Role.d.ts +106 -0
  285. package/dist/src/structures/Role.d.ts.map +1 -0
  286. package/dist/src/structures/Role.js +181 -0
  287. package/dist/src/structures/Role.js.map +1 -0
  288. package/dist/src/structures/RoleSelectMenuInteraction.d.ts +8 -0
  289. package/dist/src/structures/RoleSelectMenuInteraction.d.ts.map +1 -0
  290. package/dist/src/structures/RoleSelectMenuInteraction.js +14 -0
  291. package/dist/src/structures/RoleSelectMenuInteraction.js.map +1 -0
  292. package/dist/src/structures/StringSelectMenuInteraction.d.ts +8 -0
  293. package/dist/src/structures/StringSelectMenuInteraction.d.ts.map +1 -0
  294. package/dist/src/structures/StringSelectMenuInteraction.js +14 -0
  295. package/dist/src/structures/StringSelectMenuInteraction.js.map +1 -0
  296. package/dist/src/structures/User.d.ts +80 -0
  297. package/dist/src/structures/User.d.ts.map +1 -0
  298. package/dist/src/structures/User.js +133 -0
  299. package/dist/src/structures/User.js.map +1 -0
  300. package/dist/src/structures/UserSelectMenuInteraction.d.ts +8 -0
  301. package/dist/src/structures/UserSelectMenuInteraction.d.ts.map +1 -0
  302. package/dist/src/structures/UserSelectMenuInteraction.js +14 -0
  303. package/dist/src/structures/UserSelectMenuInteraction.js.map +1 -0
  304. package/dist/src/types.d.ts +31 -0
  305. package/dist/src/types.d.ts.map +1 -0
  306. package/dist/src/types.js +33 -0
  307. package/dist/src/types.js.map +1 -0
  308. package/dist/src/utils.d.ts +2 -0
  309. package/dist/src/utils.d.ts.map +1 -0
  310. package/dist/src/utils.js +11 -0
  311. package/dist/src/utils.js.map +1 -0
  312. package/dist/tsconfig.tsbuildinfo +1 -0
  313. package/docs/classes/AnySelectMenu.mdx +114 -0
  314. package/docs/classes/AnySelectMenuInteraction.mdx +161 -0
  315. package/docs/classes/AutocompleteInteraction.mdx +152 -0
  316. package/docs/classes/AutocompleteOptionsHandler.mdx +243 -0
  317. package/docs/classes/BaseChannel.mdx +97 -0
  318. package/docs/classes/BaseCommand.mdx +61 -0
  319. package/docs/classes/BaseComponent.mdx +55 -0
  320. package/docs/classes/BaseComponentInteraction.mdx +146 -0
  321. package/docs/classes/BaseGuildChannel.mdx +262 -0
  322. package/docs/classes/BaseGuildTextChannel.mdx +360 -0
  323. package/docs/classes/BaseInteraction.mdx +127 -0
  324. package/docs/classes/Button.mdx +99 -0
  325. package/docs/classes/ButtonInteraction.mdx +141 -0
  326. package/docs/classes/ChannelSelectMenu.mdx +122 -0
  327. package/docs/classes/ChannelSelectMenuInteraction.mdx +157 -0
  328. package/docs/classes/Client.mdx +48 -0
  329. package/docs/classes/Command.mdx +111 -0
  330. package/docs/classes/CommandHandler.mdx +65 -0
  331. package/docs/classes/CommandInteraction.mdx +141 -0
  332. package/docs/classes/CommandWithSubcommandGroups.mdx +73 -0
  333. package/docs/classes/CommandWithSubcommands.mdx +76 -0
  334. package/docs/classes/ComponentHandler.mdx +49 -0
  335. package/docs/classes/DmChannel.mdx +118 -0
  336. package/docs/classes/GroupDmChannel.mdx +197 -0
  337. package/docs/classes/Guild.mdx +139 -0
  338. package/docs/classes/GuildAnnouncementChannel.mdx +377 -0
  339. package/docs/classes/GuildCategoryChannel.mdx +272 -0
  340. package/docs/classes/GuildForumChannel.mdx +333 -0
  341. package/docs/classes/GuildMediaChannel.mdx +327 -0
  342. package/docs/classes/GuildStageChannel.mdx +276 -0
  343. package/docs/classes/GuildStageOrVoiceChannel.mdx +292 -0
  344. package/docs/classes/GuildTextChannel.mdx +367 -0
  345. package/docs/classes/GuildThreadChannel.mdx +425 -0
  346. package/docs/classes/GuildThreadOnlyChannel.mdx +333 -0
  347. package/docs/classes/GuildVoiceChannel.mdx +276 -0
  348. package/docs/classes/LinkButton.mdx +84 -0
  349. package/docs/classes/MentionableSelectMenu.mdx +120 -0
  350. package/docs/classes/MentionableSelectMenuInteraction.mdx +157 -0
  351. package/docs/classes/Message.mdx +126 -0
  352. package/docs/classes/OptionsHandler.mdx +203 -0
  353. package/docs/classes/PremiumButton.mdx +84 -0
  354. package/docs/classes/Role.mdx +228 -0
  355. package/docs/classes/RoleSelectMenu.mdx +120 -0
  356. package/docs/classes/RoleSelectMenuInteraction.mdx +157 -0
  357. package/docs/classes/Row.mdx +88 -0
  358. package/docs/classes/StringSelectMenu.mdx +120 -0
  359. package/docs/classes/StringSelectMenuInteraction.mdx +157 -0
  360. package/docs/classes/User.mdx +119 -0
  361. package/docs/classes/UserSelectMenu.mdx +120 -0
  362. package/docs/classes/UserSelectMenuInteraction.mdx +157 -0
  363. package/docs/enumerations/ClientMode.mdx +16 -0
  364. package/docs/functions/channelFactory.mdx +16 -0
  365. package/docs/index.mdx +83 -0
  366. package/docs/type-aliases/AnySelectMenuComponentType.mdx +5 -0
  367. package/docs/type-aliases/ClientOptions.mdx +20 -0
  368. package/docs/type-aliases/CommandOptions.mdx +5 -0
  369. package/docs/type-aliases/ComponentAdditionalData.mdx +9 -0
  370. package/docs/type-aliases/InteractionFileData.mdx +15 -0
  371. package/docs/type-aliases/InteractionReplyData.mdx +14 -0
  372. package/docs/type-aliases/InteractionReplyOptions.mdx +13 -0
  373. package/docs/type-aliases/RawOptions.mdx +9 -0
  374. package/docs/type-aliases/meta.json +3 -0
  375. package/package.json +18 -0
  376. package/src/README.md +7 -0
  377. package/src/abstracts/AnySelectMenu.ts +63 -0
  378. package/src/abstracts/AnySelectMenuInteraction.ts +29 -0
  379. package/src/abstracts/Base.ts +12 -0
  380. package/src/abstracts/BaseChannel.ts +73 -0
  381. package/src/abstracts/BaseCommand.ts +95 -0
  382. package/src/abstracts/BaseComponent.ts +49 -0
  383. package/src/abstracts/BaseComponentInteraction.ts +19 -0
  384. package/src/abstracts/BaseGuildChannel.ts +152 -0
  385. package/src/abstracts/BaseGuildTextChannel.ts +77 -0
  386. package/src/abstracts/BaseInteraction.ts +170 -0
  387. package/src/abstracts/GuildThreadOnlyChannel.ts +71 -0
  388. package/src/classes/Button.ts +95 -0
  389. package/src/classes/ChannelSelectMenu.ts +21 -0
  390. package/src/classes/Client.ts +249 -0
  391. package/src/classes/Command.ts +51 -0
  392. package/src/classes/CommandWithSubcommandGroups.ts +47 -0
  393. package/src/classes/CommandWithSubcommands.ts +35 -0
  394. package/src/classes/MentionableSelectMenu.ts +19 -0
  395. package/src/classes/RoleSelectMenu.ts +19 -0
  396. package/src/classes/Row.ts +44 -0
  397. package/src/classes/StringSelectMenu.ts +19 -0
  398. package/src/classes/UserSelectMenu.ts +19 -0
  399. package/src/factories/channelFactory.ts +43 -0
  400. package/src/index.ts +59 -0
  401. package/src/internals/AutocompleteInteraction.ts +107 -0
  402. package/src/internals/ButtonInteraction.ts +26 -0
  403. package/src/internals/ChannelSelectMenuInteraction.ts +15 -0
  404. package/src/internals/CommandHandler.ts +123 -0
  405. package/src/internals/CommandInteraction.ts +49 -0
  406. package/src/internals/ComponentHandler.ts +81 -0
  407. package/src/internals/MentionableSelectMenuInteraction.ts +21 -0
  408. package/src/internals/OptionsHandler.ts +147 -0
  409. package/src/internals/RoleSelectMenuInteraction.ts +20 -0
  410. package/src/internals/StringSelectMenuInteraction.ts +20 -0
  411. package/src/internals/UserSelectMenuInteraction.ts +20 -0
  412. package/src/structures/DmChannel.ts +31 -0
  413. package/src/structures/GroupDmChannel.ts +132 -0
  414. package/src/structures/Guild.ts +142 -0
  415. package/src/structures/GuildAnnouncementChannel.ts +20 -0
  416. package/src/structures/GuildCategoryChannel.ts +16 -0
  417. package/src/structures/GuildForumChannel.ts +20 -0
  418. package/src/structures/GuildMediaChannel.ts +13 -0
  419. package/src/structures/GuildStageOrVoiceChannel.ts +46 -0
  420. package/src/structures/GuildTextChannel.ts +21 -0
  421. package/src/structures/GuildThreadChannel.ts +150 -0
  422. package/src/structures/Message.ts +124 -0
  423. package/src/structures/Role.ts +201 -0
  424. package/src/structures/User.ts +153 -0
  425. package/src/utils.ts +13 -0
  426. package/tests/index.test.ts +4 -0
  427. package/tsconfig.json +12 -0
  428. package/typedoc.json +9 -0
@@ -0,0 +1,106 @@
1
+ import { type APIRole, type APIRoleTags, type RoleFlags } from "discord-api-types/v10";
2
+ import { Base } from "../abstracts/Base.js";
3
+ import type { Client } from "../classes/Client.js";
4
+ export declare class Role extends Base {
5
+ /**
6
+ * The ID of the role.
7
+ */
8
+ id: string;
9
+ /**
10
+ * The name of the role.
11
+ */
12
+ name?: string | null;
13
+ /**
14
+ * The color of the role.
15
+ */
16
+ color?: number | null;
17
+ /**
18
+ * The icon hash of the role.
19
+ * You can use {@link Role.iconUrl} to get the URL of the icon.
20
+ */
21
+ icon?: string | null;
22
+ /**
23
+ * If this role is mentionable.
24
+ */
25
+ mentionable?: boolean | null;
26
+ /**
27
+ * If this role is hoisted.
28
+ */
29
+ hoisted?: boolean | null;
30
+ /**
31
+ * The position of the role.
32
+ */
33
+ position?: number | null;
34
+ /**
35
+ * The permissions of the role.
36
+ */
37
+ permissions?: string | null;
38
+ /**
39
+ * If this role is managed by an integration.
40
+ */
41
+ managed?: boolean | null;
42
+ /**
43
+ * The unicode emoji for the role.
44
+ */
45
+ unicodeEmoji?: string | null;
46
+ /**
47
+ * The flags of this role.
48
+ * @see https://discord.com/developers/docs/topics/permissions#role-object-role-flags
49
+ */
50
+ flags?: RoleFlags | null;
51
+ /**
52
+ * The tags of this role.
53
+ * @see https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure
54
+ */
55
+ tags?: APIRoleTags | null;
56
+ /**
57
+ * Whether the role is a partial role (meaning it does not have all the data).
58
+ * If this is true, you should use {@link Role.fetch} to get the full data of the role.
59
+ */
60
+ partial: boolean;
61
+ private rawData;
62
+ constructor(client: Client, rawDataOrId: APIRole | string);
63
+ private setData;
64
+ /**
65
+ * Fetch updated data for this role.
66
+ * If the role is partial, this will fetch all the data for the role and populate the fields.
67
+ * If the role is not partial, all fields will be updated with new values from Discord.
68
+ */
69
+ fetch(guildId: string): Promise<void>;
70
+ /**
71
+ * Set the name of the role
72
+ */
73
+ setName(guildId: string, name: string): Promise<void>;
74
+ /**
75
+ * Set the color of the role
76
+ */
77
+ setColor(guildId: string, color: number): Promise<void>;
78
+ /**
79
+ * Set the icon of the role
80
+ * @param icon The unicode emoji or icon URL to set
81
+ */
82
+ setIcon(guildId: string, icon: string): Promise<void>;
83
+ /**
84
+ * Set the mentionable status of the role
85
+ */
86
+ setMentionable(guildId: string, mentionable: boolean): Promise<void>;
87
+ /**
88
+ * Set the hoisted status of the role
89
+ */
90
+ setHoisted(guildId: string, hoisted: boolean): Promise<void>;
91
+ /**
92
+ * Set the position of the role
93
+ */
94
+ setPosition(guildId: string, position: number): Promise<void>;
95
+ /**
96
+ * Set the permissions of the role
97
+ * @param permissions The permissions to set as a BitField string, until a better permission structure is implemented
98
+ */
99
+ setPermissions(guildId: string, permissions: string): Promise<void>;
100
+ delete(guildId: string): Promise<void>;
101
+ /**
102
+ * Get the URL of the role's icon
103
+ */
104
+ get iconUrl(): string | null;
105
+ }
106
+ //# sourceMappingURL=Role.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../src/structures/Role.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAElD,qBAAa,IAAK,SAAQ,IAAI;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB;;OAEG;IACH,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 * The ID of the role.
6
+ */
7
+ id;
8
+ /**
9
+ * The name of the role.
10
+ */
11
+ name;
12
+ /**
13
+ * The color of the role.
14
+ */
15
+ color;
16
+ /**
17
+ * The icon hash of the role.
18
+ * You can use {@link Role.iconUrl} to get the URL of the icon.
19
+ */
20
+ icon;
21
+ /**
22
+ * If this role is mentionable.
23
+ */
24
+ mentionable;
25
+ /**
26
+ * If this role is hoisted.
27
+ */
28
+ hoisted;
29
+ /**
30
+ * The position of the role.
31
+ */
32
+ position;
33
+ /**
34
+ * The permissions of the role.
35
+ */
36
+ permissions;
37
+ /**
38
+ * If this role is managed by an integration.
39
+ */
40
+ managed;
41
+ /**
42
+ * The unicode emoji for the role.
43
+ */
44
+ unicodeEmoji;
45
+ /**
46
+ * The flags of this role.
47
+ * @see https://discord.com/developers/docs/topics/permissions#role-object-role-flags
48
+ */
49
+ flags;
50
+ /**
51
+ * The tags of this role.
52
+ * @see https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure
53
+ */
54
+ tags;
55
+ /**
56
+ * Whether the role is a partial role (meaning it does not have all the data).
57
+ * If this is true, you should use {@link Role.fetch} to get the full data of the role.
58
+ */
59
+ partial;
60
+ rawData = null;
61
+ constructor(client, rawDataOrId) {
62
+ super(client);
63
+ if (typeof rawDataOrId === "string") {
64
+ this.id = rawDataOrId;
65
+ this.partial = true;
66
+ }
67
+ else {
68
+ this.rawData = rawDataOrId;
69
+ this.id = rawDataOrId.id;
70
+ this.partial = false;
71
+ this.setData(rawDataOrId);
72
+ }
73
+ }
74
+ setData(data) {
75
+ if (!data)
76
+ throw new Error("Cannot set data without having data... smh");
77
+ this.rawData = data;
78
+ this.name = data.name;
79
+ this.color = data.color;
80
+ this.icon = data.icon;
81
+ this.mentionable = data.mentionable;
82
+ this.hoisted = data.hoist;
83
+ this.position = data.position;
84
+ this.permissions = data.permissions;
85
+ this.managed = data.managed;
86
+ this.unicodeEmoji = data.unicode_emoji;
87
+ this.flags = data.flags;
88
+ this.tags = data.tags;
89
+ this.partial = false;
90
+ }
91
+ /**
92
+ * Fetch updated data for this role.
93
+ * If the role is partial, this will fetch all the data for the role and populate the fields.
94
+ * If the role is not partial, all fields will be updated with new values from Discord.
95
+ */
96
+ async fetch(guildId) {
97
+ const newData = (await this.client.rest.get(Routes.guildRole(guildId, this.id)));
98
+ if (!newData)
99
+ throw new Error(`Role ${this.id} not found`);
100
+ this.setData(newData);
101
+ }
102
+ /**
103
+ * Set the name of the role
104
+ */
105
+ async setName(guildId, name) {
106
+ await this.client.rest.patch(Routes.guildRole(guildId, this.id), {
107
+ body: {
108
+ name
109
+ }
110
+ });
111
+ this.name = name;
112
+ }
113
+ /**
114
+ * Set the color of the role
115
+ */
116
+ async setColor(guildId, color) {
117
+ await this.client.rest.patch(Routes.guildRole(guildId, this.id), {
118
+ body: { color }
119
+ });
120
+ this.color = color;
121
+ }
122
+ /**
123
+ * Set the icon of the role
124
+ * @param icon The unicode emoji or icon URL to set
125
+ */
126
+ async setIcon(guildId, icon) {
127
+ await this.client.rest.patch(Routes.guildRole(guildId, this.id), {
128
+ body: { icon }
129
+ });
130
+ this.icon = icon;
131
+ }
132
+ /**
133
+ * Set the mentionable status of the role
134
+ */
135
+ async setMentionable(guildId, mentionable) {
136
+ await this.client.rest.patch(Routes.guildRole(guildId, this.id), {
137
+ body: { mentionable }
138
+ });
139
+ this.mentionable = mentionable;
140
+ }
141
+ /**
142
+ * Set the hoisted status of the role
143
+ */
144
+ async setHoisted(guildId, hoisted) {
145
+ await this.client.rest.patch(Routes.guildRole(guildId, this.id), {
146
+ body: { hoist: hoisted }
147
+ });
148
+ this.hoisted = hoisted;
149
+ }
150
+ /**
151
+ * Set the position of the role
152
+ */
153
+ async setPosition(guildId, position) {
154
+ await this.client.rest.patch(Routes.guildRole(guildId, this.id), {
155
+ body: { position }
156
+ });
157
+ this.position = position;
158
+ }
159
+ /**
160
+ * Set the permissions of the role
161
+ * @param permissions The permissions to set as a BitField string, until a better permission structure is implemented
162
+ */
163
+ async setPermissions(guildId, permissions) {
164
+ await this.client.rest.patch(Routes.guildRole(guildId, this.id), {
165
+ body: { permissions }
166
+ });
167
+ this.permissions = permissions;
168
+ }
169
+ async delete(guildId) {
170
+ await this.client.rest.delete(Routes.guildRole(guildId, this.id));
171
+ }
172
+ /**
173
+ * Get the URL of the role's icon
174
+ */
175
+ get iconUrl() {
176
+ return this.icon
177
+ ? `https://cdn.discordapp.com/role-icons/${this.id}/${this.icon}.png`
178
+ : null;
179
+ }
180
+ }
181
+ //# sourceMappingURL=Role.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/structures/Role.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,MAAM,EACN,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,MAAM,OAAO,IAAK,SAAQ,IAAI;IAC7B;;OAEG;IACH,EAAE,CAAQ;IACV;;OAEG;IACH,IAAI,CAAgB;IACpB;;OAEG;IACH,KAAK,CAAgB;IACrB;;;OAGG;IACH,IAAI,CAAgB;IACpB;;OAEG;IACH,WAAW,CAAiB;IAC5B;;OAEG;IACH,OAAO,CAAiB;IACxB;;OAEG;IACH,QAAQ,CAAgB;IACxB;;OAEG;IACH,WAAW,CAAgB;IAC3B;;OAEG;IACH,OAAO,CAAiB;IACxB;;OAEG;IACH,YAAY,CAAgB;IAC5B;;;OAGG;IACH,KAAK,CAAmB;IACxB;;;OAGG;IACH,IAAI,CAAqB;IAEzB;;;OAGG;IACH,OAAO,CAAS;IAER,OAAO,GAAmB,IAAI,CAAA;IAEtC,YAAY,MAAc,EAAE,WAA6B;QACxD,KAAK,CAAC,MAAM,CAAC,CAAA;QACb,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACrC,IAAI,CAAC,EAAE,GAAG,WAAW,CAAA;YACrB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;QACpB,CAAC;aAAM,CAAC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CAAC,CAAC,yCAAyC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,IAAI,MAAM;YACrE,CAAC,CAAC,IAAI,CAAA;IACR,CAAC;CACD"}
@@ -0,0 +1,8 @@
1
+ import { type APIMessageComponentSelectMenuInteraction } from "discord-api-types/v10";
2
+ import type { Client } from "../classes/Client.js";
3
+ import { AnySelectMenuInteraction } from "./AnySelectMenuInteraction.js";
4
+ export declare class RoleSelectMenuInteraction extends AnySelectMenuInteraction {
5
+ constructor(client: Client, data: APIMessageComponentSelectMenuInteraction);
6
+ get values(): string[];
7
+ }
8
+ //# sourceMappingURL=RoleSelectMenuInteraction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoleSelectMenuInteraction.d.ts","sourceRoot":"","sources":["../../../src/structures/RoleSelectMenuInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,wCAAwC,EAG7C,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAExE,qBAAa,yBAA0B,SAAQ,wBAAwB;gBAC1D,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wCAAwC;IAO1E,IAAI,MAAM,IAAI,MAAM,EAAE,CAErB;CACD"}
@@ -0,0 +1,14 @@
1
+ import { ComponentType } from "discord-api-types/v10";
2
+ import { AnySelectMenuInteraction } from "./AnySelectMenuInteraction.js";
3
+ export class RoleSelectMenuInteraction extends AnySelectMenuInteraction {
4
+ constructor(client, data) {
5
+ super(client, data);
6
+ if (data.data.component_type !== ComponentType.RoleSelect) {
7
+ throw new Error("Invalid component type was used to create this class");
8
+ }
9
+ }
10
+ get values() {
11
+ return this.rawData.data.values;
12
+ }
13
+ }
14
+ //# sourceMappingURL=RoleSelectMenuInteraction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoleSelectMenuInteraction.js","sourceRoot":"","sources":["../../../src/structures/RoleSelectMenuInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EAEb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAExE,MAAM,OAAO,yBAA0B,SAAQ,wBAAwB;IACtE,YAAY,MAAc,EAAE,IAA8C;QACzE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;QACnB,IAAI,IAAI,CAAC,IAAI,CAAC,cAAc,KAAK,aAAa,CAAC,UAAU,EAAE,CAAC;YAC3D,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;QACxE,CAAC;IACF,CAAC;IAED,IAAI,MAAM;QACT,OAAQ,IAAI,CAAC,OAAO,CAAC,IAA4C,CAAC,MAAM,CAAA;IACzE,CAAC;CACD"}
@@ -0,0 +1,8 @@
1
+ import { type APIMessageComponentSelectMenuInteraction } from "discord-api-types/v10";
2
+ import type { Client } from "../classes/Client.js";
3
+ import { AnySelectMenuInteraction } from "./AnySelectMenuInteraction.js";
4
+ export declare class StringSelectMenuInteraction extends AnySelectMenuInteraction {
5
+ constructor(client: Client, data: APIMessageComponentSelectMenuInteraction);
6
+ get values(): string[];
7
+ }
8
+ //# sourceMappingURL=StringSelectMenuInteraction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringSelectMenuInteraction.d.ts","sourceRoot":"","sources":["../../../src/structures/StringSelectMenuInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,wCAAwC,EAG7C,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAExE,qBAAa,2BAA4B,SAAQ,wBAAwB;gBAC5D,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wCAAwC;IAO1E,IAAI,MAAM,IAAI,MAAM,EAAE,CAErB;CACD"}
@@ -0,0 +1,14 @@
1
+ import { ComponentType } from "discord-api-types/v10";
2
+ import { AnySelectMenuInteraction } from "./AnySelectMenuInteraction.js";
3
+ export class StringSelectMenuInteraction extends AnySelectMenuInteraction {
4
+ constructor(client, data) {
5
+ super(client, data);
6
+ if (data.data.component_type !== ComponentType.StringSelect) {
7
+ throw new Error("Invalid component type was used to create this class");
8
+ }
9
+ }
10
+ get values() {
11
+ return this.rawData.data.values;
12
+ }
13
+ }
14
+ //# sourceMappingURL=StringSelectMenuInteraction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringSelectMenuInteraction.js","sourceRoot":"","sources":["../../../src/structures/StringSelectMenuInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EAEb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAExE,MAAM,OAAO,2BAA4B,SAAQ,wBAAwB;IACxE,YAAY,MAAc,EAAE,IAA8C;QACzE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;QACnB,IAAI,IAAI,CAAC,IAAI,CAAC,cAAc,KAAK,aAAa,CAAC,YAAY,EAAE,CAAC;YAC7D,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;QACxE,CAAC;IACF,CAAC;IAED,IAAI,MAAM;QACT,OAAQ,IAAI,CAAC,OAAO,CAAC,IAA8C,CAAC,MAAM,CAAA;IAC3E,CAAC;CACD"}
@@ -0,0 +1,80 @@
1
+ import { type APIDMChannel, type APIUser, type RESTPostAPIChannelMessageJSONBody, type UserFlags } from "discord-api-types/v10";
2
+ import { Base } from "../abstracts/Base.js";
3
+ import type { Client } from "../classes/Client.js";
4
+ import { Message } from "./Message.js";
5
+ export declare class User extends Base {
6
+ /**
7
+ * The ID of the user
8
+ */
9
+ id: string;
10
+ /**
11
+ * The username of the user.
12
+ */
13
+ username?: string;
14
+ /**
15
+ * The global name of the user.
16
+ */
17
+ globalName?: string | null;
18
+ /**
19
+ * The discriminator of the user.
20
+ */
21
+ discriminator?: string;
22
+ /**
23
+ * The avatar hash of the user.
24
+ * You can use {@link User.avatarUrl} to get the URL of the avatar.
25
+ */
26
+ avatar?: string | null;
27
+ /**
28
+ * Is this user a bot?
29
+ */
30
+ bot?: boolean;
31
+ /**
32
+ * Is this user a system user?
33
+ */
34
+ system?: boolean;
35
+ /**
36
+ * The public flags of the user. (Bitfield)
37
+ * @see https://discord.com/developers/docs/resources/user#user-object-user-flags
38
+ */
39
+ flags?: UserFlags;
40
+ /**
41
+ * The banner hash of the user.
42
+ * You can use {@link User.bannerUrl} to get the URL of the banner.
43
+ */
44
+ banner?: string | null;
45
+ /**
46
+ * The accent color of the user.
47
+ */
48
+ accentColor?: number | null;
49
+ /**
50
+ * Whether the user is a partial user (meaning it does not have all the data).
51
+ * If this is true, you should use {@link User.fetch} to get the full data of the user.
52
+ */
53
+ partial: boolean;
54
+ private rawData;
55
+ constructor(client: Client, rawDataOrId: APIUser | string);
56
+ private setData;
57
+ /**
58
+ * Fetch updated data for this user.
59
+ * If the user is partial, this will fetch all the data for the user and populate the fields.
60
+ * If the user is not partial, all fields will be updated with new values from Discord.
61
+ */
62
+ fetch(): Promise<void>;
63
+ /**
64
+ * Instantiate a new DM channel with this user.
65
+ */
66
+ createDm(userId: string): Promise<APIDMChannel>;
67
+ /**
68
+ * Send a message to this user.
69
+ */
70
+ send(data: RESTPostAPIChannelMessageJSONBody): Promise<Message>;
71
+ /**
72
+ * Get the URL of the user's avatar
73
+ */
74
+ get avatarUrl(): string | null;
75
+ /**
76
+ * Get the URL of the user's banner
77
+ */
78
+ get bannerUrl(): string | null;
79
+ }
80
+ //# sourceMappingURL=User.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../src/structures/User.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,YAAY,EAEjB,KAAK,OAAO,EACZ,KAAK,iCAAiC,EAEtC,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from "../abstracts/Base.js";
3
+ import { Message } from "./Message.js";
4
+ export class User extends Base {
5
+ /**
6
+ * The ID of the user
7
+ */
8
+ id;
9
+ /**
10
+ * The username of the user.
11
+ */
12
+ username;
13
+ /**
14
+ * The global name of the user.
15
+ */
16
+ globalName;
17
+ /**
18
+ * The discriminator of the user.
19
+ */
20
+ discriminator;
21
+ /**
22
+ * The avatar hash of the user.
23
+ * You can use {@link User.avatarUrl} to get the URL of the avatar.
24
+ */
25
+ avatar;
26
+ /**
27
+ * Is this user a bot?
28
+ */
29
+ bot;
30
+ /**
31
+ * Is this user a system user?
32
+ */
33
+ system;
34
+ /**
35
+ * The public flags of the user. (Bitfield)
36
+ * @see https://discord.com/developers/docs/resources/user#user-object-user-flags
37
+ */
38
+ flags;
39
+ /**
40
+ * The banner hash of the user.
41
+ * You can use {@link User.bannerUrl} to get the URL of the banner.
42
+ */
43
+ banner;
44
+ /**
45
+ * The accent color of the user.
46
+ */
47
+ accentColor;
48
+ /**
49
+ * Whether the user is a partial user (meaning it does not have all the data).
50
+ * If this is true, you should use {@link User.fetch} to get the full data of the user.
51
+ */
52
+ partial;
53
+ rawData = null;
54
+ constructor(client, rawDataOrId) {
55
+ super(client);
56
+ if (typeof rawDataOrId === "string") {
57
+ this.id = rawDataOrId;
58
+ this.partial = true;
59
+ }
60
+ else {
61
+ this.rawData = rawDataOrId;
62
+ this.id = rawDataOrId.id;
63
+ this.partial = false;
64
+ this.setData(rawDataOrId);
65
+ }
66
+ }
67
+ setData(data) {
68
+ if (!data)
69
+ throw new Error("Cannot set data without having data... smh");
70
+ this.rawData = data;
71
+ this.username = data.username;
72
+ this.globalName = data.global_name;
73
+ this.discriminator = data.discriminator;
74
+ this.avatar = data.avatar;
75
+ this.bot = data.bot;
76
+ this.system = data.system;
77
+ this.flags = data.public_flags;
78
+ this.banner = data.banner;
79
+ this.accentColor = data.accent_color;
80
+ this.partial = false;
81
+ }
82
+ /**
83
+ * Fetch updated data for this user.
84
+ * If the user is partial, this will fetch all the data for the user and populate the fields.
85
+ * If the user is not partial, all fields will be updated with new values from Discord.
86
+ */
87
+ async fetch() {
88
+ const newData = (await this.client.rest.get(Routes.user(this.id)));
89
+ if (!newData)
90
+ throw new Error(`User ${this.id} not found`);
91
+ this.setData(newData);
92
+ }
93
+ /**
94
+ * Instantiate a new DM channel with this user.
95
+ */
96
+ async createDm(userId) {
97
+ const dmChannel = (await this.client.rest.post(Routes.userChannels(), {
98
+ body: {
99
+ recipient_id: userId
100
+ }
101
+ }));
102
+ return dmChannel;
103
+ }
104
+ /**
105
+ * Send a message to this user.
106
+ */
107
+ async send(data) {
108
+ const dmChannel = await this.createDm(this.id);
109
+ const message = (await this.client.rest.post(Routes.channelMessages(dmChannel.id), {
110
+ body: {
111
+ ...data
112
+ }
113
+ }));
114
+ return new Message(this.client, message);
115
+ }
116
+ /**
117
+ * Get the URL of the user's avatar
118
+ */
119
+ get avatarUrl() {
120
+ return this.avatar
121
+ ? `https://cdn.discordapp.com/avatars/${this.id}/${this.avatar}.png`
122
+ : null;
123
+ }
124
+ /**
125
+ * Get the URL of the user's banner
126
+ */
127
+ get bannerUrl() {
128
+ return this.banner
129
+ ? `https://cdn.discordapp.com/banners/${this.id}/${this.banner}.png`
130
+ : null;
131
+ }
132
+ }
133
+ //# sourceMappingURL=User.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../src/structures/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,MAAM,EAEN,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,OAAO,IAAK,SAAQ,IAAI;IAC7B;;OAEG;IACH,EAAE,CAAQ;IACV;;OAEG;IACH,QAAQ,CAAS;IACjB;;OAEG;IACH,UAAU,CAAgB;IAC1B;;OAEG;IACH,aAAa,CAAS;IACtB;;;OAGG;IACH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AAC,sCAAsC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,MAAM,MAAM;YACpE,CAAC,CAAC,IAAI,CAAA;IACR,CAAC;IAED;;OAEG;IACH,IAAI,SAAS;QACZ,OAAO,IAAI,CAAC,MAAM;YACjB,CAAC,CAAC,sCAAsC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,MAAM,MAAM;YACpE,CAAC,CAAC,IAAI,CAAA;IACR,CAAC;CACD"}
@@ -0,0 +1,8 @@
1
+ import { type APIMessageComponentSelectMenuInteraction } from "discord-api-types/v10";
2
+ import type { Client } from "../classes/Client.js";
3
+ import { AnySelectMenuInteraction } from "./AnySelectMenuInteraction.js";
4
+ export declare class UserSelectMenuInteraction extends AnySelectMenuInteraction {
5
+ constructor(client: Client, data: APIMessageComponentSelectMenuInteraction);
6
+ get values(): string[];
7
+ }
8
+ //# sourceMappingURL=UserSelectMenuInteraction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserSelectMenuInteraction.d.ts","sourceRoot":"","sources":["../../../src/structures/UserSelectMenuInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,wCAAwC,EAG7C,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAExE,qBAAa,yBAA0B,SAAQ,wBAAwB;gBAC1D,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wCAAwC;IAO1E,IAAI,MAAM,IAAI,MAAM,EAAE,CAErB;CACD"}
@@ -0,0 +1,14 @@
1
+ import { ComponentType } from "discord-api-types/v10";
2
+ import { AnySelectMenuInteraction } from "./AnySelectMenuInteraction.js";
3
+ export class UserSelectMenuInteraction extends AnySelectMenuInteraction {
4
+ constructor(client, data) {
5
+ super(client, data);
6
+ if (data.data.component_type !== ComponentType.UserSelect) {
7
+ throw new Error("Invalid component type was used to create this class");
8
+ }
9
+ }
10
+ get values() {
11
+ return this.rawData.data.values;
12
+ }
13
+ }
14
+ //# sourceMappingURL=UserSelectMenuInteraction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserSelectMenuInteraction.js","sourceRoot":"","sources":["../../../src/structures/UserSelectMenuInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EAEb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAExE,MAAM,OAAO,yBAA0B,SAAQ,wBAAwB;IACtE,YAAY,MAAc,EAAE,IAA8C;QACzE,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;QACnB,IAAI,IAAI,CAAC,IAAI,CAAC,cAAc,KAAK,aAAa,CAAC,UAAU,EAAE,CAAC;YAC3D,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;QACxE,CAAC;IACF,CAAC;IAED,IAAI,MAAM;QACT,OAAQ,IAAI,CAAC,OAAO,CAAC,IAA4C,CAAC,MAAM,CAAA;IACzE,CAAC;CACD"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * https://discord.com/developers/docs/resources/application#application-object-application-integration-types
3
+ */
4
+ export declare enum ApplicationIntegrationType {
5
+ /**
6
+ * App is installable to servers
7
+ */
8
+ GuildInstall = 0,
9
+ /**
10
+ * App is installable to users
11
+ */
12
+ UserInstall = 1
13
+ }
14
+ /**
15
+ * https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-context-types
16
+ */
17
+ export declare enum InteractionContextType {
18
+ /**
19
+ * Interaction can be used within servers
20
+ */
21
+ Guild = 0,
22
+ /**
23
+ * Interaction can be used within DMs with the app's bot user
24
+ */
25
+ BotDM = 1,
26
+ /**
27
+ * Interaction can be used within Group DMs and DMs other than the app's bot user
28
+ */
29
+ PrivateChannel = 2
30
+ }
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,0BAA0B;IACrC;;OAEG;IACH,YAAY,IAAI;IAChB;;OAEG;IACH,WAAW,IAAI;CACf;AAED;;GAEG;AACH,oBAAY,sBAAsB;IACjC;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,cAAc,IAAI;CAClB"}