revbot.js 0.0.15-build-test → 0.0.15-build-test-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (522) hide show
  1. package/dist/index.cjs.map +1 -1
  2. package/dist/index.d.cts +2624 -11
  3. package/dist/index.d.ts +2624 -11
  4. package/dist/index.js +4465 -115
  5. package/dist/index.js.map +1 -1
  6. package/package.json +2 -2
  7. package/dist/chunk-35BYGFDX.js +0 -25
  8. package/dist/chunk-35BYGFDX.js.map +0 -1
  9. package/dist/chunk-3ANNOYXY.js +0 -30
  10. package/dist/chunk-3ANNOYXY.js.map +0 -1
  11. package/dist/chunk-3GLQHMWL.js +0 -39
  12. package/dist/chunk-3GLQHMWL.js.map +0 -1
  13. package/dist/chunk-43CUB3NP.js +0 -30
  14. package/dist/chunk-43CUB3NP.js.map +0 -1
  15. package/dist/chunk-55PAATU6.js +0 -101
  16. package/dist/chunk-55PAATU6.js.map +0 -1
  17. package/dist/chunk-5RK7FEID.js +0 -47
  18. package/dist/chunk-5RK7FEID.js.map +0 -1
  19. package/dist/chunk-6V6HPZ33.js +0 -27
  20. package/dist/chunk-6V6HPZ33.js.map +0 -1
  21. package/dist/chunk-6WJXGICC.js +0 -25
  22. package/dist/chunk-6WJXGICC.js.map +0 -1
  23. package/dist/chunk-7PA5MDKS.js +0 -157
  24. package/dist/chunk-7PA5MDKS.js.map +0 -1
  25. package/dist/chunk-7XUN3OQT.js +0 -1
  26. package/dist/chunk-7XUN3OQT.js.map +0 -1
  27. package/dist/chunk-AOKM5TCP.js +0 -37
  28. package/dist/chunk-AOKM5TCP.js.map +0 -1
  29. package/dist/chunk-BQS6ZLNY.js +0 -80
  30. package/dist/chunk-BQS6ZLNY.js.map +0 -1
  31. package/dist/chunk-CQ4AJZQD.js +0 -51
  32. package/dist/chunk-CQ4AJZQD.js.map +0 -1
  33. package/dist/chunk-DSM44DGO.js +0 -156
  34. package/dist/chunk-DSM44DGO.js.map +0 -1
  35. package/dist/chunk-E2P4PIDH.js +0 -35
  36. package/dist/chunk-E2P4PIDH.js.map +0 -1
  37. package/dist/chunk-EOZ7QHOH.js +0 -151
  38. package/dist/chunk-EOZ7QHOH.js.map +0 -1
  39. package/dist/chunk-FKNQEJE7.js +0 -20
  40. package/dist/chunk-FKNQEJE7.js.map +0 -1
  41. package/dist/chunk-G7DLVJKH.js +0 -34
  42. package/dist/chunk-G7DLVJKH.js.map +0 -1
  43. package/dist/chunk-GCIV7PRI.js +0 -30
  44. package/dist/chunk-GCIV7PRI.js.map +0 -1
  45. package/dist/chunk-GNQQG7EP.js +0 -88
  46. package/dist/chunk-GNQQG7EP.js.map +0 -1
  47. package/dist/chunk-H4SZEZP2.js +0 -38
  48. package/dist/chunk-H4SZEZP2.js.map +0 -1
  49. package/dist/chunk-HETUKFLM.js +0 -7
  50. package/dist/chunk-HETUKFLM.js.map +0 -1
  51. package/dist/chunk-HKLTWZSB.js +0 -112
  52. package/dist/chunk-HKLTWZSB.js.map +0 -1
  53. package/dist/chunk-ICANLKGX.js +0 -97
  54. package/dist/chunk-ICANLKGX.js.map +0 -1
  55. package/dist/chunk-J2RF7D67.js +0 -105
  56. package/dist/chunk-J2RF7D67.js.map +0 -1
  57. package/dist/chunk-K4VAG5ZU.js +0 -16
  58. package/dist/chunk-K4VAG5ZU.js.map +0 -1
  59. package/dist/chunk-LAL23AQK.js +0 -105
  60. package/dist/chunk-LAL23AQK.js.map +0 -1
  61. package/dist/chunk-LQUZ7Q7D.js +0 -29
  62. package/dist/chunk-LQUZ7Q7D.js.map +0 -1
  63. package/dist/chunk-LUDTY3LL.js +0 -103
  64. package/dist/chunk-LUDTY3LL.js.map +0 -1
  65. package/dist/chunk-LY7OFI25.js +0 -26
  66. package/dist/chunk-LY7OFI25.js.map +0 -1
  67. package/dist/chunk-MLKHJGSQ.js +0 -68
  68. package/dist/chunk-MLKHJGSQ.js.map +0 -1
  69. package/dist/chunk-MSJCRRXO.js +0 -32
  70. package/dist/chunk-MSJCRRXO.js.map +0 -1
  71. package/dist/chunk-O2IN5OZI.js +0 -27
  72. package/dist/chunk-O2IN5OZI.js.map +0 -1
  73. package/dist/chunk-OETI5C5L.js +0 -30
  74. package/dist/chunk-OETI5C5L.js.map +0 -1
  75. package/dist/chunk-OK227BBS.js +0 -38
  76. package/dist/chunk-OK227BBS.js.map +0 -1
  77. package/dist/chunk-R2PF552K.js +0 -67
  78. package/dist/chunk-R2PF552K.js.map +0 -1
  79. package/dist/chunk-RMACMP4R.js +0 -26
  80. package/dist/chunk-RMACMP4R.js.map +0 -1
  81. package/dist/chunk-SYXHGCHU.js +0 -26
  82. package/dist/chunk-SYXHGCHU.js.map +0 -1
  83. package/dist/chunk-VELIOWTX.js +0 -25
  84. package/dist/chunk-VELIOWTX.js.map +0 -1
  85. package/dist/chunk-VU3XNPDE.js +0 -37
  86. package/dist/chunk-VU3XNPDE.js.map +0 -1
  87. package/dist/chunk-W4XDXSOK.js +0 -32
  88. package/dist/chunk-W4XDXSOK.js.map +0 -1
  89. package/dist/chunk-WMWOEYVA.js +0 -26
  90. package/dist/chunk-WMWOEYVA.js.map +0 -1
  91. package/dist/chunk-X7VEORVS.js +0 -43
  92. package/dist/chunk-X7VEORVS.js.map +0 -1
  93. package/dist/chunk-XMS4UTPG.js +0 -49
  94. package/dist/chunk-XMS4UTPG.js.map +0 -1
  95. package/dist/chunk-XQEYCTYC.js +0 -2601
  96. package/dist/chunk-XQEYCTYC.js.map +0 -1
  97. package/dist/chunk-YLSAAPO4.js +0 -79
  98. package/dist/chunk-YLSAAPO4.js.map +0 -1
  99. package/dist/chunk-YXX4DJB3.js +0 -27
  100. package/dist/chunk-YXX4DJB3.js.map +0 -1
  101. package/dist/client/baseClient.cjs +0 -799
  102. package/dist/client/baseClient.cjs.map +0 -1
  103. package/dist/client/baseClient.d.cts +0 -10
  104. package/dist/client/baseClient.d.ts +0 -10
  105. package/dist/client/baseClient.js +0 -18
  106. package/dist/client/baseClient.js.map +0 -1
  107. package/dist/client/client.cjs +0 -4286
  108. package/dist/client/client.cjs.map +0 -1
  109. package/dist/client/client.d.cts +0 -10
  110. package/dist/client/client.d.ts +0 -10
  111. package/dist/client/client.js +0 -53
  112. package/dist/client/client.js.map +0 -1
  113. package/dist/client/events/bulkMessageDelete.cjs +0 -104
  114. package/dist/client/events/bulkMessageDelete.cjs.map +0 -1
  115. package/dist/client/events/bulkMessageDelete.d.cts +0 -28
  116. package/dist/client/events/bulkMessageDelete.d.ts +0 -28
  117. package/dist/client/events/bulkMessageDelete.js +0 -11
  118. package/dist/client/events/bulkMessageDelete.js.map +0 -1
  119. package/dist/client/events/channelCreate.cjs +0 -136
  120. package/dist/client/events/channelCreate.cjs.map +0 -1
  121. package/dist/client/events/channelCreate.d.cts +0 -27
  122. package/dist/client/events/channelCreate.d.ts +0 -27
  123. package/dist/client/events/channelCreate.js +0 -11
  124. package/dist/client/events/channelCreate.js.map +0 -1
  125. package/dist/client/events/channelDelete.cjs +0 -113
  126. package/dist/client/events/channelDelete.cjs.map +0 -1
  127. package/dist/client/events/channelDelete.d.cts +0 -29
  128. package/dist/client/events/channelDelete.d.ts +0 -29
  129. package/dist/client/events/channelDelete.js +0 -11
  130. package/dist/client/events/channelDelete.js.map +0 -1
  131. package/dist/client/events/channelGroupJoin.cjs +0 -133
  132. package/dist/client/events/channelGroupJoin.cjs.map +0 -1
  133. package/dist/client/events/channelGroupJoin.d.cts +0 -30
  134. package/dist/client/events/channelGroupJoin.d.ts +0 -30
  135. package/dist/client/events/channelGroupJoin.js +0 -11
  136. package/dist/client/events/channelGroupJoin.js.map +0 -1
  137. package/dist/client/events/channelGroupLeave.cjs +0 -133
  138. package/dist/client/events/channelGroupLeave.cjs.map +0 -1
  139. package/dist/client/events/channelGroupLeave.d.cts +0 -30
  140. package/dist/client/events/channelGroupLeave.d.ts +0 -30
  141. package/dist/client/events/channelGroupLeave.js +0 -11
  142. package/dist/client/events/channelGroupLeave.js.map +0 -1
  143. package/dist/client/events/channelStarttyping.cjs +0 -110
  144. package/dist/client/events/channelStarttyping.cjs.map +0 -1
  145. package/dist/client/events/channelStarttyping.d.cts +0 -30
  146. package/dist/client/events/channelStarttyping.d.ts +0 -30
  147. package/dist/client/events/channelStarttyping.js +0 -11
  148. package/dist/client/events/channelStarttyping.js.map +0 -1
  149. package/dist/client/events/channelStopTyping.cjs +0 -110
  150. package/dist/client/events/channelStopTyping.cjs.map +0 -1
  151. package/dist/client/events/channelStopTyping.d.cts +0 -30
  152. package/dist/client/events/channelStopTyping.d.ts +0 -30
  153. package/dist/client/events/channelStopTyping.js +0 -11
  154. package/dist/client/events/channelStopTyping.js.map +0 -1
  155. package/dist/client/events/channelUpdate.cjs +0 -109
  156. package/dist/client/events/channelUpdate.cjs.map +0 -1
  157. package/dist/client/events/channelUpdate.d.cts +0 -31
  158. package/dist/client/events/channelUpdate.d.ts +0 -31
  159. package/dist/client/events/channelUpdate.js +0 -11
  160. package/dist/client/events/channelUpdate.js.map +0 -1
  161. package/dist/client/events/event.cjs +0 -124
  162. package/dist/client/events/event.cjs.map +0 -1
  163. package/dist/client/events/event.d.cts +0 -11
  164. package/dist/client/events/event.d.ts +0 -11
  165. package/dist/client/events/event.js +0 -13
  166. package/dist/client/events/event.js.map +0 -1
  167. package/dist/client/events/eventManager.cjs +0 -657
  168. package/dist/client/events/eventManager.cjs.map +0 -1
  169. package/dist/client/events/eventManager.d.cts +0 -10
  170. package/dist/client/events/eventManager.d.ts +0 -10
  171. package/dist/client/events/eventManager.js +0 -34
  172. package/dist/client/events/eventManager.js.map +0 -1
  173. package/dist/client/events/index.cjs +0 -629
  174. package/dist/client/events/index.cjs.map +0 -1
  175. package/dist/client/events/index.d.cts +0 -32
  176. package/dist/client/events/index.d.ts +0 -32
  177. package/dist/client/events/index.js +0 -96
  178. package/dist/client/events/index.js.map +0 -1
  179. package/dist/client/events/message.cjs +0 -136
  180. package/dist/client/events/message.cjs.map +0 -1
  181. package/dist/client/events/message.d.cts +0 -27
  182. package/dist/client/events/message.d.ts +0 -27
  183. package/dist/client/events/message.js +0 -11
  184. package/dist/client/events/message.js.map +0 -1
  185. package/dist/client/events/messageDelete.cjs +0 -114
  186. package/dist/client/events/messageDelete.cjs.map +0 -1
  187. package/dist/client/events/messageDelete.d.cts +0 -30
  188. package/dist/client/events/messageDelete.d.ts +0 -30
  189. package/dist/client/events/messageDelete.js +0 -11
  190. package/dist/client/events/messageDelete.js.map +0 -1
  191. package/dist/client/events/messageReact.cjs +0 -138
  192. package/dist/client/events/messageReact.cjs.map +0 -1
  193. package/dist/client/events/messageReact.d.cts +0 -40
  194. package/dist/client/events/messageReact.d.ts +0 -40
  195. package/dist/client/events/messageReact.js +0 -11
  196. package/dist/client/events/messageReact.js.map +0 -1
  197. package/dist/client/events/messageUnreact.cjs +0 -144
  198. package/dist/client/events/messageUnreact.cjs.map +0 -1
  199. package/dist/client/events/messageUnreact.d.cts +0 -28
  200. package/dist/client/events/messageUnreact.d.ts +0 -28
  201. package/dist/client/events/messageUnreact.js +0 -11
  202. package/dist/client/events/messageUnreact.js.map +0 -1
  203. package/dist/client/events/messageUpdate.cjs +0 -111
  204. package/dist/client/events/messageUpdate.cjs.map +0 -1
  205. package/dist/client/events/messageUpdate.d.cts +0 -31
  206. package/dist/client/events/messageUpdate.d.ts +0 -31
  207. package/dist/client/events/messageUpdate.js +0 -11
  208. package/dist/client/events/messageUpdate.js.map +0 -1
  209. package/dist/client/events/serverCreate.cjs +0 -131
  210. package/dist/client/events/serverCreate.cjs.map +0 -1
  211. package/dist/client/events/serverCreate.d.cts +0 -27
  212. package/dist/client/events/serverCreate.d.ts +0 -27
  213. package/dist/client/events/serverCreate.js +0 -11
  214. package/dist/client/events/serverCreate.js.map +0 -1
  215. package/dist/client/events/serverDelete.cjs +0 -110
  216. package/dist/client/events/serverDelete.cjs.map +0 -1
  217. package/dist/client/events/serverDelete.d.cts +0 -27
  218. package/dist/client/events/serverDelete.d.ts +0 -27
  219. package/dist/client/events/serverDelete.js +0 -11
  220. package/dist/client/events/serverDelete.js.map +0 -1
  221. package/dist/client/events/serverMemberJoin.cjs +0 -135
  222. package/dist/client/events/serverMemberJoin.cjs.map +0 -1
  223. package/dist/client/events/serverMemberJoin.d.cts +0 -30
  224. package/dist/client/events/serverMemberJoin.d.ts +0 -30
  225. package/dist/client/events/serverMemberJoin.js +0 -11
  226. package/dist/client/events/serverMemberJoin.js.map +0 -1
  227. package/dist/client/events/serverMemberLeave.cjs +0 -114
  228. package/dist/client/events/serverMemberLeave.cjs.map +0 -1
  229. package/dist/client/events/serverMemberLeave.d.cts +0 -30
  230. package/dist/client/events/serverMemberLeave.d.ts +0 -30
  231. package/dist/client/events/serverMemberLeave.js +0 -11
  232. package/dist/client/events/serverMemberLeave.js.map +0 -1
  233. package/dist/client/events/serverMemberUpdate.cjs +0 -135
  234. package/dist/client/events/serverMemberUpdate.cjs.map +0 -1
  235. package/dist/client/events/serverMemberUpdate.d.cts +0 -33
  236. package/dist/client/events/serverMemberUpdate.d.ts +0 -33
  237. package/dist/client/events/serverMemberUpdate.js +0 -11
  238. package/dist/client/events/serverMemberUpdate.js.map +0 -1
  239. package/dist/client/events/serverRoleDelete.cjs +0 -114
  240. package/dist/client/events/serverRoleDelete.cjs.map +0 -1
  241. package/dist/client/events/serverRoleDelete.d.cts +0 -30
  242. package/dist/client/events/serverRoleDelete.d.ts +0 -30
  243. package/dist/client/events/serverRoleDelete.js +0 -11
  244. package/dist/client/events/serverRoleDelete.js.map +0 -1
  245. package/dist/client/events/serverRoleUpdate.cjs +0 -111
  246. package/dist/client/events/serverRoleUpdate.cjs.map +0 -1
  247. package/dist/client/events/serverRoleUpdate.d.cts +0 -34
  248. package/dist/client/events/serverRoleUpdate.d.ts +0 -34
  249. package/dist/client/events/serverRoleUpdate.js +0 -11
  250. package/dist/client/events/serverRoleUpdate.js.map +0 -1
  251. package/dist/client/events/serverupdate.cjs +0 -109
  252. package/dist/client/events/serverupdate.cjs.map +0 -1
  253. package/dist/client/events/serverupdate.d.cts +0 -31
  254. package/dist/client/events/serverupdate.d.ts +0 -31
  255. package/dist/client/events/serverupdate.js +0 -11
  256. package/dist/client/events/serverupdate.js.map +0 -1
  257. package/dist/client/events/userUpdate.cjs +0 -109
  258. package/dist/client/events/userUpdate.cjs.map +0 -1
  259. package/dist/client/events/userUpdate.d.cts +0 -31
  260. package/dist/client/events/userUpdate.d.ts +0 -31
  261. package/dist/client/events/userUpdate.js +0 -11
  262. package/dist/client/events/userUpdate.js.map +0 -1
  263. package/dist/client/webSocket.cjs +0 -1018
  264. package/dist/client/webSocket.cjs.map +0 -1
  265. package/dist/client/webSocket.d.cts +0 -10
  266. package/dist/client/webSocket.d.ts +0 -10
  267. package/dist/client/webSocket.js +0 -53
  268. package/dist/client/webSocket.js.map +0 -1
  269. package/dist/index-D44PqKGb.d.ts +0 -2386
  270. package/dist/index-XkxTx7UU.d.cts +0 -2386
  271. package/dist/managers/baseManager.cjs +0 -63
  272. package/dist/managers/baseManager.cjs.map +0 -1
  273. package/dist/managers/baseManager.d.cts +0 -10
  274. package/dist/managers/baseManager.d.ts +0 -10
  275. package/dist/managers/baseManager.js +0 -8
  276. package/dist/managers/baseManager.js.map +0 -1
  277. package/dist/managers/channelManager.cjs +0 -1978
  278. package/dist/managers/channelManager.cjs.map +0 -1
  279. package/dist/managers/channelManager.d.cts +0 -10
  280. package/dist/managers/channelManager.d.ts +0 -10
  281. package/dist/managers/channelManager.js +0 -53
  282. package/dist/managers/channelManager.js.map +0 -1
  283. package/dist/managers/index.cjs +0 -2992
  284. package/dist/managers/index.cjs.map +0 -1
  285. package/dist/managers/index.d.cts +0 -10
  286. package/dist/managers/index.d.ts +0 -10
  287. package/dist/managers/index.js +0 -68
  288. package/dist/managers/index.js.map +0 -1
  289. package/dist/managers/messageManager.cjs +0 -1153
  290. package/dist/managers/messageManager.cjs.map +0 -1
  291. package/dist/managers/messageManager.d.cts +0 -10
  292. package/dist/managers/messageManager.d.ts +0 -10
  293. package/dist/managers/messageManager.js +0 -53
  294. package/dist/managers/messageManager.js.map +0 -1
  295. package/dist/managers/roleManager.cjs +0 -700
  296. package/dist/managers/roleManager.cjs.map +0 -1
  297. package/dist/managers/roleManager.d.cts +0 -10
  298. package/dist/managers/roleManager.d.ts +0 -10
  299. package/dist/managers/roleManager.js +0 -53
  300. package/dist/managers/roleManager.js.map +0 -1
  301. package/dist/managers/serverChannelManager.cjs +0 -1622
  302. package/dist/managers/serverChannelManager.cjs.map +0 -1
  303. package/dist/managers/serverChannelManager.d.cts +0 -10
  304. package/dist/managers/serverChannelManager.d.ts +0 -10
  305. package/dist/managers/serverChannelManager.js +0 -53
  306. package/dist/managers/serverChannelManager.js.map +0 -1
  307. package/dist/managers/serverManager.cjs +0 -2508
  308. package/dist/managers/serverManager.cjs.map +0 -1
  309. package/dist/managers/serverManager.d.cts +0 -10
  310. package/dist/managers/serverManager.d.ts +0 -10
  311. package/dist/managers/serverManager.js +0 -53
  312. package/dist/managers/serverManager.js.map +0 -1
  313. package/dist/managers/serverMemberManager.cjs +0 -1037
  314. package/dist/managers/serverMemberManager.cjs.map +0 -1
  315. package/dist/managers/serverMemberManager.d.cts +0 -10
  316. package/dist/managers/serverMemberManager.d.ts +0 -10
  317. package/dist/managers/serverMemberManager.js +0 -53
  318. package/dist/managers/serverMemberManager.js.map +0 -1
  319. package/dist/managers/userManager.cjs +0 -1103
  320. package/dist/managers/userManager.cjs.map +0 -1
  321. package/dist/managers/userManager.d.cts +0 -10
  322. package/dist/managers/userManager.d.ts +0 -10
  323. package/dist/managers/userManager.js +0 -53
  324. package/dist/managers/userManager.js.map +0 -1
  325. package/dist/rest/CDNClient.cjs +0 -608
  326. package/dist/rest/CDNClient.cjs.map +0 -1
  327. package/dist/rest/CDNClient.d.cts +0 -10
  328. package/dist/rest/CDNClient.d.ts +0 -10
  329. package/dist/rest/CDNClient.js +0 -16
  330. package/dist/rest/CDNClient.js.map +0 -1
  331. package/dist/rest/restClient.cjs +0 -652
  332. package/dist/rest/restClient.cjs.map +0 -1
  333. package/dist/rest/restClient.d.cts +0 -10
  334. package/dist/rest/restClient.d.ts +0 -10
  335. package/dist/rest/restClient.js +0 -16
  336. package/dist/rest/restClient.js.map +0 -1
  337. package/dist/rest/restUtils/rateLimitQueue.cjs +0 -138
  338. package/dist/rest/restUtils/rateLimitQueue.cjs.map +0 -1
  339. package/dist/rest/restUtils/rateLimitQueue.d.cts +0 -13
  340. package/dist/rest/restUtils/rateLimitQueue.d.ts +0 -13
  341. package/dist/rest/restUtils/rateLimitQueue.js +0 -8
  342. package/dist/rest/restUtils/rateLimitQueue.js.map +0 -1
  343. package/dist/struct/attachment.cjs +0 -263
  344. package/dist/struct/attachment.cjs.map +0 -1
  345. package/dist/struct/attachment.d.cts +0 -10
  346. package/dist/struct/attachment.d.ts +0 -10
  347. package/dist/struct/attachment.js +0 -10
  348. package/dist/struct/attachment.js.map +0 -1
  349. package/dist/struct/base.cjs +0 -234
  350. package/dist/struct/base.cjs.map +0 -1
  351. package/dist/struct/base.d.cts +0 -10
  352. package/dist/struct/base.d.ts +0 -10
  353. package/dist/struct/base.js +0 -9
  354. package/dist/struct/base.js.map +0 -1
  355. package/dist/struct/category.cjs +0 -532
  356. package/dist/struct/category.cjs.map +0 -1
  357. package/dist/struct/category.d.cts +0 -10
  358. package/dist/struct/category.d.ts +0 -10
  359. package/dist/struct/category.js +0 -53
  360. package/dist/struct/category.js.map +0 -1
  361. package/dist/struct/channel.cjs +0 -539
  362. package/dist/struct/channel.cjs.map +0 -1
  363. package/dist/struct/channel.d.cts +0 -10
  364. package/dist/struct/channel.d.ts +0 -10
  365. package/dist/struct/channel.js +0 -15
  366. package/dist/struct/channel.js.map +0 -1
  367. package/dist/struct/clientUser.cjs +0 -741
  368. package/dist/struct/clientUser.cjs.map +0 -1
  369. package/dist/struct/clientUser.d.cts +0 -10
  370. package/dist/struct/clientUser.d.ts +0 -10
  371. package/dist/struct/clientUser.js +0 -53
  372. package/dist/struct/clientUser.js.map +0 -1
  373. package/dist/struct/dmChannel.cjs +0 -1320
  374. package/dist/struct/dmChannel.cjs.map +0 -1
  375. package/dist/struct/dmChannel.d.cts +0 -10
  376. package/dist/struct/dmChannel.d.ts +0 -10
  377. package/dist/struct/dmChannel.js +0 -53
  378. package/dist/struct/dmChannel.js.map +0 -1
  379. package/dist/struct/emoji.cjs +0 -273
  380. package/dist/struct/emoji.cjs.map +0 -1
  381. package/dist/struct/emoji.d.cts +0 -10
  382. package/dist/struct/emoji.d.ts +0 -10
  383. package/dist/struct/emoji.js +0 -10
  384. package/dist/struct/emoji.js.map +0 -1
  385. package/dist/struct/groupChannel.cjs +0 -1519
  386. package/dist/struct/groupChannel.cjs.map +0 -1
  387. package/dist/struct/groupChannel.d.cts +0 -10
  388. package/dist/struct/groupChannel.d.ts +0 -10
  389. package/dist/struct/groupChannel.js +0 -53
  390. package/dist/struct/groupChannel.js.map +0 -1
  391. package/dist/struct/index.cjs +0 -2970
  392. package/dist/struct/index.cjs.map +0 -1
  393. package/dist/struct/index.d.cts +0 -10
  394. package/dist/struct/index.d.ts +0 -10
  395. package/dist/struct/index.js +0 -101
  396. package/dist/struct/index.js.map +0 -1
  397. package/dist/struct/interfaces/baseChannel.cjs +0 -19
  398. package/dist/struct/interfaces/baseChannel.cjs.map +0 -1
  399. package/dist/struct/interfaces/baseChannel.d.cts +0 -10
  400. package/dist/struct/interfaces/baseChannel.d.ts +0 -10
  401. package/dist/struct/interfaces/baseChannel.js +0 -1
  402. package/dist/struct/interfaces/baseChannel.js.map +0 -1
  403. package/dist/struct/invite.cjs +0 -293
  404. package/dist/struct/invite.cjs.map +0 -1
  405. package/dist/struct/invite.d.cts +0 -10
  406. package/dist/struct/invite.d.ts +0 -10
  407. package/dist/struct/invite.js +0 -10
  408. package/dist/struct/invite.js.map +0 -1
  409. package/dist/struct/mentions.cjs +0 -104
  410. package/dist/struct/mentions.cjs.map +0 -1
  411. package/dist/struct/mentions.d.cts +0 -10
  412. package/dist/struct/mentions.d.ts +0 -10
  413. package/dist/struct/mentions.js +0 -8
  414. package/dist/struct/mentions.js.map +0 -1
  415. package/dist/struct/message.cjs +0 -817
  416. package/dist/struct/message.cjs.map +0 -1
  417. package/dist/struct/message.d.cts +0 -10
  418. package/dist/struct/message.d.ts +0 -10
  419. package/dist/struct/message.js +0 -53
  420. package/dist/struct/message.js.map +0 -1
  421. package/dist/struct/messageEmbed.cjs +0 -205
  422. package/dist/struct/messageEmbed.cjs.map +0 -1
  423. package/dist/struct/messageEmbed.d.cts +0 -10
  424. package/dist/struct/messageEmbed.d.ts +0 -10
  425. package/dist/struct/messageEmbed.js +0 -8
  426. package/dist/struct/messageEmbed.js.map +0 -1
  427. package/dist/struct/notesChannel.cjs +0 -1327
  428. package/dist/struct/notesChannel.cjs.map +0 -1
  429. package/dist/struct/notesChannel.d.cts +0 -10
  430. package/dist/struct/notesChannel.d.ts +0 -10
  431. package/dist/struct/notesChannel.js +0 -53
  432. package/dist/struct/notesChannel.js.map +0 -1
  433. package/dist/struct/presence.cjs +0 -254
  434. package/dist/struct/presence.cjs.map +0 -1
  435. package/dist/struct/presence.d.cts +0 -10
  436. package/dist/struct/presence.d.ts +0 -10
  437. package/dist/struct/presence.js +0 -12
  438. package/dist/struct/presence.js.map +0 -1
  439. package/dist/struct/role.cjs +0 -572
  440. package/dist/struct/role.cjs.map +0 -1
  441. package/dist/struct/role.d.cts +0 -10
  442. package/dist/struct/role.d.ts +0 -10
  443. package/dist/struct/role.js +0 -53
  444. package/dist/struct/role.js.map +0 -1
  445. package/dist/struct/server.cjs +0 -2454
  446. package/dist/struct/server.cjs.map +0 -1
  447. package/dist/struct/server.d.cts +0 -10
  448. package/dist/struct/server.d.ts +0 -10
  449. package/dist/struct/server.js +0 -53
  450. package/dist/struct/server.js.map +0 -1
  451. package/dist/struct/serverChannel.cjs +0 -776
  452. package/dist/struct/serverChannel.cjs.map +0 -1
  453. package/dist/struct/serverChannel.d.cts +0 -10
  454. package/dist/struct/serverChannel.d.ts +0 -10
  455. package/dist/struct/serverChannel.js +0 -53
  456. package/dist/struct/serverChannel.js.map +0 -1
  457. package/dist/struct/serverMember.cjs +0 -711
  458. package/dist/struct/serverMember.cjs.map +0 -1
  459. package/dist/struct/serverMember.d.cts +0 -10
  460. package/dist/struct/serverMember.d.ts +0 -10
  461. package/dist/struct/serverMember.js +0 -53
  462. package/dist/struct/serverMember.js.map +0 -1
  463. package/dist/struct/textChannel.cjs +0 -1502
  464. package/dist/struct/textChannel.cjs.map +0 -1
  465. package/dist/struct/textChannel.d.cts +0 -10
  466. package/dist/struct/textChannel.d.ts +0 -10
  467. package/dist/struct/textChannel.js +0 -53
  468. package/dist/struct/textChannel.js.map +0 -1
  469. package/dist/struct/user.cjs +0 -690
  470. package/dist/struct/user.cjs.map +0 -1
  471. package/dist/struct/user.d.cts +0 -10
  472. package/dist/struct/user.d.ts +0 -10
  473. package/dist/struct/user.js +0 -53
  474. package/dist/struct/user.js.map +0 -1
  475. package/dist/struct/voiceChannels.cjs +0 -820
  476. package/dist/struct/voiceChannels.cjs.map +0 -1
  477. package/dist/struct/voiceChannels.d.cts +0 -10
  478. package/dist/struct/voiceChannels.d.ts +0 -10
  479. package/dist/struct/voiceChannels.js +0 -53
  480. package/dist/struct/voiceChannels.js.map +0 -1
  481. package/dist/utils/UUID.cjs +0 -75
  482. package/dist/utils/UUID.cjs.map +0 -1
  483. package/dist/utils/UUID.d.cts +0 -14
  484. package/dist/utils/UUID.d.ts +0 -14
  485. package/dist/utils/UUID.js +0 -8
  486. package/dist/utils/UUID.js.map +0 -1
  487. package/dist/utils/badges.cjs +0 -181
  488. package/dist/utils/badges.cjs.map +0 -1
  489. package/dist/utils/badges.d.cts +0 -25
  490. package/dist/utils/badges.d.ts +0 -25
  491. package/dist/utils/badges.js +0 -9
  492. package/dist/utils/badges.js.map +0 -1
  493. package/dist/utils/bitField.cjs +0 -161
  494. package/dist/utils/bitField.cjs.map +0 -1
  495. package/dist/utils/bitField.d.cts +0 -51
  496. package/dist/utils/bitField.d.ts +0 -51
  497. package/dist/utils/bitField.js +0 -8
  498. package/dist/utils/bitField.js.map +0 -1
  499. package/dist/utils/constants.cjs +0 -179
  500. package/dist/utils/constants.cjs.map +0 -1
  501. package/dist/utils/constants.d.cts +0 -10
  502. package/dist/utils/constants.d.ts +0 -10
  503. package/dist/utils/constants.js +0 -23
  504. package/dist/utils/constants.js.map +0 -1
  505. package/dist/utils/index.cjs +0 -489
  506. package/dist/utils/index.cjs.map +0 -1
  507. package/dist/utils/index.d.cts +0 -11
  508. package/dist/utils/index.d.ts +0 -11
  509. package/dist/utils/index.js +0 -47
  510. package/dist/utils/index.js.map +0 -1
  511. package/dist/utils/permissions.cjs +0 -314
  512. package/dist/utils/permissions.cjs.map +0 -1
  513. package/dist/utils/permissions.d.cts +0 -110
  514. package/dist/utils/permissions.d.ts +0 -110
  515. package/dist/utils/permissions.js +0 -17
  516. package/dist/utils/permissions.js.map +0 -1
  517. package/dist/utils/types.cjs +0 -19
  518. package/dist/utils/types.cjs.map +0 -1
  519. package/dist/utils/types.d.cts +0 -60
  520. package/dist/utils/types.d.ts +0 -60
  521. package/dist/utils/types.js +0 -1
  522. package/dist/utils/types.js.map +0 -1
@@ -1,776 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
9
- var __typeError = (msg) => {
10
- throw TypeError(msg);
11
- };
12
- var __pow = Math.pow;
13
- var __export = (target, all) => {
14
- for (var name in all)
15
- __defProp(target, name, { get: all[name], enumerable: true });
16
- };
17
- var __copyProps = (to, from, except, desc) => {
18
- if (from && typeof from === "object" || typeof from === "function") {
19
- for (let key of __getOwnPropNames(from))
20
- if (!__hasOwnProp.call(to, key) && key !== except)
21
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
- }
23
- return to;
24
- };
25
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
- // If the importer is in node compatibility mode or this is not an ESM
27
- // file that has been converted to a CommonJS file using a Babel-
28
- // compatible transform (i.e. "__esModule" has not been set), then set
29
- // "default" to the CommonJS "module.exports" for node compatibility.
30
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
- mod
32
- ));
33
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
- var __async = (__this, __arguments, generator) => {
35
- return new Promise((resolve, reject) => {
36
- var fulfilled = (value) => {
37
- try {
38
- step(generator.next(value));
39
- } catch (e) {
40
- reject(e);
41
- }
42
- };
43
- var rejected = (value) => {
44
- try {
45
- step(generator.throw(value));
46
- } catch (e) {
47
- reject(e);
48
- }
49
- };
50
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
51
- step((generator = generator.apply(__this, __arguments)).next());
52
- });
53
- };
54
- var __await = function(promise, isYieldStar) {
55
- this[0] = promise;
56
- this[1] = isYieldStar;
57
- };
58
- var __yieldStar = (value) => {
59
- var obj = value[__knownSymbol("asyncIterator")], isAwait = false, method, it = {};
60
- if (obj == null) {
61
- obj = value[__knownSymbol("iterator")]();
62
- method = (k) => it[k] = (x) => obj[k](x);
63
- } else {
64
- obj = obj.call(value);
65
- method = (k) => it[k] = (v) => {
66
- if (isAwait) {
67
- isAwait = false;
68
- if (k === "throw") throw v;
69
- return v;
70
- }
71
- isAwait = true;
72
- return {
73
- done: false,
74
- value: new __await(new Promise((resolve) => {
75
- var x = obj[k](v);
76
- if (!(x instanceof Object)) __typeError("Object expected");
77
- resolve(x);
78
- }), 1)
79
- };
80
- };
81
- }
82
- return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
83
- throw x;
84
- }, "return" in obj && method("return"), it;
85
- };
86
-
87
- // src/struct/serverChannel.ts
88
- var serverChannel_exports = {};
89
- __export(serverChannel_exports, {
90
- ServerChannel: () => ServerChannel
91
- });
92
- module.exports = __toCommonJS(serverChannel_exports);
93
-
94
- // src/utils/bitField.ts
95
- var DEFAULT_BIT = 0;
96
- var _BitField = class _BitField {
97
- constructor(bits = DEFAULT_BIT) {
98
- this.bitfield = DEFAULT_BIT;
99
- this.bitfield = this.self.resolve(bits);
100
- }
101
- /**
102
- * Resolves a bitfield or an array of bitfields into a single number.
103
- * @param bit The bitfield or array of bitfields to resolve.
104
- * @returns The resolved bitfield as a number.
105
- */
106
- static resolve(bit) {
107
- if (bit instanceof _BitField) return bit.bitfield;
108
- if (typeof bit === "number" && bit >= DEFAULT_BIT) return bit;
109
- if (Array.isArray(bit)) {
110
- return bit.map((p) => this.resolve(p)).reduce((prev, p) => prev | p, DEFAULT_BIT);
111
- }
112
- if (typeof this.FLAGS[bit] !== "undefined") return this.FLAGS[bit];
113
- throw new Error("BITFIELD_INVALID");
114
- }
115
- /**
116
- * Returns the class that this instance belongs to.
117
- * @returns The class of the bitfield.
118
- */
119
- get self() {
120
- return this.constructor;
121
- }
122
- /**
123
- * Checks if any of the bits in the bitfield are set.
124
- * @param bit The bitfield or array of bitfields to check.
125
- * @returns True if any bits are set, false otherwise.
126
- */
127
- any(bit) {
128
- bit = this.self.resolve(bit);
129
- return (this.bitfield & bit) !== DEFAULT_BIT;
130
- }
131
- /**
132
- * checks if a specific permission is set.
133
- */
134
- has(bit) {
135
- bit = this.self.resolve(bit);
136
- return (this.bitfield & bit) === bit;
137
- }
138
- /**
139
- * Returns an array of all the Permissions that are set in the bitfield.
140
- * @returns An array of flag names.
141
- */
142
- toArray() {
143
- return Object.keys(this.self.FLAGS).filter((bit) => this.has(bit));
144
- }
145
- add(...bits) {
146
- let total = 0;
147
- for (const bit of bits) {
148
- total |= this.self.resolve(bit);
149
- }
150
- if (Object.isFrozen(this)) {
151
- return new this.self(this.bitfield | total);
152
- }
153
- this.bitfield |= total;
154
- return this;
155
- }
156
- remove(...bits) {
157
- let total = 0;
158
- for (const bit of bits) {
159
- total |= this.self.resolve(bit);
160
- }
161
- if (Object.isFrozen(this)) {
162
- return new this.self(this.bitfield & ~total);
163
- }
164
- this.bitfield &= ~total;
165
- return this;
166
- }
167
- freeze() {
168
- return Object.freeze(this);
169
- }
170
- valueOf() {
171
- return this.bitfield;
172
- }
173
- /**
174
- *
175
- * @returns A record of all flags and their boolean values indicating whether they are set.
176
- */
177
- serialize() {
178
- const serialized = {};
179
- for (const [flag, bit] of Object.entries(this.self.FLAGS)) {
180
- serialized[flag] = this.has(bit);
181
- }
182
- return serialized;
183
- }
184
- *[Symbol.iterator]() {
185
- yield* __yieldStar(this.toArray());
186
- }
187
- };
188
- _BitField.FLAGS = {};
189
- var BitField = _BitField;
190
-
191
- // src/struct/base.ts
192
- var Base = class _Base {
193
- /**
194
- * Creates a new Base instance.
195
- *
196
- * @param {client} client - The client instance.
197
- */
198
- constructor(client3) {
199
- this.client = client3;
200
- }
201
- /**
202
- * Compares this object with another to determine if they are equal.
203
- *
204
- * @param {this | null} [obj] - The object to compare with.
205
- * @returns {boolean} `true` if the objects are equal, otherwise `false`.
206
- */
207
- equals(obj) {
208
- if (!obj) return false;
209
- for (const key in obj) {
210
- const a = obj[key], b = this[key];
211
- if (a instanceof _Base && !a.equals(b)) return false;
212
- if (a instanceof BitField && a.bitfield !== b.bitfield)
213
- return false;
214
- if (typeof a === "object" && a !== null) continue;
215
- if (a !== b) return false;
216
- }
217
- return true;
218
- }
219
- /**
220
- * Updates the object with new data and returns a clone of the object.
221
- *
222
- * @param {PartialObject} data - The data to update the object with.
223
- * @param {string[]} [clear] - Fields to clear in the object.
224
- * @returns {this} A clone of the updated object.
225
- */
226
- _update(data, clear) {
227
- const clone = this._clone();
228
- this._patch(data, clear);
229
- return clone;
230
- }
231
- /**
232
- * Patches the object with new data.
233
- *
234
- * @param {PartialObject} data - The data to patch the object with.
235
- * @param {string[]} [_clear] - Fields to clear in the object.
236
- * @returns {this} The updated object.
237
- * @protected
238
- */
239
- _patch(data, _clear) {
240
- if ("id" in data) this.id = data.id;
241
- if ("_id" in data) {
242
- if (typeof data._id === "string") this.id = data._id;
243
- if (typeof data._id === "object") this.id = data._id.user;
244
- }
245
- return this;
246
- }
247
- /**
248
- * Creates a deep clone of the object.
249
- *
250
- * @returns {this} A clone of the object.
251
- */
252
- _clone() {
253
- const clone = Object.assign(Object.create(this), this);
254
- for (const key in clone) {
255
- const prop = clone[key];
256
- if (prop instanceof _Base) clone[key] = prop._clone();
257
- }
258
- return clone;
259
- }
260
- };
261
-
262
- // src/utils/UUID.ts
263
- var import_crypto = require("crypto");
264
- var _UUID = class _UUID extends null {
265
- static get PROG() {
266
- return (0, import_crypto.randomBytes)(1).readUInt8() / 255;
267
- }
268
- static time(now = Date.now()) {
269
- let mod, result = "";
270
- for (let i = this.TIME_LENGTH; i > 0; i--) {
271
- mod = now % this.ENCODING_LENGTH;
272
- result = this.ENCODING.charAt(mod) + result;
273
- now = (now - mod) / this.ENCODING_LENGTH;
274
- }
275
- return result;
276
- }
277
- static hash() {
278
- let result = "";
279
- for (let i = this.RANDOM_LENGTH; i > 0; i--) {
280
- let random = Math.floor(this.PROG * this.ENCODING_LENGTH);
281
- if (random === this.ENCODING_LENGTH) {
282
- random = this.ENCODING_LENGTH - 1;
283
- }
284
- result = this.ENCODING.charAt(random) + result;
285
- }
286
- return result;
287
- }
288
- static generate(timestamp = Date.now()) {
289
- return this.time(timestamp) + this.hash();
290
- }
291
- static timestampOf(id) {
292
- const timestamp = id.slice(0, this.TIME_LENGTH).split("").reverse().reduce((carry, char, index) => {
293
- const encodingIndex = this.ENCODING.indexOf(char);
294
- if (encodingIndex === -1) {
295
- throw new Error("invalid character found: " + char);
296
- }
297
- return carry += encodingIndex * Math.pow(this.ENCODING_LENGTH, index);
298
- }, 0);
299
- return new Date(timestamp);
300
- }
301
- };
302
- _UUID.ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
303
- _UUID.ENCODING_LENGTH = _UUID.ENCODING.length;
304
- _UUID.RANDOM_LENGTH = 16;
305
- _UUID.TIME_LENGTH = 10;
306
- _UUID.TIME_MAX = Math.pow(2, 48) - 1;
307
- var UUID = _UUID;
308
-
309
- // src/utils/constants.ts
310
- var SYSTEM_USER_ID = "0".repeat(UUID.TIME_LENGTH + UUID.RANDOM_LENGTH);
311
-
312
- // src/utils/permissions.ts
313
- var ChannelPermissions = class extends BitField {
314
- constructor(bits) {
315
- super(bits);
316
- }
317
- static resolve(bit) {
318
- return super.resolve(bit);
319
- }
320
- };
321
- ChannelPermissions.FLAGS = {
322
- VIEW_CHANNEL: __pow(1, 0),
323
- SEND_MESSAGE: __pow(1, 22),
324
- MANAGE_MESSAGE: __pow(1, 2),
325
- MANAGE_CHANNEL: __pow(1, 3),
326
- VOICE_CALL: __pow(1, 4),
327
- INVITE_OTHERS: __pow(1, 5),
328
- EMBED_LINKS: __pow(1, 6),
329
- UPLOAD_FILES: __pow(1, 7)
330
- };
331
- var UserPermissions = class extends BitField {
332
- constructor(bits) {
333
- super(bits);
334
- }
335
- static resolve(bit) {
336
- return super.resolve(bit);
337
- }
338
- };
339
- UserPermissions.FLAGS = {
340
- ACCESS: __pow(1, 0),
341
- VIEW_PROFILE: __pow(1, 1),
342
- SEND_MESSAGES: __pow(1, 2),
343
- INVITE: __pow(1, 3)
344
- };
345
- var ServerPermissions = class extends BitField {
346
- constructor(bits) {
347
- super(bits);
348
- }
349
- static resolve(bit) {
350
- return super.resolve(bit);
351
- }
352
- };
353
- ServerPermissions.FLAGS = {
354
- VIEW_SERVER: __pow(1, 0),
355
- MANAGE_ROLES: __pow(1, 1),
356
- MANAGE_CHANNELS: __pow(1, 2),
357
- MANAGE_SERVER: __pow(1, 3),
358
- KICK_MEMBERS: __pow(1, 4),
359
- BAN_MEMBERS: __pow(1, 5),
360
- CHANGE_NICKNAME: __pow(1, 12),
361
- MANAGE_NICKNAMES: __pow(1, 13),
362
- CHANGE_AVATAR: __pow(1, 14),
363
- REMOVE_AVATARS: __pow(1, 15)
364
- };
365
- var FullPermissions = class extends BitField {
366
- constructor(bits) {
367
- super(bits);
368
- }
369
- static resolve(bit) {
370
- return super.resolve(bit);
371
- }
372
- };
373
- FullPermissions.FLAGS = {
374
- // * Generic permissions
375
- /// Manage the channel or channels on the server
376
- ManageChannel: __pow(2, 0),
377
- /// Manage the server
378
- ManageServer: __pow(2, 1),
379
- /// Manage permissions on servers or channels
380
- ManagePermissions: __pow(2, 2),
381
- /// Manage roles on server
382
- ManageRole: __pow(2, 3),
383
- /// Manage server customisation (includes emoji)
384
- ManageCustomisation: __pow(2, 4),
385
- // * Member permissions
386
- /// Kick other members below their ranking
387
- KickMembers: __pow(2, 6),
388
- /// Ban other members below their ranking
389
- BanMembers: __pow(2, 7),
390
- /// Timeout other members below their ranking
391
- TimeoutMembers: __pow(2, 8),
392
- /// Assign roles to members below their ranking
393
- AssignRoles: __pow(2, 9),
394
- /// Change own nickname
395
- ChangeNickname: __pow(2, 10),
396
- /// Change or remove other's nicknames below their ranking
397
- ManageNicknames: __pow(2, 11),
398
- /// Change own avatar
399
- ChangeAvatar: __pow(2, 12),
400
- /// Remove other's avatars below their ranking
401
- RemoveAvatars: __pow(2, 13),
402
- // * Channel permissions
403
- /// View a channel
404
- ViewChannel: __pow(2, 20),
405
- /// Read a channel's past message history
406
- ReadMessageHistory: __pow(2, 21),
407
- /// Send a message in a channel
408
- SendMessage: __pow(2, 22),
409
- /// Delete messages in a channel
410
- ManageMessages: __pow(2, 23),
411
- /// Manage webhook entries on a channel
412
- ManageWebhooks: __pow(2, 24),
413
- /// Create invites to this channel
414
- InviteOthers: __pow(2, 25),
415
- /// Send embedded content in this channel
416
- SendEmbeds: __pow(2, 26),
417
- /// Send attachments and media in this channel
418
- UploadFiles: __pow(2, 27),
419
- /// Masquerade messages using custom nickname and avatar
420
- Masquerade: __pow(2, 28),
421
- /// React to messages with emoji
422
- React: __pow(2, 29),
423
- // * Voice permissions
424
- /// Connect to a voice channel
425
- Connect: __pow(2, 30),
426
- /// Speak in a voice call
427
- Speak: __pow(2, 31),
428
- /// Share video in a voice call
429
- Video: __pow(2, 32),
430
- /// Mute other members with lower ranking in a voice call
431
- MuteMembers: __pow(2, 33),
432
- /// Deafen other members with lower ranking in a voice call
433
- DeafenMembers: __pow(2, 34),
434
- /// Move members between voice channels
435
- MoveMembers: __pow(2, 35),
436
- // * Mention permissions
437
- /// Mention @everyone or @online
438
- MentionEveryone: __pow(2, 37),
439
- /// Mention a role
440
- MentionRoles: __pow(2, 38),
441
- // * Grant all permissions
442
- /// Safely grant all permissions
443
- GrantAll: 4503599627370495
444
- };
445
- var DEFAULT_PERMISSION_DM = new ChannelPermissions([
446
- "VIEW_CHANNEL",
447
- "VIEW_CHANNEL",
448
- "MANAGE_CHANNEL",
449
- "VOICE_CALL",
450
- "EMBED_LINKS",
451
- "UPLOAD_FILES"
452
- ]).freeze();
453
-
454
- // src/utils/badges.ts
455
- var Badges = class extends BitField {
456
- constructor(bits) {
457
- super(bits);
458
- }
459
- static resolve(bit) {
460
- return super.resolve(bit);
461
- }
462
- };
463
- Badges.FLAGS = {
464
- DEVELOPER: 1 << 0,
465
- TRANSLATOR: 1 << 1,
466
- SUPPORTER: 1 << 2,
467
- RESPONSIBLE_DISCLOSURE: 1 << 3,
468
- REVOLT_TEAM: 1 << 4,
469
- EARLY_ADOPTER: 1 << 8
470
- };
471
-
472
- // src/struct/attachment.ts
473
- var Attachment = class extends Base {
474
- /**
475
- * Creates a new Attachment instance.
476
- *
477
- * @param {client} client - The client instance.
478
- * @param {File} data - The raw data for the attachment from the API.
479
- */
480
- constructor(client3, data) {
481
- super(client3);
482
- this._patch(data);
483
- }
484
- /**
485
- * Updates the attachment instance with new data from the API.
486
- *
487
- * @param {File} data - The raw data for the attachment from the API.
488
- * @returns {this} The updated attachment instance.
489
- * @protected
490
- */
491
- _patch(data) {
492
- super._patch(data);
493
- if (data.filename) this.filename = data.filename;
494
- if (data.content_type) this.type = data.content_type;
495
- if (typeof data.size === "number") this.size = data.size;
496
- if (data.metadata) this.metadata = data.metadata;
497
- return this;
498
- }
499
- };
500
-
501
- // src/managers/messageManager.ts
502
- var import_node_buffer = require("buffer");
503
- var import_form_data = __toESM(require("form-data"), 1);
504
- var import_axios = __toESM(require("axios"), 1);
505
-
506
- // src/struct/channel.ts
507
- var Channel = class extends Base {
508
- constructor() {
509
- super(...arguments);
510
- this.type = "UNKNOWN";
511
- }
512
- /**
513
- * Gets the timestamp (in milliseconds) when the channel was created.
514
- *
515
- * @returns {number} The timestamp of the channel's creation.
516
- */
517
- get createdTimestamp() {
518
- return this.createdAt.getTime();
519
- }
520
- /**
521
- * Gets the date and time when the channel was created.
522
- *
523
- * @returns {Date} The creation date of the channel.
524
- */
525
- get createdAt() {
526
- return UUID.timestampOf(this.id);
527
- }
528
- /**
529
- * Deletes the current channel instance from the client's channel collection.
530
- *
531
- * This method interacts with the client's channel management system to remove
532
- * the channel. Once deleted, the channel will no longer be accessible through
533
- * the client.
534
- *
535
- * @returns {Promise<void>} A promise that resolves when the channel has been successfully deleted.
536
- *
537
- * @example
538
- * ```typescript
539
- * const channel = client.channels.get('1234567890');
540
- * if (channel) {
541
- * await channel.delete();
542
- * console.log('Channel deleted successfully.');
543
- * }
544
- * ```
545
- */
546
- delete() {
547
- return this.client.channels.delete(this);
548
- }
549
- /**
550
- * Checks if the channel is a text-based channel.
551
- *
552
- * @returns {boolean} True if the channel is a text-based channel, otherwise false.
553
- */
554
- isText() {
555
- return "messages" in this;
556
- }
557
- /**
558
- * Checks if the channel is a voice channel.
559
- *
560
- * @returns {boolean} True if the channel is a voice channel, otherwise false.
561
- */
562
- isVoice() {
563
- return this.type === "VOICE" /* VOICE */;
564
- }
565
- /**
566
- * Checks if the channel is a group channel.
567
- *
568
- * @returns {boolean} True if the channel is a group channel, otherwise false.
569
- */
570
- isGroup() {
571
- return this.type === "GROUP" /* GROUP */;
572
- }
573
- /**
574
- * Checks if the channel is part of a server.
575
- *
576
- * @returns {boolean} True if the channel is a server channel, otherwise false.
577
- */
578
- inServer() {
579
- return "serverId" in this;
580
- }
581
- /**
582
- * Converts the channel to a string representation.
583
- *
584
- * @returns {string} A string representation of the channel in the format `<#channelId>`.
585
- */
586
- toString() {
587
- return `<#${this.id}>`;
588
- }
589
- /**
590
- * Fetches the latest data for the channel from the client's channel collection.
591
- *
592
- * @param {boolean} [force=true] - Whether to force a fetch even if the channel is cached.
593
- * @returns {Promise<Channel>} A promise that resolves with the updated channel instance.
594
- */
595
- fetch(force = true) {
596
- return this.client.channels.fetch(this, { force });
597
- }
598
- };
599
-
600
- // src/client/baseClient.ts
601
- var import_node_events = require("events");
602
-
603
- // src/rest/restClient.ts
604
- var import_axios3 = require("axios");
605
-
606
- // src/rest/restUtils/rateLimitQueue.ts
607
- var import_axios2 = __toESM(require("axios"), 1);
608
-
609
- // src/rest/CDNClient.ts
610
- var import_axios4 = require("axios");
611
-
612
- // src/struct/invite.ts
613
- var Invite = class extends Base {
614
- /**
615
- * Creates a new Invite instance.
616
- *
617
- * @param {client} client - The client instance.
618
- * @param {APIInvite} data - The raw data for the invite from the API.
619
- */
620
- constructor(client3, data) {
621
- super(client3);
622
- /** The ID of the server associated with the invite, if any. */
623
- this.serverId = null;
624
- this._patch(data);
625
- }
626
- /**
627
- * Updates the invite instance with new data from the API.
628
- *
629
- * @param {APIInvite} data - The raw data for the invite from the API.
630
- * @returns {this} The updated invite instance.
631
- * @protected
632
- */
633
- _patch(data) {
634
- super._patch(data);
635
- if (data.channel) this.channelId = data.channel;
636
- if (data.creator) this.inviterId = data.channel;
637
- return this;
638
- }
639
- /**
640
- * Retrieves the server associated with the invite.
641
- *
642
- * @returns {Server | null} The server associated with the invite, or `null` if not found.
643
- */
644
- get server() {
645
- var _a;
646
- return (_a = this.client.servers.cache.get(this.serverId)) != null ? _a : null;
647
- }
648
- /**
649
- * Retrieves the channel associated with the invite.
650
- *
651
- * @returns {Channel | null} The channel associated with the invite, or `null` if not found.
652
- */
653
- get channel() {
654
- var _a;
655
- return (_a = this.client.channels.cache.get(this.channelId)) != null ? _a : null;
656
- }
657
- /**
658
- * Retrieves the user who created the invite.
659
- *
660
- * @returns {User | null} The user who created the invite, or `null` if not found.
661
- */
662
- get inviter() {
663
- var _a;
664
- return (_a = this.client.users.cache.get(this.inviterId)) != null ? _a : null;
665
- }
666
- // toString(): string {
667
- // return this.client.api.cdn.invite(this.id);
668
- // }
669
- };
670
-
671
- // src/struct/messageEmbed.ts
672
- var import_axios5 = __toESM(require("axios"), 1);
673
- var import_form_data2 = __toESM(require("form-data"), 1);
674
- var import_node_buffer2 = require("buffer");
675
-
676
- // src/struct/serverChannel.ts
677
- var ServerChannel = class extends Channel {
678
- /**
679
- * Creates a new ServerChannel instance.
680
- *
681
- * @param {client} client - The client instance.
682
- * @param {APIServerChannel} data - The raw data for the server channel from the API.
683
- */
684
- constructor(client3, data) {
685
- super(client3);
686
- /** The description of the channel, or `null` if none is set. */
687
- this.description = null;
688
- /** The icon of the channel, or `null` if none is set. */
689
- this.icon = null;
690
- /** The permission overwrites for the channel. */
691
- this.overwrites = /* @__PURE__ */ new Map();
692
- /** Whether the channel is marked as NSFW (Not Safe For Work). */
693
- this.nsfw = false;
694
- this._patch(data);
695
- }
696
- /**
697
- * Updates the server channel instance with new data from the API.
698
- *
699
- * @param {APIServerChannel} data - The raw data for the server channel from the API.
700
- * @param {FieldsChannel[]} [clear=[]] - Fields to clear in the channel.
701
- * @returns {this} The updated server channel instance.
702
- * @protected
703
- */
704
- _patch(data, clear = []) {
705
- var _a;
706
- super._patch(data);
707
- if (data.name) this.name = data.name;
708
- if (data.server) this.serverId = data.server;
709
- if ("description" in data) this.description = (_a = data.description) != null ? _a : null;
710
- if (data.icon) this.icon = new Attachment(this.client, data.icon);
711
- if (typeof data.nsfw === "boolean") this.nsfw = data.nsfw;
712
- if (data.role_permissions) {
713
- this.overwrites.clear();
714
- for (const [id, { a, d }] of Object.entries(data.role_permissions)) {
715
- this.overwrites.set(id, {
716
- allow: new FullPermissions(a),
717
- deny: new FullPermissions(d)
718
- });
719
- }
720
- }
721
- for (const field of clear) {
722
- if (field === "Icon") this.icon = null;
723
- if (field === "Description") this.description = null;
724
- }
725
- return this;
726
- }
727
- /**
728
- * Creates an invite for the server channel.
729
- *
730
- * @returns {Promise<Invite>} A promise that resolves with the created invite.
731
- *
732
- * @example
733
- * ```typescript
734
- * const invite = await serverChannel.createInvite();
735
- * console.log(`Invite created: ${invite}`);
736
- * ```
737
- */
738
- createInvite() {
739
- return __async(this, null, function* () {
740
- const data = yield this.client.api.post(`/channels/${this.id}/invites`, {});
741
- return new Invite(
742
- this.client,
743
- data
744
- );
745
- });
746
- }
747
- // iconURL(options?: { size: number }): string | null {
748
- // return this.icon
749
- // ? this.client.api.cdn.icon(this.icon.id, options?.size)
750
- // : null;
751
- // }
752
- /**
753
- * Retrieves the server this channel belongs to.
754
- *
755
- * @returns {Server} The server instance.
756
- */
757
- get server() {
758
- return this.client.servers.cache.get(this.serverId);
759
- }
760
- /**
761
- * Retrieves the category this channel belongs to, if any.
762
- *
763
- * @returns {Category | null} The category instance, or `null` if the channel is not in a category.
764
- */
765
- get category() {
766
- var _a;
767
- return (_a = Array.from(this.server.categories.values()).find(
768
- (cat) => cat.children.has(this.id)
769
- )) != null ? _a : null;
770
- }
771
- };
772
- // Annotate the CommonJS export names for ESM import in node:
773
- 0 && (module.exports = {
774
- ServerChannel
775
- });
776
- //# sourceMappingURL=serverChannel.cjs.map