@neontechspace/fluxerly 1000.0.0-nightly.12

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 (1319) hide show
  1. package/CHANGELOG.md +833 -0
  2. package/LICENSE +201 -0
  3. package/README.md +129 -0
  4. package/agents/AGENTS.md +195 -0
  5. package/dist/api/default/application.d.ts +34 -0
  6. package/dist/api/default/application.d.ts.map +1 -0
  7. package/dist/api/default/application.js +2 -0
  8. package/dist/api/default/application.js.map +1 -0
  9. package/dist/api/default/attachments.d.ts +89 -0
  10. package/dist/api/default/attachments.d.ts.map +1 -0
  11. package/dist/api/default/attachments.js +2 -0
  12. package/dist/api/default/attachments.js.map +1 -0
  13. package/dist/api/default/audit-logs.d.ts +48 -0
  14. package/dist/api/default/audit-logs.d.ts.map +1 -0
  15. package/dist/api/default/audit-logs.js +2 -0
  16. package/dist/api/default/audit-logs.js.map +1 -0
  17. package/dist/api/default/bot.d.ts +200 -0
  18. package/dist/api/default/bot.d.ts.map +1 -0
  19. package/dist/api/default/bot.js +309 -0
  20. package/dist/api/default/bot.js.map +1 -0
  21. package/dist/api/default/cache.d.ts +105 -0
  22. package/dist/api/default/cache.d.ts.map +1 -0
  23. package/dist/api/default/cache.js +2 -0
  24. package/dist/api/default/cache.js.map +1 -0
  25. package/dist/api/default/channels.d.ts +249 -0
  26. package/dist/api/default/channels.d.ts.map +1 -0
  27. package/dist/api/default/channels.js +2 -0
  28. package/dist/api/default/channels.js.map +1 -0
  29. package/dist/api/default/client.d.ts +528 -0
  30. package/dist/api/default/client.d.ts.map +1 -0
  31. package/dist/api/default/client.js +301 -0
  32. package/dist/api/default/client.js.map +1 -0
  33. package/dist/api/default/collectors.d.ts +76 -0
  34. package/dist/api/default/collectors.d.ts.map +1 -0
  35. package/dist/api/default/collectors.js +2 -0
  36. package/dist/api/default/collectors.js.map +1 -0
  37. package/dist/api/default/commands.d.ts +91 -0
  38. package/dist/api/default/commands.d.ts.map +1 -0
  39. package/dist/api/default/commands.js +92 -0
  40. package/dist/api/default/commands.js.map +1 -0
  41. package/dist/api/default/direct-messages.d.ts +111 -0
  42. package/dist/api/default/direct-messages.d.ts.map +1 -0
  43. package/dist/api/default/direct-messages.js +2 -0
  44. package/dist/api/default/direct-messages.js.map +1 -0
  45. package/dist/api/default/discovery.d.ts +76 -0
  46. package/dist/api/default/discovery.d.ts.map +1 -0
  47. package/dist/api/default/discovery.js +2 -0
  48. package/dist/api/default/discovery.js.map +1 -0
  49. package/dist/api/default/emojis.d.ts +88 -0
  50. package/dist/api/default/emojis.d.ts.map +1 -0
  51. package/dist/api/default/emojis.js +2 -0
  52. package/dist/api/default/emojis.js.map +1 -0
  53. package/dist/api/default/events.d.ts +127 -0
  54. package/dist/api/default/events.d.ts.map +1 -0
  55. package/dist/api/default/events.js +2 -0
  56. package/dist/api/default/events.js.map +1 -0
  57. package/dist/api/default/gateway.d.ts +62 -0
  58. package/dist/api/default/gateway.d.ts.map +1 -0
  59. package/dist/api/default/gateway.js +2 -0
  60. package/dist/api/default/gateway.js.map +1 -0
  61. package/dist/api/default/guards.d.ts +87 -0
  62. package/dist/api/default/guards.d.ts.map +1 -0
  63. package/dist/api/default/guards.js +78 -0
  64. package/dist/api/default/guards.js.map +1 -0
  65. package/dist/api/default/guilds.d.ts +230 -0
  66. package/dist/api/default/guilds.d.ts.map +1 -0
  67. package/dist/api/default/guilds.js +2 -0
  68. package/dist/api/default/guilds.js.map +1 -0
  69. package/dist/api/default/helpers.d.ts +79 -0
  70. package/dist/api/default/helpers.d.ts.map +1 -0
  71. package/dist/api/default/helpers.js +79 -0
  72. package/dist/api/default/helpers.js.map +1 -0
  73. package/dist/api/default/instance.d.ts +47 -0
  74. package/dist/api/default/instance.d.ts.map +1 -0
  75. package/dist/api/default/instance.js +2 -0
  76. package/dist/api/default/instance.js.map +1 -0
  77. package/dist/api/default/invites.d.ts +57 -0
  78. package/dist/api/default/invites.d.ts.map +1 -0
  79. package/dist/api/default/invites.js +2 -0
  80. package/dist/api/default/invites.js.map +1 -0
  81. package/dist/api/default/logging.d.ts +37 -0
  82. package/dist/api/default/logging.d.ts.map +1 -0
  83. package/dist/api/default/logging.js +2 -0
  84. package/dist/api/default/logging.js.map +1 -0
  85. package/dist/api/default/members.d.ts +442 -0
  86. package/dist/api/default/members.d.ts.map +1 -0
  87. package/dist/api/default/members.js +2 -0
  88. package/dist/api/default/members.js.map +1 -0
  89. package/dist/api/default/messages.d.ts +898 -0
  90. package/dist/api/default/messages.d.ts.map +1 -0
  91. package/dist/api/default/messages.js +2 -0
  92. package/dist/api/default/messages.js.map +1 -0
  93. package/dist/api/default/oauth.d.ts +168 -0
  94. package/dist/api/default/oauth.d.ts.map +1 -0
  95. package/dist/api/default/oauth.js +84 -0
  96. package/dist/api/default/oauth.js.map +1 -0
  97. package/dist/api/default/permissions.d.ts +44 -0
  98. package/dist/api/default/permissions.d.ts.map +1 -0
  99. package/dist/api/default/permissions.js +2 -0
  100. package/dist/api/default/permissions.js.map +1 -0
  101. package/dist/api/default/presence.d.ts +88 -0
  102. package/dist/api/default/presence.d.ts.map +1 -0
  103. package/dist/api/default/presence.js +2 -0
  104. package/dist/api/default/presence.js.map +1 -0
  105. package/dist/api/default/rest.d.ts +28 -0
  106. package/dist/api/default/rest.d.ts.map +1 -0
  107. package/dist/api/default/rest.js +2 -0
  108. package/dist/api/default/rest.js.map +1 -0
  109. package/dist/api/default/results.d.ts +31 -0
  110. package/dist/api/default/results.d.ts.map +1 -0
  111. package/dist/api/default/results.js +14 -0
  112. package/dist/api/default/results.js.map +1 -0
  113. package/dist/api/default/roles.d.ts +119 -0
  114. package/dist/api/default/roles.d.ts.map +1 -0
  115. package/dist/api/default/roles.js +2 -0
  116. package/dist/api/default/roles.js.map +1 -0
  117. package/dist/api/default/stickers.d.ts +92 -0
  118. package/dist/api/default/stickers.d.ts.map +1 -0
  119. package/dist/api/default/stickers.js +2 -0
  120. package/dist/api/default/stickers.js.map +1 -0
  121. package/dist/api/default/supervisor.d.ts +51 -0
  122. package/dist/api/default/supervisor.d.ts.map +1 -0
  123. package/dist/api/default/supervisor.js +53 -0
  124. package/dist/api/default/supervisor.js.map +1 -0
  125. package/dist/api/default/threads.d.ts +158 -0
  126. package/dist/api/default/threads.d.ts.map +1 -0
  127. package/dist/api/default/threads.js +2 -0
  128. package/dist/api/default/threads.js.map +1 -0
  129. package/dist/api/default/users.d.ts +73 -0
  130. package/dist/api/default/users.d.ts.map +1 -0
  131. package/dist/api/default/users.js +2 -0
  132. package/dist/api/default/users.js.map +1 -0
  133. package/dist/api/default/webhook-client.d.ts +149 -0
  134. package/dist/api/default/webhook-client.d.ts.map +1 -0
  135. package/dist/api/default/webhook-client.js +69 -0
  136. package/dist/api/default/webhook-client.js.map +1 -0
  137. package/dist/api/default/webhooks.d.ts +62 -0
  138. package/dist/api/default/webhooks.d.ts.map +1 -0
  139. package/dist/api/default/webhooks.js +2 -0
  140. package/dist/api/default/webhooks.js.map +1 -0
  141. package/dist/api/effect/application.d.ts +29 -0
  142. package/dist/api/effect/application.d.ts.map +1 -0
  143. package/dist/api/effect/application.js +2 -0
  144. package/dist/api/effect/application.js.map +1 -0
  145. package/dist/api/effect/attachments.d.ts +84 -0
  146. package/dist/api/effect/attachments.d.ts.map +1 -0
  147. package/dist/api/effect/attachments.js +2 -0
  148. package/dist/api/effect/attachments.js.map +1 -0
  149. package/dist/api/effect/audit-logs.d.ts +42 -0
  150. package/dist/api/effect/audit-logs.d.ts.map +1 -0
  151. package/dist/api/effect/audit-logs.js +2 -0
  152. package/dist/api/effect/audit-logs.js.map +1 -0
  153. package/dist/api/effect/bot.d.ts +233 -0
  154. package/dist/api/effect/bot.d.ts.map +1 -0
  155. package/dist/api/effect/bot.js +230 -0
  156. package/dist/api/effect/bot.js.map +1 -0
  157. package/dist/api/effect/cache.d.ts +103 -0
  158. package/dist/api/effect/cache.d.ts.map +1 -0
  159. package/dist/api/effect/cache.js +2 -0
  160. package/dist/api/effect/cache.js.map +1 -0
  161. package/dist/api/effect/channels.d.ts +231 -0
  162. package/dist/api/effect/channels.d.ts.map +1 -0
  163. package/dist/api/effect/channels.js +2 -0
  164. package/dist/api/effect/channels.js.map +1 -0
  165. package/dist/api/effect/client.d.ts +622 -0
  166. package/dist/api/effect/client.d.ts.map +1 -0
  167. package/dist/api/effect/client.js +191 -0
  168. package/dist/api/effect/client.js.map +1 -0
  169. package/dist/api/effect/collectors.d.ts +90 -0
  170. package/dist/api/effect/collectors.d.ts.map +1 -0
  171. package/dist/api/effect/collectors.js +2 -0
  172. package/dist/api/effect/collectors.js.map +1 -0
  173. package/dist/api/effect/commands.d.ts +86 -0
  174. package/dist/api/effect/commands.d.ts.map +1 -0
  175. package/dist/api/effect/commands.js +87 -0
  176. package/dist/api/effect/commands.js.map +1 -0
  177. package/dist/api/effect/direct-messages.d.ts +102 -0
  178. package/dist/api/effect/direct-messages.d.ts.map +1 -0
  179. package/dist/api/effect/direct-messages.js +2 -0
  180. package/dist/api/effect/direct-messages.js.map +1 -0
  181. package/dist/api/effect/discovery.d.ts +68 -0
  182. package/dist/api/effect/discovery.d.ts.map +1 -0
  183. package/dist/api/effect/discovery.js +2 -0
  184. package/dist/api/effect/discovery.js.map +1 -0
  185. package/dist/api/effect/emojis.d.ts +77 -0
  186. package/dist/api/effect/emojis.d.ts.map +1 -0
  187. package/dist/api/effect/emojis.js +2 -0
  188. package/dist/api/effect/emojis.js.map +1 -0
  189. package/dist/api/effect/events.d.ts +78 -0
  190. package/dist/api/effect/events.d.ts.map +1 -0
  191. package/dist/api/effect/events.js +12 -0
  192. package/dist/api/effect/events.js.map +1 -0
  193. package/dist/api/effect/failures.d.ts +14 -0
  194. package/dist/api/effect/failures.d.ts.map +1 -0
  195. package/dist/api/effect/failures.js +2 -0
  196. package/dist/api/effect/failures.js.map +1 -0
  197. package/dist/api/effect/gateway.d.ts +63 -0
  198. package/dist/api/effect/gateway.d.ts.map +1 -0
  199. package/dist/api/effect/gateway.js +2 -0
  200. package/dist/api/effect/gateway.js.map +1 -0
  201. package/dist/api/effect/guards.d.ts +91 -0
  202. package/dist/api/effect/guards.d.ts.map +1 -0
  203. package/dist/api/effect/guards.js +94 -0
  204. package/dist/api/effect/guards.js.map +1 -0
  205. package/dist/api/effect/guilds.d.ts +221 -0
  206. package/dist/api/effect/guilds.d.ts.map +1 -0
  207. package/dist/api/effect/guilds.js +2 -0
  208. package/dist/api/effect/guilds.js.map +1 -0
  209. package/dist/api/effect/helpers.d.ts +300 -0
  210. package/dist/api/effect/helpers.d.ts.map +1 -0
  211. package/dist/api/effect/helpers.js +156 -0
  212. package/dist/api/effect/helpers.js.map +1 -0
  213. package/dist/api/effect/hierarchy.d.ts +26 -0
  214. package/dist/api/effect/hierarchy.d.ts.map +1 -0
  215. package/dist/api/effect/hierarchy.js +26 -0
  216. package/dist/api/effect/hierarchy.js.map +1 -0
  217. package/dist/api/effect/instance.d.ts +46 -0
  218. package/dist/api/effect/instance.d.ts.map +1 -0
  219. package/dist/api/effect/instance.js +8 -0
  220. package/dist/api/effect/instance.js.map +1 -0
  221. package/dist/api/effect/invites.d.ts +49 -0
  222. package/dist/api/effect/invites.d.ts.map +1 -0
  223. package/dist/api/effect/invites.js +2 -0
  224. package/dist/api/effect/invites.js.map +1 -0
  225. package/dist/api/effect/logging.d.ts +37 -0
  226. package/dist/api/effect/logging.d.ts.map +1 -0
  227. package/dist/api/effect/logging.js +2 -0
  228. package/dist/api/effect/logging.js.map +1 -0
  229. package/dist/api/effect/members.d.ts +433 -0
  230. package/dist/api/effect/members.d.ts.map +1 -0
  231. package/dist/api/effect/members.js +2 -0
  232. package/dist/api/effect/members.js.map +1 -0
  233. package/dist/api/effect/messages.d.ts +877 -0
  234. package/dist/api/effect/messages.d.ts.map +1 -0
  235. package/dist/api/effect/messages.js +2 -0
  236. package/dist/api/effect/messages.js.map +1 -0
  237. package/dist/api/effect/oauth.d.ts +148 -0
  238. package/dist/api/effect/oauth.d.ts.map +1 -0
  239. package/dist/api/effect/oauth.js +51 -0
  240. package/dist/api/effect/oauth.js.map +1 -0
  241. package/dist/api/effect/permissions.d.ts +41 -0
  242. package/dist/api/effect/permissions.d.ts.map +1 -0
  243. package/dist/api/effect/permissions.js +2 -0
  244. package/dist/api/effect/permissions.js.map +1 -0
  245. package/dist/api/effect/presence.d.ts +83 -0
  246. package/dist/api/effect/presence.d.ts.map +1 -0
  247. package/dist/api/effect/presence.js +2 -0
  248. package/dist/api/effect/presence.js.map +1 -0
  249. package/dist/api/effect/rest.d.ts +27 -0
  250. package/dist/api/effect/rest.d.ts.map +1 -0
  251. package/dist/api/effect/rest.js +2 -0
  252. package/dist/api/effect/rest.js.map +1 -0
  253. package/dist/api/effect/roles.d.ts +104 -0
  254. package/dist/api/effect/roles.d.ts.map +1 -0
  255. package/dist/api/effect/roles.js +2 -0
  256. package/dist/api/effect/roles.js.map +1 -0
  257. package/dist/api/effect/service.d.ts +76 -0
  258. package/dist/api/effect/service.d.ts.map +1 -0
  259. package/dist/api/effect/service.js +79 -0
  260. package/dist/api/effect/service.js.map +1 -0
  261. package/dist/api/effect/stickers.d.ts +81 -0
  262. package/dist/api/effect/stickers.d.ts.map +1 -0
  263. package/dist/api/effect/stickers.js +2 -0
  264. package/dist/api/effect/stickers.js.map +1 -0
  265. package/dist/api/effect/supervisor.d.ts +56 -0
  266. package/dist/api/effect/supervisor.d.ts.map +1 -0
  267. package/dist/api/effect/supervisor.js +58 -0
  268. package/dist/api/effect/supervisor.js.map +1 -0
  269. package/dist/api/effect/threads.d.ts +154 -0
  270. package/dist/api/effect/threads.d.ts.map +1 -0
  271. package/dist/api/effect/threads.js +2 -0
  272. package/dist/api/effect/threads.js.map +1 -0
  273. package/dist/api/effect/users.d.ts +62 -0
  274. package/dist/api/effect/users.d.ts.map +1 -0
  275. package/dist/api/effect/users.js +2 -0
  276. package/dist/api/effect/users.js.map +1 -0
  277. package/dist/api/effect/webhook-client.d.ts +140 -0
  278. package/dist/api/effect/webhook-client.d.ts.map +1 -0
  279. package/dist/api/effect/webhook-client.js +50 -0
  280. package/dist/api/effect/webhook-client.js.map +1 -0
  281. package/dist/api/effect/webhooks.d.ts +54 -0
  282. package/dist/api/effect/webhooks.d.ts.map +1 -0
  283. package/dist/api/effect/webhooks.js +2 -0
  284. package/dist/api/effect/webhooks.js.map +1 -0
  285. package/dist/api-errors.d.ts +609 -0
  286. package/dist/api-errors.d.ts.map +1 -0
  287. package/dist/api-errors.js +589 -0
  288. package/dist/api-errors.js.map +1 -0
  289. package/dist/application.d.ts +85 -0
  290. package/dist/application.d.ts.map +1 -0
  291. package/dist/application.js +44 -0
  292. package/dist/application.js.map +1 -0
  293. package/dist/assets.d.ts +197 -0
  294. package/dist/assets.d.ts.map +1 -0
  295. package/dist/assets.js +419 -0
  296. package/dist/assets.js.map +1 -0
  297. package/dist/attachments.d.ts +400 -0
  298. package/dist/attachments.d.ts.map +1 -0
  299. package/dist/attachments.js +88 -0
  300. package/dist/attachments.js.map +1 -0
  301. package/dist/audit-logs.d.ts +292 -0
  302. package/dist/audit-logs.d.ts.map +1 -0
  303. package/dist/audit-logs.js +46 -0
  304. package/dist/audit-logs.js.map +1 -0
  305. package/dist/bot-runner.d.ts +69 -0
  306. package/dist/bot-runner.d.ts.map +1 -0
  307. package/dist/bot-runner.js +41 -0
  308. package/dist/bot-runner.js.map +1 -0
  309. package/dist/builders.d.ts +153 -0
  310. package/dist/builders.d.ts.map +1 -0
  311. package/dist/builders.js +326 -0
  312. package/dist/builders.js.map +1 -0
  313. package/dist/cache.d.ts +187 -0
  314. package/dist/cache.d.ts.map +1 -0
  315. package/dist/cache.js +2 -0
  316. package/dist/cache.js.map +1 -0
  317. package/dist/channels.d.ts +903 -0
  318. package/dist/channels.d.ts.map +1 -0
  319. package/dist/channels.js +125 -0
  320. package/dist/channels.js.map +1 -0
  321. package/dist/cli.d.ts +9 -0
  322. package/dist/cli.d.ts.map +1 -0
  323. package/dist/cli.js +65 -0
  324. package/dist/cli.js.map +1 -0
  325. package/dist/client.d.ts +645 -0
  326. package/dist/client.d.ts.map +1 -0
  327. package/dist/client.js +2 -0
  328. package/dist/client.js.map +1 -0
  329. package/dist/collectors.d.ts +205 -0
  330. package/dist/collectors.d.ts.map +1 -0
  331. package/dist/collectors.js +71 -0
  332. package/dist/collectors.js.map +1 -0
  333. package/dist/colors.d.ts +55 -0
  334. package/dist/colors.d.ts.map +1 -0
  335. package/dist/colors.js +40 -0
  336. package/dist/colors.js.map +1 -0
  337. package/dist/command-arguments.d.ts +353 -0
  338. package/dist/command-arguments.d.ts.map +1 -0
  339. package/dist/command-arguments.js +2 -0
  340. package/dist/command-arguments.js.map +1 -0
  341. package/dist/command-help.d.ts +54 -0
  342. package/dist/command-help.d.ts.map +1 -0
  343. package/dist/command-help.js +2 -0
  344. package/dist/command-help.js.map +1 -0
  345. package/dist/commands.d.ts +328 -0
  346. package/dist/commands.d.ts.map +1 -0
  347. package/dist/commands.js +62 -0
  348. package/dist/commands.js.map +1 -0
  349. package/dist/counts.d.ts +124 -0
  350. package/dist/counts.d.ts.map +1 -0
  351. package/dist/counts.js +52 -0
  352. package/dist/counts.js.map +1 -0
  353. package/dist/default-commands.d.ts +400 -0
  354. package/dist/default-commands.d.ts.map +1 -0
  355. package/dist/default-commands.js +488 -0
  356. package/dist/default-commands.js.map +1 -0
  357. package/dist/default-supervisor.d.ts +111 -0
  358. package/dist/default-supervisor.d.ts.map +1 -0
  359. package/dist/default-supervisor.js +277 -0
  360. package/dist/default-supervisor.js.map +1 -0
  361. package/dist/discovery.d.ts +223 -0
  362. package/dist/discovery.d.ts.map +1 -0
  363. package/dist/discovery.js +18 -0
  364. package/dist/discovery.js.map +1 -0
  365. package/dist/effect-testing.d.ts +388 -0
  366. package/dist/effect-testing.d.ts.map +1 -0
  367. package/dist/effect-testing.js +261 -0
  368. package/dist/effect-testing.js.map +1 -0
  369. package/dist/effect.d.ts +220 -0
  370. package/dist/effect.d.ts.map +1 -0
  371. package/dist/effect.js +101 -0
  372. package/dist/effect.js.map +1 -0
  373. package/dist/embeds.d.ts +243 -0
  374. package/dist/embeds.d.ts.map +1 -0
  375. package/dist/embeds.js +2 -0
  376. package/dist/embeds.js.map +1 -0
  377. package/dist/error-tools.d.ts +101 -0
  378. package/dist/error-tools.d.ts.map +1 -0
  379. package/dist/error-tools.js +125 -0
  380. package/dist/error-tools.js.map +1 -0
  381. package/dist/errors.d.ts +386 -0
  382. package/dist/errors.d.ts.map +1 -0
  383. package/dist/errors.js +440 -0
  384. package/dist/errors.js.map +1 -0
  385. package/dist/events.d.ts +798 -0
  386. package/dist/events.d.ts.map +1 -0
  387. package/dist/events.js +2 -0
  388. package/dist/events.js.map +1 -0
  389. package/dist/expressions.d.ts +188 -0
  390. package/dist/expressions.d.ts.map +1 -0
  391. package/dist/expressions.js +2 -0
  392. package/dist/expressions.js.map +1 -0
  393. package/dist/failures.d.ts +53 -0
  394. package/dist/failures.d.ts.map +1 -0
  395. package/dist/failures.js +2 -0
  396. package/dist/failures.js.map +1 -0
  397. package/dist/gateway.d.ts +48 -0
  398. package/dist/gateway.d.ts.map +1 -0
  399. package/dist/gateway.js +60 -0
  400. package/dist/gateway.js.map +1 -0
  401. package/dist/guilds.d.ts +923 -0
  402. package/dist/guilds.d.ts.map +1 -0
  403. package/dist/guilds.js +204 -0
  404. package/dist/guilds.js.map +1 -0
  405. package/dist/helpers.d.ts +423 -0
  406. package/dist/helpers.d.ts.map +1 -0
  407. package/dist/helpers.js +434 -0
  408. package/dist/helpers.js.map +1 -0
  409. package/dist/index.d.ts +228 -0
  410. package/dist/index.d.ts.map +1 -0
  411. package/dist/index.js +109 -0
  412. package/dist/index.js.map +1 -0
  413. package/dist/input-validation.d.ts +51 -0
  414. package/dist/input-validation.d.ts.map +1 -0
  415. package/dist/input-validation.js +34 -0
  416. package/dist/input-validation.js.map +1 -0
  417. package/dist/instance.d.ts +101 -0
  418. package/dist/instance.d.ts.map +1 -0
  419. package/dist/instance.js +2 -0
  420. package/dist/instance.js.map +1 -0
  421. package/dist/internal/agents-section.d.ts +22 -0
  422. package/dist/internal/agents-section.d.ts.map +1 -0
  423. package/dist/internal/agents-section.js +101 -0
  424. package/dist/internal/agents-section.js.map +1 -0
  425. package/dist/internal/application.d.ts +16 -0
  426. package/dist/internal/application.d.ts.map +1 -0
  427. package/dist/internal/application.js +33 -0
  428. package/dist/internal/application.js.map +1 -0
  429. package/dist/internal/attachment-refresh.d.ts +18 -0
  430. package/dist/internal/attachment-refresh.d.ts.map +1 -0
  431. package/dist/internal/attachment-refresh.js +39 -0
  432. package/dist/internal/attachment-refresh.js.map +1 -0
  433. package/dist/internal/attachments.d.ts +45 -0
  434. package/dist/internal/attachments.d.ts.map +1 -0
  435. package/dist/internal/attachments.js +230 -0
  436. package/dist/internal/attachments.js.map +1 -0
  437. package/dist/internal/audit-logs.d.ts +13 -0
  438. package/dist/internal/audit-logs.d.ts.map +1 -0
  439. package/dist/internal/audit-logs.js +295 -0
  440. package/dist/internal/audit-logs.js.map +1 -0
  441. package/dist/internal/audit.d.ts +12 -0
  442. package/dist/internal/audit.d.ts.map +1 -0
  443. package/dist/internal/audit.js +22 -0
  444. package/dist/internal/audit.js.map +1 -0
  445. package/dist/internal/binding/default-adapters.d.ts +22 -0
  446. package/dist/internal/binding/default-adapters.d.ts.map +1 -0
  447. package/dist/internal/binding/default-adapters.js +304 -0
  448. package/dist/internal/binding/default-adapters.js.map +1 -0
  449. package/dist/internal/binding/default.d.ts +45 -0
  450. package/dist/internal/binding/default.d.ts.map +1 -0
  451. package/dist/internal/binding/default.js +86 -0
  452. package/dist/internal/binding/default.js.map +1 -0
  453. package/dist/internal/binding/execute.d.ts +51 -0
  454. package/dist/internal/binding/execute.d.ts.map +1 -0
  455. package/dist/internal/binding/execute.js +123 -0
  456. package/dist/internal/binding/execute.js.map +1 -0
  457. package/dist/internal/binding/native-adapters.d.ts +23 -0
  458. package/dist/internal/binding/native-adapters.d.ts.map +1 -0
  459. package/dist/internal/binding/native-adapters.js +90 -0
  460. package/dist/internal/binding/native-adapters.js.map +1 -0
  461. package/dist/internal/binding/native.d.ts +41 -0
  462. package/dist/internal/binding/native.d.ts.map +1 -0
  463. package/dist/internal/binding/native.js +34 -0
  464. package/dist/internal/binding/native.js.map +1 -0
  465. package/dist/internal/binding/operations.d.ts +361 -0
  466. package/dist/internal/binding/operations.d.ts.map +1 -0
  467. package/dist/internal/binding/operations.js +272 -0
  468. package/dist/internal/binding/operations.js.map +1 -0
  469. package/dist/internal/bot-runner.d.ts +65 -0
  470. package/dist/internal/bot-runner.d.ts.map +1 -0
  471. package/dist/internal/bot-runner.js +363 -0
  472. package/dist/internal/bot-runner.js.map +1 -0
  473. package/dist/internal/cache-changes.d.ts +43 -0
  474. package/dist/internal/cache-changes.d.ts.map +1 -0
  475. package/dist/internal/cache-changes.js +320 -0
  476. package/dist/internal/cache-changes.js.map +1 -0
  477. package/dist/internal/cache.d.ts +57 -0
  478. package/dist/internal/cache.d.ts.map +1 -0
  479. package/dist/internal/cache.js +318 -0
  480. package/dist/internal/cache.js.map +1 -0
  481. package/dist/internal/calls.d.ts +16 -0
  482. package/dist/internal/calls.d.ts.map +1 -0
  483. package/dist/internal/calls.js +108 -0
  484. package/dist/internal/calls.js.map +1 -0
  485. package/dist/internal/channel-cache.d.ts +69 -0
  486. package/dist/internal/channel-cache.d.ts.map +1 -0
  487. package/dist/internal/channel-cache.js +413 -0
  488. package/dist/internal/channel-cache.js.map +1 -0
  489. package/dist/internal/channel-decode.d.ts +44 -0
  490. package/dist/internal/channel-decode.d.ts.map +1 -0
  491. package/dist/internal/channel-decode.js +377 -0
  492. package/dist/internal/channel-decode.js.map +1 -0
  493. package/dist/internal/channels.d.ts +60 -0
  494. package/dist/internal/channels.d.ts.map +1 -0
  495. package/dist/internal/channels.js +605 -0
  496. package/dist/internal/channels.js.map +1 -0
  497. package/dist/internal/client/backoff.d.ts +42 -0
  498. package/dist/internal/client/backoff.d.ts.map +1 -0
  499. package/dist/internal/client/backoff.js +36 -0
  500. package/dist/internal/client/backoff.js.map +1 -0
  501. package/dist/internal/client/configuration-fields.d.ts +14 -0
  502. package/dist/internal/client/configuration-fields.d.ts.map +1 -0
  503. package/dist/internal/client/configuration-fields.js +11 -0
  504. package/dist/internal/client/configuration-fields.js.map +1 -0
  505. package/dist/internal/client/drain.d.ts +33 -0
  506. package/dist/internal/client/drain.d.ts.map +1 -0
  507. package/dist/internal/client/drain.js +109 -0
  508. package/dist/internal/client/drain.js.map +1 -0
  509. package/dist/internal/client/intake.d.ts +27 -0
  510. package/dist/internal/client/intake.d.ts.map +1 -0
  511. package/dist/internal/client/intake.js +198 -0
  512. package/dist/internal/client/intake.js.map +1 -0
  513. package/dist/internal/client/lifetime.d.ts +35 -0
  514. package/dist/internal/client/lifetime.d.ts.map +1 -0
  515. package/dist/internal/client/lifetime.js +109 -0
  516. package/dist/internal/client/lifetime.js.map +1 -0
  517. package/dist/internal/client/shard-loop.d.ts +93 -0
  518. package/dist/internal/client/shard-loop.d.ts.map +1 -0
  519. package/dist/internal/client/shard-loop.js +452 -0
  520. package/dist/internal/client/shard-loop.js.map +1 -0
  521. package/dist/internal/client-registry.d.ts +26 -0
  522. package/dist/internal/client-registry.d.ts.map +1 -0
  523. package/dist/internal/client-registry.js +11 -0
  524. package/dist/internal/client-registry.js.map +1 -0
  525. package/dist/internal/client.d.ts +189 -0
  526. package/dist/internal/client.d.ts.map +1 -0
  527. package/dist/internal/client.js +1935 -0
  528. package/dist/internal/client.js.map +1 -0
  529. package/dist/internal/clock.d.ts +9 -0
  530. package/dist/internal/clock.d.ts.map +1 -0
  531. package/dist/internal/clock.js +5 -0
  532. package/dist/internal/clock.js.map +1 -0
  533. package/dist/internal/code-catalogue.d.ts +712 -0
  534. package/dist/internal/code-catalogue.d.ts.map +1 -0
  535. package/dist/internal/code-catalogue.js +655 -0
  536. package/dist/internal/code-catalogue.js.map +1 -0
  537. package/dist/internal/collector.d.ts +34 -0
  538. package/dist/internal/collector.d.ts.map +1 -0
  539. package/dist/internal/collector.js +400 -0
  540. package/dist/internal/collector.js.map +1 -0
  541. package/dist/internal/command-arguments.d.ts +29 -0
  542. package/dist/internal/command-arguments.d.ts.map +1 -0
  543. package/dist/internal/command-arguments.js +484 -0
  544. package/dist/internal/command-arguments.js.map +1 -0
  545. package/dist/internal/command-guards.d.ts +57 -0
  546. package/dist/internal/command-guards.d.ts.map +1 -0
  547. package/dist/internal/command-guards.js +81 -0
  548. package/dist/internal/command-guards.js.map +1 -0
  549. package/dist/internal/command-help.d.ts +15 -0
  550. package/dist/internal/command-help.d.ts.map +1 -0
  551. package/dist/internal/command-help.js +121 -0
  552. package/dist/internal/command-help.js.map +1 -0
  553. package/dist/internal/commands.d.ts +212 -0
  554. package/dist/internal/commands.d.ts.map +1 -0
  555. package/dist/internal/commands.js +1004 -0
  556. package/dist/internal/commands.js.map +1 -0
  557. package/dist/internal/configuration.d.ts +86 -0
  558. package/dist/internal/configuration.d.ts.map +1 -0
  559. package/dist/internal/configuration.js +401 -0
  560. package/dist/internal/configuration.js.map +1 -0
  561. package/dist/internal/counts.d.ts +33 -0
  562. package/dist/internal/counts.d.ts.map +1 -0
  563. package/dist/internal/counts.js +348 -0
  564. package/dist/internal/counts.js.map +1 -0
  565. package/dist/internal/decode/primitives.d.ts +30 -0
  566. package/dist/internal/decode/primitives.d.ts.map +1 -0
  567. package/dist/internal/decode/primitives.js +56 -0
  568. package/dist/internal/decode/primitives.js.map +1 -0
  569. package/dist/internal/decode/timestamp.d.ts +13 -0
  570. package/dist/internal/decode/timestamp.d.ts.map +1 -0
  571. package/dist/internal/decode/timestamp.js +27 -0
  572. package/dist/internal/decode/timestamp.js.map +1 -0
  573. package/dist/internal/decode/trace.d.ts +11 -0
  574. package/dist/internal/decode/trace.d.ts.map +1 -0
  575. package/dist/internal/decode/trace.js +69 -0
  576. package/dist/internal/decode/trace.js.map +1 -0
  577. package/dist/internal/defects.d.ts +48 -0
  578. package/dist/internal/defects.d.ts.map +1 -0
  579. package/dist/internal/defects.js +100 -0
  580. package/dist/internal/defects.js.map +1 -0
  581. package/dist/internal/effect-failures.d.ts +12 -0
  582. package/dist/internal/effect-failures.d.ts.map +1 -0
  583. package/dist/internal/effect-failures.js +45 -0
  584. package/dist/internal/effect-failures.js.map +1 -0
  585. package/dist/internal/embeds.d.ts +12 -0
  586. package/dist/internal/embeds.d.ts.map +1 -0
  587. package/dist/internal/embeds.js +308 -0
  588. package/dist/internal/embeds.js.map +1 -0
  589. package/dist/internal/events.d.ts +156 -0
  590. package/dist/internal/events.d.ts.map +1 -0
  591. package/dist/internal/events.js +1071 -0
  592. package/dist/internal/events.js.map +1 -0
  593. package/dist/internal/expiry-queue.d.ts +42 -0
  594. package/dist/internal/expiry-queue.d.ts.map +1 -0
  595. package/dist/internal/expiry-queue.js +138 -0
  596. package/dist/internal/expiry-queue.js.map +1 -0
  597. package/dist/internal/expressions.d.ts +35 -0
  598. package/dist/internal/expressions.d.ts.map +1 -0
  599. package/dist/internal/expressions.js +311 -0
  600. package/dist/internal/expressions.js.map +1 -0
  601. package/dist/internal/failures.d.ts +107 -0
  602. package/dist/internal/failures.d.ts.map +1 -0
  603. package/dist/internal/failures.js +416 -0
  604. package/dist/internal/failures.js.map +1 -0
  605. package/dist/internal/field-text.d.ts +10 -0
  606. package/dist/internal/field-text.d.ts.map +1 -0
  607. package/dist/internal/field-text.js +37 -0
  608. package/dist/internal/field-text.js.map +1 -0
  609. package/dist/internal/gateway/commands.d.ts +92 -0
  610. package/dist/internal/gateway/commands.d.ts.map +1 -0
  611. package/dist/internal/gateway/commands.js +223 -0
  612. package/dist/internal/gateway/commands.js.map +1 -0
  613. package/dist/internal/gateway/dispatch-table.d.ts +42 -0
  614. package/dist/internal/gateway/dispatch-table.d.ts.map +1 -0
  615. package/dist/internal/gateway/dispatch-table.js +288 -0
  616. package/dist/internal/gateway/dispatch-table.js.map +1 -0
  617. package/dist/internal/gateway/event-dispatches.d.ts +97 -0
  618. package/dist/internal/gateway/event-dispatches.d.ts.map +1 -0
  619. package/dist/internal/gateway/event-dispatches.js +172 -0
  620. package/dist/internal/gateway/event-dispatches.js.map +1 -0
  621. package/dist/internal/gateway/frames.d.ts +45 -0
  622. package/dist/internal/gateway/frames.d.ts.map +1 -0
  623. package/dist/internal/gateway/frames.js +121 -0
  624. package/dist/internal/gateway/frames.js.map +1 -0
  625. package/dist/internal/gateway/options.d.ts +24 -0
  626. package/dist/internal/gateway/options.d.ts.map +1 -0
  627. package/dist/internal/gateway/options.js +103 -0
  628. package/dist/internal/gateway/options.js.map +1 -0
  629. package/dist/internal/gateway/session.d.ts +104 -0
  630. package/dist/internal/gateway/session.d.ts.map +1 -0
  631. package/dist/internal/gateway/session.js +420 -0
  632. package/dist/internal/gateway/session.js.map +1 -0
  633. package/dist/internal/gateway-requests.d.ts +10 -0
  634. package/dist/internal/gateway-requests.d.ts.map +1 -0
  635. package/dist/internal/gateway-requests.js +26 -0
  636. package/dist/internal/gateway-requests.js.map +1 -0
  637. package/dist/internal/gateway.d.ts +19 -0
  638. package/dist/internal/gateway.d.ts.map +1 -0
  639. package/dist/internal/gateway.js +11 -0
  640. package/dist/internal/gateway.js.map +1 -0
  641. package/dist/internal/guild-cache.d.ts +69 -0
  642. package/dist/internal/guild-cache.d.ts.map +1 -0
  643. package/dist/internal/guild-cache.js +402 -0
  644. package/dist/internal/guild-cache.js.map +1 -0
  645. package/dist/internal/guild-discovery.d.ts +15 -0
  646. package/dist/internal/guild-discovery.d.ts.map +1 -0
  647. package/dist/internal/guild-discovery.js +258 -0
  648. package/dist/internal/guild-discovery.js.map +1 -0
  649. package/dist/internal/guild-lifecycle.d.ts +18 -0
  650. package/dist/internal/guild-lifecycle.d.ts.map +1 -0
  651. package/dist/internal/guild-lifecycle.js +119 -0
  652. package/dist/internal/guild-lifecycle.js.map +1 -0
  653. package/dist/internal/guild-settings.d.ts +11 -0
  654. package/dist/internal/guild-settings.d.ts.map +1 -0
  655. package/dist/internal/guild-settings.js +150 -0
  656. package/dist/internal/guild-settings.js.map +1 -0
  657. package/dist/internal/guilds.d.ts +94 -0
  658. package/dist/internal/guilds.d.ts.map +1 -0
  659. package/dist/internal/guilds.js +785 -0
  660. package/dist/internal/guilds.js.map +1 -0
  661. package/dist/internal/init-command.d.ts +54 -0
  662. package/dist/internal/init-command.d.ts.map +1 -0
  663. package/dist/internal/init-command.js +248 -0
  664. package/dist/internal/init-command.js.map +1 -0
  665. package/dist/internal/instance.d.ts +69 -0
  666. package/dist/internal/instance.d.ts.map +1 -0
  667. package/dist/internal/instance.js +455 -0
  668. package/dist/internal/instance.js.map +1 -0
  669. package/dist/internal/invalid-callback-return.d.ts +3 -0
  670. package/dist/internal/invalid-callback-return.d.ts.map +1 -0
  671. package/dist/internal/invalid-callback-return.js +26 -0
  672. package/dist/internal/invalid-callback-return.js.map +1 -0
  673. package/dist/internal/invites.d.ts +19 -0
  674. package/dist/internal/invites.d.ts.map +1 -0
  675. package/dist/internal/invites.js +182 -0
  676. package/dist/internal/invites.js.map +1 -0
  677. package/dist/internal/logging.d.ts +129 -0
  678. package/dist/internal/logging.d.ts.map +1 -0
  679. package/dist/internal/logging.js +868 -0
  680. package/dist/internal/logging.js.map +1 -0
  681. package/dist/internal/logical-scheduler.d.ts +27 -0
  682. package/dist/internal/logical-scheduler.d.ts.map +1 -0
  683. package/dist/internal/logical-scheduler.js +102 -0
  684. package/dist/internal/logical-scheduler.js.map +1 -0
  685. package/dist/internal/masking.d.ts +13 -0
  686. package/dist/internal/masking.d.ts.map +1 -0
  687. package/dist/internal/masking.js +235 -0
  688. package/dist/internal/masking.js.map +1 -0
  689. package/dist/internal/member-chunks.d.ts +96 -0
  690. package/dist/internal/member-chunks.d.ts.map +1 -0
  691. package/dist/internal/member-chunks.js +557 -0
  692. package/dist/internal/member-chunks.js.map +1 -0
  693. package/dist/internal/member-search-workflow.d.ts +19 -0
  694. package/dist/internal/member-search-workflow.d.ts.map +1 -0
  695. package/dist/internal/member-search-workflow.js +143 -0
  696. package/dist/internal/member-search-workflow.js.map +1 -0
  697. package/dist/internal/member-search.d.ts +20 -0
  698. package/dist/internal/member-search.d.ts.map +1 -0
  699. package/dist/internal/member-search.js +201 -0
  700. package/dist/internal/member-search.js.map +1 -0
  701. package/dist/internal/message-cleanup.d.ts +9 -0
  702. package/dist/internal/message-cleanup.d.ts.map +1 -0
  703. package/dist/internal/message-cleanup.js +368 -0
  704. package/dist/internal/message-cleanup.js.map +1 -0
  705. package/dist/internal/message-fields.d.ts +9 -0
  706. package/dist/internal/message-fields.d.ts.map +1 -0
  707. package/dist/internal/message-fields.js +55 -0
  708. package/dist/internal/message-fields.js.map +1 -0
  709. package/dist/internal/message-search-workflow.d.ts +14 -0
  710. package/dist/internal/message-search-workflow.d.ts.map +1 -0
  711. package/dist/internal/message-search-workflow.js +101 -0
  712. package/dist/internal/message-search-workflow.js.map +1 -0
  713. package/dist/internal/message-search.d.ts +19 -0
  714. package/dist/internal/message-search.d.ts.map +1 -0
  715. package/dist/internal/message-search.js +317 -0
  716. package/dist/internal/message-search.js.map +1 -0
  717. package/dist/internal/message.d.ts +34 -0
  718. package/dist/internal/message.d.ts.map +1 -0
  719. package/dist/internal/message.js +723 -0
  720. package/dist/internal/message.js.map +1 -0
  721. package/dist/internal/metrics.d.ts +16 -0
  722. package/dist/internal/metrics.d.ts.map +1 -0
  723. package/dist/internal/metrics.js +49 -0
  724. package/dist/internal/metrics.js.map +1 -0
  725. package/dist/internal/moderation.d.ts +20 -0
  726. package/dist/internal/moderation.d.ts.map +1 -0
  727. package/dist/internal/moderation.js +219 -0
  728. package/dist/internal/moderation.js.map +1 -0
  729. package/dist/internal/multipart.d.ts +10 -0
  730. package/dist/internal/multipart.d.ts.map +1 -0
  731. package/dist/internal/multipart.js +156 -0
  732. package/dist/internal/multipart.js.map +1 -0
  733. package/dist/internal/node-version.d.ts +10 -0
  734. package/dist/internal/node-version.d.ts.map +1 -0
  735. package/dist/internal/node-version.js +21 -0
  736. package/dist/internal/node-version.js.map +1 -0
  737. package/dist/internal/oauth.d.ts +29 -0
  738. package/dist/internal/oauth.d.ts.map +1 -0
  739. package/dist/internal/oauth.js +721 -0
  740. package/dist/internal/oauth.js.map +1 -0
  741. package/dist/internal/observer.d.ts +21 -0
  742. package/dist/internal/observer.d.ts.map +1 -0
  743. package/dist/internal/observer.js +48 -0
  744. package/dist/internal/observer.js.map +1 -0
  745. package/dist/internal/operation-signal.d.ts +9 -0
  746. package/dist/internal/operation-signal.d.ts.map +1 -0
  747. package/dist/internal/operation-signal.js +19 -0
  748. package/dist/internal/operation-signal.js.map +1 -0
  749. package/dist/internal/pagination.d.ts +67 -0
  750. package/dist/internal/pagination.d.ts.map +1 -0
  751. package/dist/internal/pagination.js +306 -0
  752. package/dist/internal/pagination.js.map +1 -0
  753. package/dist/internal/permission-requirements.d.ts +34 -0
  754. package/dist/internal/permission-requirements.d.ts.map +1 -0
  755. package/dist/internal/permission-requirements.js +204 -0
  756. package/dist/internal/permission-requirements.js.map +1 -0
  757. package/dist/internal/permissions.d.ts +28 -0
  758. package/dist/internal/permissions.d.ts.map +1 -0
  759. package/dist/internal/permissions.js +314 -0
  760. package/dist/internal/permissions.js.map +1 -0
  761. package/dist/internal/pins.d.ts +24 -0
  762. package/dist/internal/pins.d.ts.map +1 -0
  763. package/dist/internal/pins.js +83 -0
  764. package/dist/internal/pins.js.map +1 -0
  765. package/dist/internal/presence.d.ts +101 -0
  766. package/dist/internal/presence.d.ts.map +1 -0
  767. package/dist/internal/presence.js +581 -0
  768. package/dist/internal/presence.js.map +1 -0
  769. package/dist/internal/protocol/gateway.d.ts +116 -0
  770. package/dist/internal/protocol/gateway.d.ts.map +1 -0
  771. package/dist/internal/protocol/gateway.js +258 -0
  772. package/dist/internal/protocol/gateway.js.map +1 -0
  773. package/dist/internal/rate-limit-templates.d.ts +2 -0
  774. package/dist/internal/rate-limit-templates.d.ts.map +1 -0
  775. package/dist/internal/rate-limit-templates.js +132 -0
  776. package/dist/internal/rate-limit-templates.js.map +1 -0
  777. package/dist/internal/rate-limits.d.ts +32 -0
  778. package/dist/internal/rate-limits.d.ts.map +1 -0
  779. package/dist/internal/rate-limits.js +306 -0
  780. package/dist/internal/rate-limits.js.map +1 -0
  781. package/dist/internal/reaction-collector.d.ts +39 -0
  782. package/dist/internal/reaction-collector.d.ts.map +1 -0
  783. package/dist/internal/reaction-collector.js +441 -0
  784. package/dist/internal/reaction-collector.js.map +1 -0
  785. package/dist/internal/reaction-pages.d.ts +18 -0
  786. package/dist/internal/reaction-pages.d.ts.map +1 -0
  787. package/dist/internal/reaction-pages.js +213 -0
  788. package/dist/internal/reaction-pages.js.map +1 -0
  789. package/dist/internal/reactions.d.ts +30 -0
  790. package/dist/internal/reactions.d.ts.map +1 -0
  791. package/dist/internal/reactions.js +160 -0
  792. package/dist/internal/reactions.js.map +1 -0
  793. package/dist/internal/rejection-scope.d.ts +25 -0
  794. package/dist/internal/rejection-scope.d.ts.map +1 -0
  795. package/dist/internal/rejection-scope.js +103 -0
  796. package/dist/internal/rejection-scope.js.map +1 -0
  797. package/dist/internal/response-json.d.ts +12 -0
  798. package/dist/internal/response-json.d.ts.map +1 -0
  799. package/dist/internal/response-json.js +74 -0
  800. package/dist/internal/response-json.js.map +1 -0
  801. package/dist/internal/rest/admission.d.ts +77 -0
  802. package/dist/internal/rest/admission.d.ts.map +1 -0
  803. package/dist/internal/rest/admission.js +178 -0
  804. package/dist/internal/rest/admission.js.map +1 -0
  805. package/dist/internal/rest/attempt.d.ts +124 -0
  806. package/dist/internal/rest/attempt.d.ts.map +1 -0
  807. package/dist/internal/rest/attempt.js +410 -0
  808. package/dist/internal/rest/attempt.js.map +1 -0
  809. package/dist/internal/rest/classify.d.ts +93 -0
  810. package/dist/internal/rest/classify.d.ts.map +1 -0
  811. package/dist/internal/rest/classify.js +304 -0
  812. package/dist/internal/rest/classify.js.map +1 -0
  813. package/dist/internal/rest/download.d.ts +66 -0
  814. package/dist/internal/rest/download.d.ts.map +1 -0
  815. package/dist/internal/rest/download.js +552 -0
  816. package/dist/internal/rest/download.js.map +1 -0
  817. package/dist/internal/rest/options.d.ts +42 -0
  818. package/dist/internal/rest/options.d.ts.map +1 -0
  819. package/dist/internal/rest/options.js +99 -0
  820. package/dist/internal/rest/options.js.map +1 -0
  821. package/dist/internal/rest/owner.d.ts +154 -0
  822. package/dist/internal/rest/owner.d.ts.map +1 -0
  823. package/dist/internal/rest/owner.js +1292 -0
  824. package/dist/internal/rest/owner.js.map +1 -0
  825. package/dist/internal/rest/request.d.ts +31 -0
  826. package/dist/internal/rest/request.d.ts.map +1 -0
  827. package/dist/internal/rest/request.js +227 -0
  828. package/dist/internal/rest/request.js.map +1 -0
  829. package/dist/internal/rest.d.ts +10 -0
  830. package/dist/internal/rest.d.ts.map +1 -0
  831. package/dist/internal/rest.js +9 -0
  832. package/dist/internal/rest.js.map +1 -0
  833. package/dist/internal/retention-age.d.ts +11 -0
  834. package/dist/internal/retention-age.d.ts.map +1 -0
  835. package/dist/internal/retention-age.js +29 -0
  836. package/dist/internal/retention-age.js.map +1 -0
  837. package/dist/internal/role-hierarchy-workflow.d.ts +15 -0
  838. package/dist/internal/role-hierarchy-workflow.d.ts.map +1 -0
  839. package/dist/internal/role-hierarchy-workflow.js +122 -0
  840. package/dist/internal/role-hierarchy-workflow.js.map +1 -0
  841. package/dist/internal/role-hierarchy.d.ts +11 -0
  842. package/dist/internal/role-hierarchy.d.ts.map +1 -0
  843. package/dist/internal/role-hierarchy.js +87 -0
  844. package/dist/internal/role-hierarchy.js.map +1 -0
  845. package/dist/internal/scheduled-tasks.d.ts +46 -0
  846. package/dist/internal/scheduled-tasks.d.ts.map +1 -0
  847. package/dist/internal/scheduled-tasks.js +190 -0
  848. package/dist/internal/scheduled-tasks.js.map +1 -0
  849. package/dist/internal/sharding.d.ts +62 -0
  850. package/dist/internal/sharding.d.ts.map +1 -0
  851. package/dist/internal/sharding.js +205 -0
  852. package/dist/internal/sharding.js.map +1 -0
  853. package/dist/internal/starter-project.d.ts +27 -0
  854. package/dist/internal/starter-project.d.ts.map +1 -0
  855. package/dist/internal/starter-project.js +224 -0
  856. package/dist/internal/starter-project.js.map +1 -0
  857. package/dist/internal/suggest.d.ts +12 -0
  858. package/dist/internal/suggest.d.ts.map +1 -0
  859. package/dist/internal/suggest.js +51 -0
  860. package/dist/internal/suggest.js.map +1 -0
  861. package/dist/internal/supervisor.d.ts +95 -0
  862. package/dist/internal/supervisor.d.ts.map +1 -0
  863. package/dist/internal/supervisor.js +1829 -0
  864. package/dist/internal/supervisor.js.map +1 -0
  865. package/dist/internal/testing/discovery.d.ts +24 -0
  866. package/dist/internal/testing/discovery.d.ts.map +1 -0
  867. package/dist/internal/testing/discovery.js +22 -0
  868. package/dist/internal/testing/discovery.js.map +1 -0
  869. package/dist/internal/testing/errors.d.ts +43 -0
  870. package/dist/internal/testing/errors.d.ts.map +1 -0
  871. package/dist/internal/testing/errors.js +63 -0
  872. package/dist/internal/testing/errors.js.map +1 -0
  873. package/dist/internal/testing/fixtures.d.ts +477 -0
  874. package/dist/internal/testing/fixtures.d.ts.map +1 -0
  875. package/dist/internal/testing/fixtures.js +233 -0
  876. package/dist/internal/testing/fixtures.js.map +1 -0
  877. package/dist/internal/testing/gateway.d.ts +51 -0
  878. package/dist/internal/testing/gateway.d.ts.map +1 -0
  879. package/dist/internal/testing/gateway.js +265 -0
  880. package/dist/internal/testing/gateway.js.map +1 -0
  881. package/dist/internal/testing/harness.d.ts +60 -0
  882. package/dist/internal/testing/harness.d.ts.map +1 -0
  883. package/dist/internal/testing/harness.js +280 -0
  884. package/dist/internal/testing/harness.js.map +1 -0
  885. package/dist/internal/testing/http.d.ts +31 -0
  886. package/dist/internal/testing/http.d.ts.map +1 -0
  887. package/dist/internal/testing/http.js +347 -0
  888. package/dist/internal/testing/http.js.map +1 -0
  889. package/dist/internal/testing/types.d.ts +222 -0
  890. package/dist/internal/testing/types.d.ts.map +1 -0
  891. package/dist/internal/testing/types.js +2 -0
  892. package/dist/internal/testing/types.js.map +1 -0
  893. package/dist/internal/testing/wait.d.ts +16 -0
  894. package/dist/internal/testing/wait.d.ts.map +1 -0
  895. package/dist/internal/testing/wait.js +55 -0
  896. package/dist/internal/testing/wait.js.map +1 -0
  897. package/dist/internal/thread-events.d.ts +40 -0
  898. package/dist/internal/thread-events.d.ts.map +1 -0
  899. package/dist/internal/thread-events.js +121 -0
  900. package/dist/internal/thread-events.js.map +1 -0
  901. package/dist/internal/threads.d.ts +47 -0
  902. package/dist/internal/threads.d.ts.map +1 -0
  903. package/dist/internal/threads.js +587 -0
  904. package/dist/internal/threads.js.map +1 -0
  905. package/dist/internal/transfer-source.d.ts +29 -0
  906. package/dist/internal/transfer-source.d.ts.map +1 -0
  907. package/dist/internal/transfer-source.js +347 -0
  908. package/dist/internal/transfer-source.js.map +1 -0
  909. package/dist/internal/transport/http.d.ts +12 -0
  910. package/dist/internal/transport/http.d.ts.map +1 -0
  911. package/dist/internal/transport/http.js +44 -0
  912. package/dist/internal/transport/http.js.map +1 -0
  913. package/dist/internal/transport/index.d.ts +21 -0
  914. package/dist/internal/transport/index.d.ts.map +1 -0
  915. package/dist/internal/transport/index.js +15 -0
  916. package/dist/internal/transport/index.js.map +1 -0
  917. package/dist/internal/transport/socket.d.ts +51 -0
  918. package/dist/internal/transport/socket.d.ts.map +1 -0
  919. package/dist/internal/transport/socket.js +27 -0
  920. package/dist/internal/transport/socket.js.map +1 -0
  921. package/dist/internal/transport/user-agent.d.ts +7 -0
  922. package/dist/internal/transport/user-agent.d.ts.map +1 -0
  923. package/dist/internal/transport/user-agent.js +42 -0
  924. package/dist/internal/transport/user-agent.js.map +1 -0
  925. package/dist/internal/uploads.d.ts +23 -0
  926. package/dist/internal/uploads.d.ts.map +1 -0
  927. package/dist/internal/uploads.js +89 -0
  928. package/dist/internal/uploads.js.map +1 -0
  929. package/dist/internal/user-cache.d.ts +50 -0
  930. package/dist/internal/user-cache.d.ts.map +1 -0
  931. package/dist/internal/user-cache.js +273 -0
  932. package/dist/internal/user-cache.js.map +1 -0
  933. package/dist/internal/users.d.ts +41 -0
  934. package/dist/internal/users.d.ts.map +1 -0
  935. package/dist/internal/users.js +333 -0
  936. package/dist/internal/users.js.map +1 -0
  937. package/dist/internal/vanity-url.d.ts +11 -0
  938. package/dist/internal/vanity-url.d.ts.map +1 -0
  939. package/dist/internal/vanity-url.js +58 -0
  940. package/dist/internal/vanity-url.js.map +1 -0
  941. package/dist/internal/webhooks.d.ts +58 -0
  942. package/dist/internal/webhooks.d.ts.map +1 -0
  943. package/dist/internal/webhooks.js +490 -0
  944. package/dist/internal/webhooks.js.map +1 -0
  945. package/dist/invites.d.ts +86 -0
  946. package/dist/invites.d.ts.map +1 -0
  947. package/dist/invites.js +2 -0
  948. package/dist/invites.js.map +1 -0
  949. package/dist/logging.d.ts +228 -0
  950. package/dist/logging.d.ts.map +1 -0
  951. package/dist/logging.js +2 -0
  952. package/dist/logging.js.map +1 -0
  953. package/dist/member-chunks.d.ts +145 -0
  954. package/dist/member-chunks.d.ts.map +1 -0
  955. package/dist/member-chunks.js +68 -0
  956. package/dist/member-chunks.js.map +1 -0
  957. package/dist/member-search.d.ts +140 -0
  958. package/dist/member-search.d.ts.map +1 -0
  959. package/dist/member-search.js +14 -0
  960. package/dist/member-search.js.map +1 -0
  961. package/dist/message-cleanup.d.ts +227 -0
  962. package/dist/message-cleanup.d.ts.map +1 -0
  963. package/dist/message-cleanup.js +101 -0
  964. package/dist/message-cleanup.js.map +1 -0
  965. package/dist/message-errors.d.ts +172 -0
  966. package/dist/message-errors.d.ts.map +1 -0
  967. package/dist/message-errors.js +173 -0
  968. package/dist/message-errors.js.map +1 -0
  969. package/dist/message-search.d.ts +201 -0
  970. package/dist/message-search.d.ts.map +1 -0
  971. package/dist/message-search.js +2 -0
  972. package/dist/message-search.js.map +1 -0
  973. package/dist/messages.d.ts +694 -0
  974. package/dist/messages.d.ts.map +1 -0
  975. package/dist/messages.js +37 -0
  976. package/dist/messages.js.map +1 -0
  977. package/dist/native-commands.d.ts +451 -0
  978. package/dist/native-commands.d.ts.map +1 -0
  979. package/dist/native-commands.js +432 -0
  980. package/dist/native-commands.js.map +1 -0
  981. package/dist/native-supervisor.d.ts +125 -0
  982. package/dist/native-supervisor.d.ts.map +1 -0
  983. package/dist/native-supervisor.js +126 -0
  984. package/dist/native-supervisor.js.map +1 -0
  985. package/dist/oauth.d.ts +298 -0
  986. package/dist/oauth.d.ts.map +1 -0
  987. package/dist/oauth.js +128 -0
  988. package/dist/oauth.js.map +1 -0
  989. package/dist/observer.d.ts +111 -0
  990. package/dist/observer.d.ts.map +1 -0
  991. package/dist/observer.js +2 -0
  992. package/dist/observer.js.map +1 -0
  993. package/dist/pagination.d.ts +117 -0
  994. package/dist/pagination.d.ts.map +1 -0
  995. package/dist/pagination.js +61 -0
  996. package/dist/pagination.js.map +1 -0
  997. package/dist/permissions.d.ts +73 -0
  998. package/dist/permissions.d.ts.map +1 -0
  999. package/dist/permissions.js +2 -0
  1000. package/dist/permissions.js.map +1 -0
  1001. package/dist/pins.d.ts +62 -0
  1002. package/dist/pins.d.ts.map +1 -0
  1003. package/dist/pins.js +2 -0
  1004. package/dist/pins.js.map +1 -0
  1005. package/dist/presence.d.ts +84 -0
  1006. package/dist/presence.d.ts.map +1 -0
  1007. package/dist/presence.js +46 -0
  1008. package/dist/presence.js.map +1 -0
  1009. package/dist/reaction-pages.d.ts +99 -0
  1010. package/dist/reaction-pages.d.ts.map +1 -0
  1011. package/dist/reaction-pages.js +2 -0
  1012. package/dist/reaction-pages.js.map +1 -0
  1013. package/dist/reactions.d.ts +118 -0
  1014. package/dist/reactions.d.ts.map +1 -0
  1015. package/dist/reactions.js +2 -0
  1016. package/dist/reactions.js.map +1 -0
  1017. package/dist/rest.d.ts +260 -0
  1018. package/dist/rest.d.ts.map +1 -0
  1019. package/dist/rest.js +46 -0
  1020. package/dist/rest.js.map +1 -0
  1021. package/dist/role-hierarchy.d.ts +81 -0
  1022. package/dist/role-hierarchy.d.ts.map +1 -0
  1023. package/dist/role-hierarchy.js +53 -0
  1024. package/dist/role-hierarchy.js.map +1 -0
  1025. package/dist/sharding.d.ts +219 -0
  1026. package/dist/sharding.d.ts.map +1 -0
  1027. package/dist/sharding.js +86 -0
  1028. package/dist/sharding.js.map +1 -0
  1029. package/dist/supervisor.d.ts +392 -0
  1030. package/dist/supervisor.d.ts.map +1 -0
  1031. package/dist/supervisor.js +101 -0
  1032. package/dist/supervisor.js.map +1 -0
  1033. package/dist/testing.d.ts +258 -0
  1034. package/dist/testing.d.ts.map +1 -0
  1035. package/dist/testing.js +202 -0
  1036. package/dist/testing.js.map +1 -0
  1037. package/dist/text.d.ts +38 -0
  1038. package/dist/text.d.ts.map +1 -0
  1039. package/dist/text.js +46 -0
  1040. package/dist/text.js.map +1 -0
  1041. package/dist/threads.d.ts +258 -0
  1042. package/dist/threads.d.ts.map +1 -0
  1043. package/dist/threads.js +2 -0
  1044. package/dist/threads.js.map +1 -0
  1045. package/dist/users.d.ts +204 -0
  1046. package/dist/users.d.ts.map +1 -0
  1047. package/dist/users.js +44 -0
  1048. package/dist/users.js.map +1 -0
  1049. package/dist/webhooks.d.ts +423 -0
  1050. package/dist/webhooks.d.ts.map +1 -0
  1051. package/dist/webhooks.js +68 -0
  1052. package/dist/webhooks.js.map +1 -0
  1053. package/esm-only.cjs +3 -0
  1054. package/examples/starter/bot-effect.ts +17 -0
  1055. package/examples/starter/bot.js +13 -0
  1056. package/examples/starter/bot.ts +13 -0
  1057. package/package.json +82 -0
  1058. package/src/api/default/application.ts +40 -0
  1059. package/src/api/default/attachments.ts +106 -0
  1060. package/src/api/default/audit-logs.ts +58 -0
  1061. package/src/api/default/bot.ts +586 -0
  1062. package/src/api/default/cache.ts +106 -0
  1063. package/src/api/default/channels.ts +317 -0
  1064. package/src/api/default/client.ts +829 -0
  1065. package/src/api/default/collectors.ts +81 -0
  1066. package/src/api/default/commands.ts +92 -0
  1067. package/src/api/default/direct-messages.ts +143 -0
  1068. package/src/api/default/discovery.ts +103 -0
  1069. package/src/api/default/emojis.ts +125 -0
  1070. package/src/api/default/events.ts +144 -0
  1071. package/src/api/default/gateway.ts +67 -0
  1072. package/src/api/default/guards.ts +173 -0
  1073. package/src/api/default/guilds.ts +271 -0
  1074. package/src/api/default/helpers.ts +97 -0
  1075. package/src/api/default/instance.ts +49 -0
  1076. package/src/api/default/invites.ts +73 -0
  1077. package/src/api/default/logging.ts +37 -0
  1078. package/src/api/default/members.ts +550 -0
  1079. package/src/api/default/messages.ts +1053 -0
  1080. package/src/api/default/oauth.ts +293 -0
  1081. package/src/api/default/permissions.ts +47 -0
  1082. package/src/api/default/presence.ts +88 -0
  1083. package/src/api/default/rest.ts +30 -0
  1084. package/src/api/default/results.ts +44 -0
  1085. package/src/api/default/roles.ts +154 -0
  1086. package/src/api/default/stickers.ts +129 -0
  1087. package/src/api/default/supervisor.ts +53 -0
  1088. package/src/api/default/threads.ts +233 -0
  1089. package/src/api/default/users.ts +82 -0
  1090. package/src/api/default/webhook-client.ts +266 -0
  1091. package/src/api/default/webhooks.ts +89 -0
  1092. package/src/api/effect/application.ts +29 -0
  1093. package/src/api/effect/attachments.ts +100 -0
  1094. package/src/api/effect/audit-logs.ts +50 -0
  1095. package/src/api/effect/bot.ts +546 -0
  1096. package/src/api/effect/cache.ts +110 -0
  1097. package/src/api/effect/channels.ts +293 -0
  1098. package/src/api/effect/client.ts +792 -0
  1099. package/src/api/effect/collectors.ts +103 -0
  1100. package/src/api/effect/commands.ts +87 -0
  1101. package/src/api/effect/direct-messages.ts +119 -0
  1102. package/src/api/effect/discovery.ts +87 -0
  1103. package/src/api/effect/emojis.ts +108 -0
  1104. package/src/api/effect/events.ts +92 -0
  1105. package/src/api/effect/failures.ts +14 -0
  1106. package/src/api/effect/gateway.ts +63 -0
  1107. package/src/api/effect/guards.ts +194 -0
  1108. package/src/api/effect/guilds.ts +247 -0
  1109. package/src/api/effect/helpers.ts +359 -0
  1110. package/src/api/effect/hierarchy.ts +26 -0
  1111. package/src/api/effect/instance.ts +50 -0
  1112. package/src/api/effect/invites.ts +59 -0
  1113. package/src/api/effect/logging.ts +37 -0
  1114. package/src/api/effect/members.ts +521 -0
  1115. package/src/api/effect/messages.ts +1003 -0
  1116. package/src/api/effect/oauth.ts +208 -0
  1117. package/src/api/effect/permissions.ts +44 -0
  1118. package/src/api/effect/presence.ts +83 -0
  1119. package/src/api/effect/rest.ts +27 -0
  1120. package/src/api/effect/roles.ts +136 -0
  1121. package/src/api/effect/service.ts +104 -0
  1122. package/src/api/effect/stickers.ts +112 -0
  1123. package/src/api/effect/supervisor.ts +58 -0
  1124. package/src/api/effect/threads.ts +221 -0
  1125. package/src/api/effect/users.ts +66 -0
  1126. package/src/api/effect/webhook-client.ts +206 -0
  1127. package/src/api/effect/webhooks.ts +75 -0
  1128. package/src/api-errors.ts +985 -0
  1129. package/src/application.ts +103 -0
  1130. package/src/assets.ts +731 -0
  1131. package/src/attachments.ts +469 -0
  1132. package/src/audit-logs.ts +355 -0
  1133. package/src/bot-runner.ts +91 -0
  1134. package/src/builders.ts +390 -0
  1135. package/src/cache.ts +190 -0
  1136. package/src/channels.ts +1051 -0
  1137. package/src/cli.ts +60 -0
  1138. package/src/client.ts +663 -0
  1139. package/src/collectors.ts +248 -0
  1140. package/src/colors.ts +91 -0
  1141. package/src/command-arguments.ts +432 -0
  1142. package/src/command-help.ts +55 -0
  1143. package/src/commands.ts +403 -0
  1144. package/src/counts.ts +160 -0
  1145. package/src/default-commands.ts +1147 -0
  1146. package/src/default-supervisor.ts +484 -0
  1147. package/src/discovery.ts +241 -0
  1148. package/src/effect-testing.ts +603 -0
  1149. package/src/effect.ts +751 -0
  1150. package/src/embeds.ts +253 -0
  1151. package/src/error-tools.ts +191 -0
  1152. package/src/errors.ts +849 -0
  1153. package/src/events.ts +830 -0
  1154. package/src/expressions.ts +198 -0
  1155. package/src/failures.ts +55 -0
  1156. package/src/gateway.ts +86 -0
  1157. package/src/guilds.ts +1108 -0
  1158. package/src/helpers.ts +836 -0
  1159. package/src/index.ts +796 -0
  1160. package/src/input-validation.ts +94 -0
  1161. package/src/instance.ts +111 -0
  1162. package/src/internal/agents-section.ts +114 -0
  1163. package/src/internal/application.ts +51 -0
  1164. package/src/internal/attachment-refresh.ts +57 -0
  1165. package/src/internal/attachments.ts +313 -0
  1166. package/src/internal/audit-logs.ts +336 -0
  1167. package/src/internal/audit.ts +33 -0
  1168. package/src/internal/binding/default-adapters.ts +482 -0
  1169. package/src/internal/binding/default.ts +155 -0
  1170. package/src/internal/binding/execute.ts +221 -0
  1171. package/src/internal/binding/native-adapters.ts +199 -0
  1172. package/src/internal/binding/native.ts +72 -0
  1173. package/src/internal/binding/operations.ts +1171 -0
  1174. package/src/internal/bot-runner.ts +480 -0
  1175. package/src/internal/cache-changes.ts +363 -0
  1176. package/src/internal/cache.ts +323 -0
  1177. package/src/internal/calls.ts +119 -0
  1178. package/src/internal/channel-cache.ts +435 -0
  1179. package/src/internal/channel-decode.ts +399 -0
  1180. package/src/internal/channels.ts +874 -0
  1181. package/src/internal/client/backoff.ts +69 -0
  1182. package/src/internal/client/configuration-fields.ts +18 -0
  1183. package/src/internal/client/drain.ts +150 -0
  1184. package/src/internal/client/intake.ts +228 -0
  1185. package/src/internal/client/lifetime.ts +165 -0
  1186. package/src/internal/client/shard-loop.ts +586 -0
  1187. package/src/internal/client-registry.ts +35 -0
  1188. package/src/internal/client.ts +2448 -0
  1189. package/src/internal/clock.ts +11 -0
  1190. package/src/internal/code-catalogue.ts +739 -0
  1191. package/src/internal/collector.ts +452 -0
  1192. package/src/internal/command-arguments.ts +585 -0
  1193. package/src/internal/command-guards.ts +96 -0
  1194. package/src/internal/command-help.ts +156 -0
  1195. package/src/internal/commands.ts +1319 -0
  1196. package/src/internal/configuration.ts +529 -0
  1197. package/src/internal/counts.ts +471 -0
  1198. package/src/internal/decode/primitives.ts +67 -0
  1199. package/src/internal/decode/timestamp.ts +29 -0
  1200. package/src/internal/decode/trace.ts +65 -0
  1201. package/src/internal/defects.ts +115 -0
  1202. package/src/internal/effect-failures.ts +65 -0
  1203. package/src/internal/embeds.ts +355 -0
  1204. package/src/internal/events.ts +1345 -0
  1205. package/src/internal/expiry-queue.ts +148 -0
  1206. package/src/internal/expressions.ts +415 -0
  1207. package/src/internal/failures.ts +492 -0
  1208. package/src/internal/field-text.ts +40 -0
  1209. package/src/internal/gateway/commands.ts +328 -0
  1210. package/src/internal/gateway/dispatch-table.ts +383 -0
  1211. package/src/internal/gateway/event-dispatches.ts +201 -0
  1212. package/src/internal/gateway/frames.ts +176 -0
  1213. package/src/internal/gateway/options.ts +144 -0
  1214. package/src/internal/gateway/session.ts +625 -0
  1215. package/src/internal/gateway-requests.ts +26 -0
  1216. package/src/internal/gateway.ts +22 -0
  1217. package/src/internal/guild-cache.ts +424 -0
  1218. package/src/internal/guild-discovery.ts +332 -0
  1219. package/src/internal/guild-lifecycle.ts +128 -0
  1220. package/src/internal/guild-settings.ts +209 -0
  1221. package/src/internal/guilds.ts +949 -0
  1222. package/src/internal/init-command.ts +305 -0
  1223. package/src/internal/instance.ts +645 -0
  1224. package/src/internal/invalid-callback-return.ts +28 -0
  1225. package/src/internal/invites.ts +234 -0
  1226. package/src/internal/logging.ts +1007 -0
  1227. package/src/internal/logical-scheduler.ts +139 -0
  1228. package/src/internal/masking.ts +224 -0
  1229. package/src/internal/member-chunks.ts +649 -0
  1230. package/src/internal/member-search-workflow.ts +237 -0
  1231. package/src/internal/member-search.ts +272 -0
  1232. package/src/internal/message-cleanup.ts +515 -0
  1233. package/src/internal/message-fields.ts +71 -0
  1234. package/src/internal/message-search-workflow.ts +166 -0
  1235. package/src/internal/message-search.ts +476 -0
  1236. package/src/internal/message.ts +879 -0
  1237. package/src/internal/metrics.ts +55 -0
  1238. package/src/internal/moderation.ts +288 -0
  1239. package/src/internal/multipart.ts +171 -0
  1240. package/src/internal/node-version.ts +22 -0
  1241. package/src/internal/oauth.ts +1146 -0
  1242. package/src/internal/observer.ts +62 -0
  1243. package/src/internal/operation-signal.ts +26 -0
  1244. package/src/internal/pagination.ts +494 -0
  1245. package/src/internal/permission-requirements.ts +359 -0
  1246. package/src/internal/permissions.ts +417 -0
  1247. package/src/internal/pins.ts +115 -0
  1248. package/src/internal/presence.ts +745 -0
  1249. package/src/internal/protocol/gateway.ts +299 -0
  1250. package/src/internal/rate-limit-templates.ts +138 -0
  1251. package/src/internal/rate-limits.ts +346 -0
  1252. package/src/internal/reaction-collector.ts +499 -0
  1253. package/src/internal/reaction-pages.ts +260 -0
  1254. package/src/internal/reactions.ts +174 -0
  1255. package/src/internal/rejection-scope.ts +119 -0
  1256. package/src/internal/response-json.ts +76 -0
  1257. package/src/internal/rest/admission.ts +210 -0
  1258. package/src/internal/rest/attempt.ts +617 -0
  1259. package/src/internal/rest/classify.ts +391 -0
  1260. package/src/internal/rest/download.ts +658 -0
  1261. package/src/internal/rest/options.ts +145 -0
  1262. package/src/internal/rest/owner.ts +1828 -0
  1263. package/src/internal/rest/request.ts +289 -0
  1264. package/src/internal/rest.ts +9 -0
  1265. package/src/internal/retention-age.ts +33 -0
  1266. package/src/internal/role-hierarchy-workflow.ts +150 -0
  1267. package/src/internal/role-hierarchy.ts +93 -0
  1268. package/src/internal/scheduled-tasks.ts +217 -0
  1269. package/src/internal/sharding.ts +270 -0
  1270. package/src/internal/starter-project.ts +251 -0
  1271. package/src/internal/suggest.ts +50 -0
  1272. package/src/internal/supervisor.ts +2253 -0
  1273. package/src/internal/testing/discovery.ts +23 -0
  1274. package/src/internal/testing/errors.ts +67 -0
  1275. package/src/internal/testing/fixtures.ts +714 -0
  1276. package/src/internal/testing/gateway.ts +305 -0
  1277. package/src/internal/testing/harness.ts +328 -0
  1278. package/src/internal/testing/http.ts +395 -0
  1279. package/src/internal/testing/types.ts +240 -0
  1280. package/src/internal/testing/wait.ts +63 -0
  1281. package/src/internal/thread-events.ts +128 -0
  1282. package/src/internal/threads.ts +718 -0
  1283. package/src/internal/transfer-source.ts +359 -0
  1284. package/src/internal/transport/http.ts +46 -0
  1285. package/src/internal/transport/index.ts +23 -0
  1286. package/src/internal/transport/socket.ts +71 -0
  1287. package/src/internal/transport/user-agent.ts +46 -0
  1288. package/src/internal/uploads.ts +111 -0
  1289. package/src/internal/user-cache.ts +294 -0
  1290. package/src/internal/users.ts +402 -0
  1291. package/src/internal/vanity-url.ts +80 -0
  1292. package/src/internal/webhooks.ts +690 -0
  1293. package/src/invites.ts +87 -0
  1294. package/src/logging.ts +247 -0
  1295. package/src/member-chunks.ts +195 -0
  1296. package/src/member-search.ts +152 -0
  1297. package/src/message-cleanup.ts +308 -0
  1298. package/src/message-errors.ts +245 -0
  1299. package/src/message-search.ts +213 -0
  1300. package/src/messages.ts +768 -0
  1301. package/src/native-commands.ts +1249 -0
  1302. package/src/native-supervisor.ts +345 -0
  1303. package/src/oauth.ts +413 -0
  1304. package/src/observer.ts +118 -0
  1305. package/src/pagination.ts +172 -0
  1306. package/src/permissions.ts +74 -0
  1307. package/src/pins.ts +65 -0
  1308. package/src/presence.ts +124 -0
  1309. package/src/reaction-pages.ts +106 -0
  1310. package/src/reactions.ts +126 -0
  1311. package/src/rest.ts +282 -0
  1312. package/src/role-hierarchy.ts +127 -0
  1313. package/src/sharding.ts +272 -0
  1314. package/src/supervisor.ts +460 -0
  1315. package/src/testing.ts +424 -0
  1316. package/src/text.ts +76 -0
  1317. package/src/threads.ts +274 -0
  1318. package/src/users.ts +237 -0
  1319. package/src/webhooks.ts +512 -0
@@ -0,0 +1,898 @@
1
+ import type { MessageSearchContext, MessageSearchIterationLimits, MessageSearchPage, MessageSearchQuery, DefaultMessageSearchOptions } from "#sdk/message-search";
2
+ import type { PaginationError, HistoryIterationQuery, UserIterationQuery, PinIterationQuery } from "#sdk/pagination";
3
+ import type { ReactionEmojiInput, ReactionUsersQuery, ReactionUsersPage } from "#sdk/reactions";
4
+ import type { ResultAsync, Result } from "neverthrow";
5
+ import type { CancelledError, ConfigurationError } from "#sdk/errors";
6
+ import type { MessagePinsQuery, MessagePinsPage } from "#sdk/pins";
7
+ import type { DefaultReactionCollectorOptions, DefaultCollectorOptions } from "#sdk/collectors";
8
+ import type { MessageOperationFailure, SendError } from "#sdk/message-errors";
9
+ import type { MessageCleanupFailure, MessageCleanupPlan, MessageCleanupReport, MessageCleanupSelection, DefaultMessageCleanupOptions } from "#sdk/message-cleanup";
10
+ import type { EditMessageInput, ForwardMessageInput, MessageHistoryQuery, Message, MessageCore, MessageReference, CrosspostSource, MessageInput, ReplyInput, DefaultMessageOperationOptions, DefaultMessageAuditOperationOptions, DefaultOwnMessageDeletionOptions, DefaultSendOptions } from "#sdk/messages";
11
+ import type { Collector, ReactionCollector } from "./collectors.js";
12
+ import type { DefaultChannelPaginateOptions, PageInput, PaginateFailure, PaginateResult } from "#sdk/reaction-pages";
13
+ /**
14
+ * Read, send and change messages with client.messages, or collect future messages and reactions.
15
+ * HTTP operations and local get lookups do not need a gateway connection.
16
+ * Received messages are frozen copies. They do not update when Fluxer changes.
17
+ * Their fields follow this client's messageFields selection, which defaults to the full Message.
18
+ * That selection also applies to nested messages, callbacks and cached snapshots.
19
+ * The delete, deleteMany, pin and unpin methods accept DefaultMessageAuditOperationOptions.
20
+ * Other message operations reject auditReason
21
+ *
22
+ * @remarks
23
+ * Remote calls start when called and normally return ResultAsync. Await one to get Ok or Err.
24
+ * The default timeoutMs is the client's rest.defaultTimeoutMs, 30,000 unless configured, for the whole call, including queue, rate-limit and retry waits.
25
+ * The SDK waits for request cleanup afterward, so the timeout is not a hard cleanup time limit.
26
+ * By default this client runs four REST or upload requests at once per local shard, up to 64 (rest.concurrency), and four separate attachment downloads (rest.mediaConcurrency).
27
+ * Both pools together allow at most 256 waiting requests or 4 MiB of queued JSON bodies by default.
28
+ * The rest client option changes these limits.
29
+ * These limits apply across the shards assigned to this client
30
+ *
31
+ * The fetch, fetchCrosspostSource, fetchHistory, fetchReactionUsers and fetchPins methods retry transport failures and HTTP 500, 502, 503 or 504 at most twice.
32
+ * The retry delays are 125–250 ms, then 250–500 ms, or a longer valid Retry-After.
33
+ * Retries use the same target and query and never reset the deadline. When a retry could not start before the deadline, the received failure is returned at once.
34
+ * Results can change between attempts.
35
+ * Confirmed HTTP 429 rejections have separate route and global waits and do not consume those two retries.
36
+ * Writes retry only confirmed rate-limit rejections. A write with no clear result may already have succeeded and is not retried.
37
+ * Other rejections and malformed successes are not retried.
38
+ * Successful JSON bodies are limited to 16 MiB before parsing, not total memory usage
39
+ *
40
+ * Expected failures return Err.
41
+ * Unexpected SDK or cleanup failures reject with SdkDefect, or throw from synchronous get.
42
+ * An aborted signal returns CancelledError.
43
+ * Closing the client makes pending and new operations fail with ClientClosedError.
44
+ * After a write is sent, cancellation or closure can leave the change applied, and neither proves rollback.
45
+ * Collectors need a ready gateway connection as described on collect and collectReactions
46
+ *
47
+ * @category Messages
48
+ */
49
+ export interface Messages<M extends MessageCore = Message> {
50
+ /**
51
+ * Publish an ordinary source message from an announcement channel and return its frozen updated snapshot.
52
+ * Fluxer requires announcements and message sending enabled, SendMessages, and ManageMessages for another author's message.
53
+ * Replies, system messages, already published messages, published copies and forwarded messages cannot be published.
54
+ * Fluxer enforces moderation and a shared per-channel publication budget of 10 messages per hour
55
+ *
56
+ * Success means publication was accepted and follower delivery was queued, not that every target received a copy.
57
+ * Fluxer sets Crossposted, visible in flags when this client's messageFields selection retains flags.
58
+ * A successful response updates the enabled source-message cache without inserting guessed follower copies.
59
+ * An unknown outcome evicts the cached source. A lost or malformed response is never resent automatically.
60
+ * Cancellation after dispatch cannot establish rollback. No gateway event is awaited and auditReason is not supported
61
+ */
62
+ publish(target: MessageReference, options?: DefaultMessageOperationOptions): ResultAsync<M, MessageOperationFailure | CancelledError | ConfigurationError>;
63
+ /**
64
+ * Fetch frozen public source-community metadata for a published copy or a ChannelFollowAdd notice.
65
+ * Fluxer applies ordinary message access checks and returns UNKNOWN_MESSAGE for other targets, including a published source.
66
+ * The profile reflects the community when fetched, not when the original message was published.
67
+ * It preserves public badge feature strings, including unknown values, and unavailable approximate counts as null, never zero.
68
+ * Counts can be cached upstream for up to 60 seconds
69
+ *
70
+ * This is not a complete Guild and never populates community or message caches.
71
+ * No original-message fetch, gateway connection or subscription is required. The auditReason option is not supported
72
+ */
73
+ fetchCrosspostSource(target: MessageReference, options?: DefaultMessageOperationOptions): ResultAsync<CrosspostSource, MessageOperationFailure | CancelledError | ConfigurationError>;
74
+ /**
75
+ * Read older messages newest first, without connecting the gateway.
76
+ * The maxItems option is required, and pageSize and maxPages use the limits in PaginationQuery.
77
+ * Creating the result makes no request.
78
+ * Each consumption copies the inputs and has independent progress.
79
+ * The SDK keeps one page at a time and fetches the next only when needed.
80
+ * Items are frozen message snapshots.
81
+ * The timeoutMs option applies to each page, not to the whole scan.
82
+ * Remote errors identify fetchHistory, and PaginationError reports invalid input, cursorStalled or pageLimit.
83
+ * An empty page or maxItems ends the scan, while a short page does not, and pages are not a consistent snapshot.
84
+ * If message caching is enabled, page reads can populate it as fetchHistory does.
85
+ * Client closure releases the buffer and fails the next pull.
86
+ * Messages already delivered to the caller are not rolled back, and caller processing is not retried
87
+ *
88
+ * @remarks
89
+ * Consume the iterable with a for await loop, which starts the first request.
90
+ * An expected failure yields one Err and ends iteration.
91
+ * Breaking the loop releases the buffered page.
92
+ * Abort interrupts pending request work and waits for cleanup.
93
+ * Completion and early exit leave no listener registered.
94
+ * Unexpected SDK failures, or an operation failure combined with a cleanup failure, reject with SdkDefect
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * import type { Client } from "@neontechspace/fluxerly"
99
+ * export async function paginationHistoryExample(client: Client, channelId: string) {
100
+ * for await (const result of client.messages.iterateHistory(channelId, { maxItems: 500 })) {
101
+ * if (result.isErr()) return result
102
+ * if (result.value.content === "stop") break
103
+ * }
104
+ * }
105
+ * ```
106
+ */
107
+ iterateHistory(channelId: string, query: HistoryIterationQuery, options?: DefaultMessageOperationOptions): AsyncIterable<Result<M, MessageOperationFailure | PaginationError | CancelledError | ConfigurationError>>;
108
+ /**
109
+ * Search messages in one explicit community or channel and return one page from Fluxer's search index.
110
+ * The SDK always sends the current search scope (`scope: "current"`).
111
+ * It neither connects the gateway nor reads or fills a cache
112
+ *
113
+ * The result is a frozen page or an indexing state.
114
+ * The indexing result means Fluxer accepted the search but is not ready, and the SDK never polls.
115
+ * The caller decides whether and when to search again.
116
+ * Use page numbers from 1 through 400 for later requests, keeping limit unchanged.
117
+ * Fluxer does not honor returned cursors, so the SDK exposes no cursor continuation
118
+ *
119
+ * Recognized query fields, including inherited and nonenumerable fields, are read and their arrays copied when execution starts.
120
+ * The results and their channel context can change and are not a stable snapshot.
121
+ * Invalid input, POST failure or malformed success fails with MessageOperationError operation search.
122
+ * Search does not use the transient read retries described for this namespace, but confirmed rate-limit handling still applies within the deadline.
123
+ * Cancellation releases only this request
124
+ *
125
+ * @example
126
+ * ```ts
127
+ * import type { Client } from "@neontechspace/fluxerly"
128
+ * export async function messageSearchPageExample(client: Client, channelId: string) {
129
+ * const page = await client.messages.search({ channelId }, { content: "release notes" })
130
+ * return page.isOk() && !page.value.indexing ? page.value.messages : page
131
+ * }
132
+ * ```
133
+ */
134
+ search(context: MessageSearchContext, query?: MessageSearchQuery, options?: DefaultMessageSearchOptions): ResultAsync<MessageSearchPage<M>, MessageOperationFailure | CancelledError | ConfigurationError>;
135
+ /**
136
+ * Read indexed search hits from the supplied community or channel context, following numbered pages without polling, prefetching or cache population.
137
+ * The maxItems option is required, pageSize accepts 1–25, and maxPages defaults to 100.
138
+ * Each consumption copies the filters, including recognized inherited and nonenumerable fields and their arrays, and holds one page at a time.
139
+ * Request capacity stays at the smaller of pageSize and maxItems throughout the scan, and at most maxItems hits are delivered.
140
+ * Reaching maxPages or Fluxer's 400-page ceiling with more matches fails with PaginationError pageLimit.
141
+ * An unexpected echoed page number or capacity fails with cursorStalled, and index changes can still skip or repeat observations.
142
+ * An indexing response fails with PaginationError indexing rather than polling or claiming an empty result.
143
+ * Search hits do not trigger full-message fetches.
144
+ * Delivered hits remain with the caller after a later failure
145
+ *
146
+ * @remarks
147
+ * Consume the iterable with a for await loop, which starts the first request.
148
+ * An expected failure yields one Err and ends iteration.
149
+ * Breaking the loop releases the buffered page.
150
+ * Abort interrupts pending request work and waits for cleanup
151
+ *
152
+ * @example
153
+ * ```ts
154
+ * import type { Client } from "@neontechspace/fluxerly"
155
+ * export async function messageSearchTraversalExample(client: Client, guildId: string) {
156
+ * for await (const hit of client.messages.iterateSearch({ guildId }, { content: "todo" }, { maxItems: 100 })) {
157
+ * if (hit.isErr()) return hit
158
+ * }
159
+ * }
160
+ * ```
161
+ */
162
+ iterateSearch(context: MessageSearchContext, filters: Omit<MessageSearchQuery, "limit" | "page">, limits: MessageSearchIterationLimits, options?: DefaultMessageSearchOptions): AsyncIterable<Result<M, MessageOperationFailure | PaginationError | CancelledError | ConfigurationError>>;
163
+ /**
164
+ * Read users who reacted with one selected emoji, in ascending user-ID order.
165
+ * Pass a literal Unicode emoji or custom emoji input, plus maxItems to bound the scan.
166
+ * Like iterateHistory, this is lazy and keeps bounded results.
167
+ * The timeoutMs option applies to each fetchReactionUsers page, and remote errors identify that operation.
168
+ * The scan ends at maxItems or hasMore false, without caching reactors or fetching members.
169
+ * Reactions may change during the scan.
170
+ * Not finding a user within the bound does not prove the user never reacted
171
+ *
172
+ * @remarks
173
+ * Consume the iterable with a for await loop, which starts the first request.
174
+ * An expected failure yields one Err and ends iteration.
175
+ * Breaking the loop releases the buffered page.
176
+ * Abort interrupts pending request work and waits for cleanup
177
+ *
178
+ * @example
179
+ * ```ts
180
+ * import type { Client, MessageReference } from "@neontechspace/fluxerly"
181
+ * export async function paginationReactionExample(client: Client, message: MessageReference, userId: string) {
182
+ * for await (const result of client.messages.iterateReactionUsers(message, "👍", { maxItems: 500 })) {
183
+ * if (result.isErr()) return result
184
+ * if (result.value.id === userId) return result
185
+ * }
186
+ * return undefined
187
+ * }
188
+ * ```
189
+ */
190
+ iterateReactionUsers(message: MessageReference, emoji: ReactionEmojiInput, query: UserIterationQuery, options?: DefaultMessageOperationOptions): AsyncIterable<Result<import("#sdk/reactions").ReactionUser, MessageOperationFailure | PaginationError | CancelledError | ConfigurationError>>;
191
+ /**
192
+ * Read pinned messages newest pin first, without adding message cache entries.
193
+ * Pass maxItems to bound the scan, and PinIterationQuery defines the remaining limits.
194
+ * Like iterateHistory, this is lazy, with timeoutMs applying to each fetchPins page, and remote errors identify that operation.
195
+ * At most maxItems IDs are kept to skip duplicates.
196
+ * Valid items on a stalled page can be delivered before cursorStalled on the next pull.
197
+ * The scan stops at maxItems or hasMore false.
198
+ * Cursor progress uses the full fractional timestamp precision and compares equivalent timezone offsets as the same instant.
199
+ * Pins with equal timestamps can prevent a complete scan even without concurrent edits
200
+ *
201
+ * @remarks
202
+ * Consume the iterable with a for await loop, which starts the first request.
203
+ * An expected failure yields one Err and ends iteration.
204
+ * Breaking the loop releases the buffered page.
205
+ * Abort interrupts pending request work and waits for cleanup
206
+ *
207
+ * @example
208
+ * ```ts
209
+ * import type { Client } from "@neontechspace/fluxerly"
210
+ * export async function paginationPinsExample(client: Client, channelId: string) {
211
+ * const ids: string[] = []
212
+ * for await (const result of client.messages.iteratePins(channelId, { maxItems: 20 })) {
213
+ * if (result.isErr()) return result
214
+ * ids.push(result.value.message.id)
215
+ * }
216
+ * return ids
217
+ * }
218
+ * ```
219
+ */
220
+ iteratePins(channelId: string, query: PinIterationQuery, options?: DefaultMessageOperationOptions): AsyncIterable<Result<import("#sdk/pins").MessagePin<M>, MessageOperationFailure | PaginationError | CancelledError | ConfigurationError>>;
221
+ /**
222
+ * Pin a message using its decimal id and channelId.
223
+ * Success follows HTTP 204, not gateway notification.
224
+ * No gateway connection is required
225
+ *
226
+ * The auditReason option supplies an optional community audit-log explanation.
227
+ * Fluxer checks channel access and PIN_MESSAGES for community pins.
228
+ * A new pin creates a system message and notifications.
229
+ * An already-pinned message stays unchanged.
230
+ * The pin, unpin and fetchPins methods share the per-channel pins rate limit and the client's request limits.
231
+ * The default deadline is the client's rest.defaultTimeoutMs, 30,000 ms unless configured, and only confirmed HTTP 429 rejections are retried
232
+ *
233
+ * Expected failures use MessageOperationError operation pin, or ClientClosedError after shutdown.
234
+ * Invalid local input fails with outcome notDispatched.
235
+ * Cancellation or a lost response after sending the request can leave the pin applied.
236
+ * Successful writes and writes with unknown outcomes remove the cached target without guessing its new pinned status.
237
+ * The SDK does not fetch to confirm, create events itself, unpin automatically or roll back the change.
238
+ * The example's steps are separate operations, not a transaction
239
+ *
240
+ * @example
241
+ * ```ts
242
+ * import type { Client, MessageReference } from "@neontechspace/fluxerly"
243
+ *
244
+ * export async function pinsExample(client: Client, message: MessageReference) {
245
+ * const pinned = await client.messages.pin(message)
246
+ * if (pinned.isErr()) throw pinned.error
247
+ * const page = await client.messages.fetchPins(message.channelId, { limit: 25 })
248
+ * if (page.isErr()) throw page.error
249
+ * const unpinned = await client.messages.unpin(message)
250
+ * if (unpinned.isErr()) throw unpinned.error
251
+ * return page.value
252
+ * }
253
+ * ```
254
+ */
255
+ pin(message: MessageReference, options?: DefaultMessageAuditOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
256
+ /**
257
+ * Remove a pin without deleting the message or its pin-created system message.
258
+ * Supply a decimal message id and channelId.
259
+ * Fluxer checks the same permissions as pin.
260
+ * Success follows HTTP 204, including when the message is already unpinned.
261
+ * The last-pin timestamp is not reset.
262
+ * The auditReason option supplies an optional community audit-log explanation.
263
+ * The pin method's request limits, deadline, rate-limit retries, cancellation and cache removal also apply.
264
+ * Expected failures identify operation unpin, and client closure fails with ClientClosedError.
265
+ * No gateway connection, confirmation fetch, event synthesis or automatic rollback is performed
266
+ */
267
+ unpin(message: MessageReference, options?: DefaultMessageAuditOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
268
+ /**
269
+ * Fetch one frozen page of pinned messages in descending pin-time order.
270
+ * Use a decimal channel ID.
271
+ * The limit option defaults to 50 and accepts 1–50.
272
+ * The before option is an ISO timestamp and defaults to the server's current time
273
+ *
274
+ * Use nextBefore for the next page and pinnedAt for each pin's time.
275
+ * Page ordering and the before bound use every fractional digit and normalize timezone offsets, while equal instants remain valid.
276
+ * Equal timestamps can repeat messages, so skip duplicate IDs and stop if the cursor does not advance.
277
+ * This call neither traverses further pages nor reads or populates the message cache.
278
+ * Visibility and history permissions can limit the page, so an empty page does not prove there are no pins.
279
+ * Returned messages are snapshots, not live state
280
+ *
281
+ * The call uses the pins rate limit, the client's default deadline (rest.defaultTimeoutMs, 30,000 ms unless configured) and the namespace's bounded read retries.
282
+ * Invalid input or malformed responses fail with MessageOperationError operation fetchPins, not a partial page.
283
+ * Client closure fails with ClientClosedError, and cancellation affects this request only
284
+ */
285
+ fetchPins(channelId: string, query?: MessagePinsQuery, options?: DefaultMessageOperationOptions): ResultAsync<MessagePinsPage<M>, MessageOperationFailure | CancelledError | ConfigurationError>;
286
+ /**
287
+ * Remove one user's reaction for one emoji, leaving other users and emoji groups unchanged.
288
+ * The userId input is required as a decimal string, and the bot's own ID removes its reaction.
289
+ * Accepts the same ReactionEmojiInput forms as addReaction
290
+ *
291
+ * Fluxer checks visibility and history access.
292
+ * For another user, the bot must have authored the message or have MANAGE_MESSAGES in its community.
293
+ * Success follows HTTP 204, whether the reaction was present or already absent, without waiting for or synthesizing events.
294
+ * The call uses addReaction's request limits, deadline, confirmed rate-limit retries and cancellation rules.
295
+ * Expected failures identify removeUserReaction.
296
+ * No reaction cache is changed or retained
297
+ *
298
+ * After dispatch, cancellation or a lost response can leave the reaction removed, and an unknown outcome is not replayed.
299
+ * The bot cannot restore another user's reaction as that user, and no restoration is attempted
300
+ *
301
+ * @example
302
+ * ```ts
303
+ * import type { Client, MessageReference } from "@neontechspace/fluxerly"
304
+ * export async function reactionModerationExample(client: Client, message: MessageReference, userId: string) {
305
+ * const removed = await client.messages.removeUserReaction(message, "👍", userId)
306
+ * if (removed.isErr()) return removed
307
+ * const cleared = await client.messages.clearReaction(message, "👍")
308
+ * if (cleared.isErr()) return cleared
309
+ * return client.messages.clearReactions(message)
310
+ * }
311
+ * ```
312
+ */
313
+ removeUserReaction(message: MessageReference, emoji: ReactionEmojiInput, userId: string, options?: DefaultMessageOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
314
+ /**
315
+ * Remove all users' reactions for one emoji on the message.
316
+ * Other emoji groups remain.
317
+ * Success follows HTTP 204, even if no matching reactions existed.
318
+ * The removeUserReaction method's permissions, request limits, deadline, failure and cleanup rules apply.
319
+ * Expected failures identify clearReaction.
320
+ * Fluxer emits a clear-emoji event, not individual removals, and the SDK does not create or wait for that event.
321
+ * Other users' reactions cannot be restored by the bot as those users
322
+ */
323
+ clearReaction(message: MessageReference, emoji: ReactionEmojiInput, options?: DefaultMessageOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
324
+ /**
325
+ * Remove all users' reactions for all emoji on the message, without deleting the message.
326
+ * No emoji selector is needed.
327
+ * Success follows HTTP 204, whether reactions existed or not.
328
+ * The clearReaction method's permissions, request limits, deadline, failure and cleanup rules apply.
329
+ * Expected failures identify clearReactions.
330
+ * Fluxer emits one clear-all event, and the SDK does not create per-emoji or per-user events or wait for notification.
331
+ * Other users' reactions cannot be restored by the bot as those users
332
+ */
333
+ clearReactions(message: MessageReference, options?: DefaultMessageOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
334
+ /**
335
+ * Fetch one page of users who currently have a selected reaction on the message.
336
+ * Accepts the same ReactionEmojiInput forms as addReaction.
337
+ * The limit option defaults to 25 and accepts 1–100.
338
+ * The after option is an exclusive user-ID cursor.
339
+ * Users are ordered by ascending ID, not reaction time.
340
+ * Use nextAfter for another page
341
+ *
342
+ * An empty reaction produces an empty terminal page.
343
+ * No automatic page traversal, user cache or message cache update is performed.
344
+ * Pages can change between requests, so they are not a stable voter list.
345
+ * This call shares the channel reaction rate limit and the client's default deadline (rest.defaultTimeoutMs, 30,000 ms unless configured), which timeoutMs overrides.
346
+ * The namespace's bounded read retries apply within the original deadline
347
+ *
348
+ * Invalid input, malformed pages, HTTP failures and timeout fail with MessageOperationError for fetchReactionUsers.
349
+ * HTTP 404 is notFound.
350
+ * Fluxer decides visibility and history access.
351
+ * No gateway connection is needed, and cancellation waits for request cleanup
352
+ *
353
+ * @example
354
+ * ```ts
355
+ * import type { Client, MessageReference } from "@neontechspace/fluxerly"
356
+ * export async function reactionUsersExample(client: Client, message: MessageReference) {
357
+ * const result = await client.messages.fetchReactionUsers(message, "👍", { limit: 25 })
358
+ * if (result.isErr() || result.value.nextAfter === null) return result
359
+ * return client.messages.fetchReactionUsers(message, "👍", { after: result.value.nextAfter })
360
+ * }
361
+ * ```
362
+ */
363
+ fetchReactionUsers(message: MessageReference, emoji: ReactionEmojiInput, query?: ReactionUsersQuery, options?: DefaultMessageOperationOptions): ResultAsync<ReactionUsersPage, MessageOperationFailure | CancelledError | ConfigurationError>;
364
+ /**
365
+ * Add the bot's own reaction to a message.
366
+ * Pass Unicode such as "👍", custom markup such as "<a:party:123>", a parsed custom emoji, or a received emoji snapshot.
367
+ * ReactionEmojiInput defines accepted identities and local validation, and custom emoji are encoded as name:id.
368
+ * Fluxer decides emoji availability and permissions.
369
+ * Adding the same own reaction again leaves it present.
370
+ * Success follows HTTP 204, without waiting for or synthesizing a gateway event, and no gateway connection is required.
371
+ * The request uses a per-channel reaction rate limit separate from message operations, the client's request limits and the client's default deadline (rest.defaultTimeoutMs, 30,000 ms unless configured).
372
+ * Only confirmed rate-limit rejections retry, and unknown outcomes are never retried.
373
+ * Cancellation after dispatch cannot undo the reaction.
374
+ * Expected failures use MessageOperationError, or ClientClosedError after closure.
375
+ * The SDK does not retain reaction state, counts or reactor lists
376
+ *
377
+ * @example
378
+ * ```ts
379
+ * import type { Client, MessageReference } from "@neontechspace/fluxerly"
380
+ * export async function reactionExample(client: Client, message: MessageReference) {
381
+ * const added = await client.messages.addReaction(message, "👍")
382
+ * if (added.isErr()) return added
383
+ * return client.messages.removeReaction(message, "👍")
384
+ * }
385
+ * ```
386
+ */
387
+ addReaction(message: MessageReference, emoji: ReactionEmojiInput, options?: DefaultMessageOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
388
+ /**
389
+ * Remove only the bot's own reaction for the selected emoji.
390
+ * Other users' reactions stay unchanged.
391
+ * Success follows HTTP 204, even if the bot had not reacted, so it does not prove the reaction existed.
392
+ * The addReaction method's emoji inputs, request limits, deadline, retry, failure and cancellation rules apply.
393
+ * Neither this operation nor gateway reaction events change the message cache
394
+ */
395
+ removeReaction(message: MessageReference, emoji: ReactionEmojiInput, options?: DefaultMessageOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
396
+ /**
397
+ * Collect a bounded set of future messageCreate events from one channel.
398
+ * Register before sending a prompt.
399
+ * It does not fetch history, read the cache, connect the client or match replies to a prompt automatically.
400
+ * With guildId, only that community's ready shard assigned to this client can feed the collector, and events with a known conflicting community are discarded without a channel lookup.
401
+ * Without guildId, the client must be Connected, and any gateway gap ends collection because the community is unknown.
402
+ * A gap fails with CollectorError connectionLost, even if the client later resumes, and collection is not restarted
403
+ *
404
+ * Defaults are one accepted message, a 30,000 ms lifetime and 4 MiB of retained selected-message JSON.
405
+ * After channel selection and before filtering, the pending queue allows 256 payloads or 4 MiB of source JSON.
406
+ * Options are copied at registration.
407
+ * Budgets must be positive safe integers, and timeoutMs and optional idleMs must be at most 2,147,483,647 ms
408
+ *
409
+ * The total timeout starts at registration and never resets.
410
+ * The idleMs timer also starts at registration, then resets after each newly accepted message ID, before its callback.
411
+ * Rejected, queued or duplicate messages do not reset idleMs.
412
+ * Callback time counts toward both deadlines.
413
+ * The earlier deadline wins, with timeout winning ties.
414
+ * Messages processed at or after the deadline are excluded, including slow filter returns.
415
+ * Each accepted ID counts once, and later edits and deletions do not change collected snapshots
416
+ *
417
+ * The synchronous filter decides acceptance.
418
+ * Filter failure or queue or retained-byte overflow ends this collector with a failure, without partial messages.
419
+ * A slow synchronous filter blocks JavaScript and cannot be preempted.
420
+ * Optional onMessage runs sequentially after filtering, duplicate removal and the retained-byte check.
421
+ * Reaching maxMessages waits for the final callback, and later messages are ignored while it completes.
422
+ * Idle, timeout or stop can retain a message whose callback was cancelled.
423
+ * Pending budgets exclude the active message.
424
+ * Callback failure ends collection with CollectorError reason handler.
425
+ * Callbacks are not retried and their effects are not undone.
426
+ * Filter the bot out when callbacks send acknowledgements, to avoid collecting those acknowledgements
427
+ *
428
+ * Invalid options are misuse: The default API throws ConfigurationError and the native API dies with it.
429
+ * A client that is not ready returns a collector whose result is CollectorError notConnected, and a client that began
430
+ * shutting down, such as when a handler still running during shutdown registers, returns one whose result is
431
+ * ClientClosedError.
432
+ * A timeout can succeed with no messages.
433
+ * The application still manages the client's lifetime
434
+ *
435
+ * @remarks
436
+ * Returns a ready Collector handle synchronously.
437
+ * Return or await callback work, and closure waits for the callback promise. A callback that returns or resolves an Err result fails like a throw.
438
+ * The options.signal value controls the collection itself: Aborting it makes result return CancelledError, and a pre-aborted signal starts no collection.
439
+ * Use `await using` to close the collector when the block ends.
440
+ * Unexpected registration failures throw SdkDefect
441
+ *
442
+ * @example
443
+ * ```ts
444
+ * import { orThrow, type Client } from "@neontechspace/fluxerly"
445
+ *
446
+ * export async function askName(client: Client, channelId: string, userId: string) {
447
+ * await using collector = client.messages.collect(channelId, { filter: message => message.author.id === userId })
448
+ * orThrow(await client.messages.send(channelId, { content: "What name should the bot use?" }))
449
+ * return orThrow(await collector.result())
450
+ * }
451
+ * ```
452
+ *
453
+ * @example
454
+ * ```ts
455
+ * import type { Client } from "@neontechspace/fluxerly"
456
+ *
457
+ * export async function messageCollectorProgressExample(client: Client, channelId: string, userId: string) {
458
+ * const collector = client.messages.collect(channelId, {
459
+ * filter: message => message.author.id === userId,
460
+ * maxMessages: 3,
461
+ * idleMs: 5_000,
462
+ * // A failed reply is returned as an Err, which ends collection like a throw
463
+ * onMessage: (message, signal) => client.messages.reply(message, { content: "Reply received" }, { signal }),
464
+ * })
465
+ * return await collector.result()
466
+ * }
467
+ * ```
468
+ */
469
+ collect(channelId: string, options?: DefaultCollectorOptions<M>): Collector<M>;
470
+ /**
471
+ * Collect future reaction additions for one message.
472
+ * Use decimal id and channelId, and register before the expected reaction.
473
+ * This does not fetch existing reactors, verify the message remotely, read the cache or connect the client.
474
+ * With guildId, only that community's ready shard assigned to this client feeds the collector, and known conflicting event communities are discarded without a membership lookup.
475
+ * Without guildId, the client must be Connected and any gateway gap ends collection with connectionLost, without restarting it
476
+ *
477
+ * Defaults are one accepted addition, a 30,000 ms lifetime and 4 MiB of retained reaction JSON.
478
+ * The target and options are copied at registration.
479
+ * After message selection, the pending queue allows 256 payloads or 4 MiB of full source JSON.
480
+ * Optional emoji uses addReaction's input shape and is checked after queueing, before the synchronous filter.
481
+ * Unicode emoji match exact text without a custom ID, and custom emoji match by ID, ignoring name changes.
482
+ * An invalid emoji selector fails with ConfigurationError for emoji
483
+ *
484
+ * Single events and batch entries follow receive order.
485
+ * A batch uses one pending slot and its entries count individually.
486
+ * Repeated user and emoji pairs count again, and no batching flag is enabled.
487
+ * Removals, clears and message deletion neither undo additions nor stop collection, so this is not a vote tally
488
+ *
489
+ * The total timeout starts at registration and never resets, and excludes additions processed at or after it, including slow filter returns.
490
+ * Optional idleMs starts then too and resets after each accepted addition, before its callback.
491
+ * Rejected, queued and unprocessed batch entries do not reset it.
492
+ * Callback time counts, and the earlier deadline wins, with timeout winning ties.
493
+ * The timeoutMs and idleMs values must be integers from 1 through 2,147,483,647 ms
494
+ *
495
+ * Optional onReaction runs sequentially after acceptance and the retained-byte check.
496
+ * Limit completion waits for the final callback.
497
+ * Idle, timeout or stop can retain an addition whose callback was cancelled.
498
+ * Pending budgets exclude the active payload and its unprocessed batch entries.
499
+ * Callback failure ends collection with CollectorError reason handler, and no callback is retried or earlier effect undone.
500
+ * Filter or overflow failure ends with CollectorError without partial results.
501
+ * An invalid target or options are misuse: The default API throws ConfigurationError and the native API dies with it.
502
+ * A client that is not ready returns a collector whose result is CollectorError notConnected, and a client that began
503
+ * shutting down, such as when a handler still running during shutdown registers, returns one whose result is
504
+ * ClientClosedError.
505
+ * The example needs a connected client and an existing message, and idle or timeout may succeed with no reactions
506
+ *
507
+ * @remarks
508
+ * Returns a ready ReactionCollector synchronously.
509
+ * Closure waits for the callback's returned promise. A callback that returns or resolves an Err result fails like a throw.
510
+ * The options.signal value controls collection: Aborting it makes result return CancelledError, and a pre-aborted signal starts nothing.
511
+ * Use `await using` to close the collector when the block ends.
512
+ * Unexpected registration failures throw SdkDefect
513
+ *
514
+ * @example
515
+ * ```ts
516
+ * import { orThrow, type Client, type MessageReference } from "@neontechspace/fluxerly"
517
+ *
518
+ * export async function reactionCollectorExample(client: Client, message: MessageReference, userId: string) {
519
+ * let count = 0
520
+ * await using collector = client.messages.collectReactions(message, {
521
+ * maxReactions: 3,
522
+ * idleMs: 5_000,
523
+ * emoji: "✅",
524
+ * filter: reaction => reaction.userId === userId,
525
+ * onReaction: (_reaction, signal) =>
526
+ * client.messages.edit(message, { content: `Accepted additions: ${++count}` }, { signal }),
527
+ * })
528
+ * return orThrow(await collector.result())
529
+ * }
530
+ * ```
531
+ */
532
+ collectReactions(message: MessageReference, options?: DefaultReactionCollectorOptions): ReactionCollector;
533
+ /**
534
+ * Show several pages in one message that people flip with ◀ and ▶ reactions, because Fluxer has no buttons.
535
+ * Sends the first page, adds both arrows as the bot, then shows the previous or next page on each click, wrapping
536
+ * around at the ends. A single page is only sent, with reason singlePage and without arrows or listening.
537
+ * Pages and options are copied when the operation starts, and invalid ones fail with ConfigurationError before anything is sent
538
+ *
539
+ * The users option is required here, because no message identifies an asker. Pass account IDs, or a check such as `() => true` to let anyone flip.
540
+ * A command context's paginate defaults to the command's author instead.
541
+ * Adding or removing an arrow counts as one click, so only Add Reactions and Read Message History are needed.
542
+ * With removeClicks, only additions count and the bot removes the clicker's arrow after each change, which needs Manage Messages.
543
+ * Clicks are handled one at a time through messages.collectReactions machinery, with its connection requirement, pending-event budget and gateway-loss behavior
544
+ *
545
+ * Listening stops after idleMs without a click, 60,000 ms by default, and at most timeoutMs after registration, 300,000 ms by default.
546
+ * Cancellation also stops it, as described in the remarks.
547
+ * However it stops, the bot then removes only its own arrows, and the current page stays shown.
548
+ * Each send, edit and reaction request uses the client's default deadline, rate limits and retry rules, and is never replayed after an unknown outcome
549
+ *
550
+ * A failed page change, arrow or click removal stops listening and returns that failure after the arrows are removed.
551
+ * A users check that throws or returns a non-boolean fails with CollectorError reason filter and is reported to the client-level onError.
552
+ * A failure to remove the arrows is returned after an otherwise normal end, while an earlier failure or cancellation wins over it
553
+ *
554
+ * @remarks
555
+ * Aborting options.signal stops listening and returns CancelledError once the arrows are removed.
556
+ * The ResultAsync settles only after that cleanup. Unexpected SDK failures reject with SdkDefect
557
+ *
558
+ * @example
559
+ * ```ts
560
+ * import type { Client } from "@neontechspace/fluxerly"
561
+ * export function pagesExample(client: Client, channelId: string, userId: string) {
562
+ * return client.messages.paginate(channelId, ["First page", "Second page"], { users: [userId], idleMs: 30_000 })
563
+ * }
564
+ * ```
565
+ */
566
+ paginate(channelId: string, pages: readonly PageInput[], options: DefaultChannelPaginateOptions): ResultAsync<PaginateResult<M>, PaginateFailure | CancelledError>;
567
+ /**
568
+ * Look up a message in this client's cache, without an HTTP request.
569
+ * Pass decimal id and channelId, or an existing message with those fields.
570
+ * The result is undefined when caching is disabled or the entry is absent, expired, evicted or in a different channel.
571
+ * It does not mean Fluxer has no such message, so use fetch for a remote read.
572
+ * A hit is a frozen snapshot that can be stale.
573
+ * Lookup makes it more recently used without extending its age.
574
+ * An invalid reference is misuse: The default API throws MessageOperationError with operation messages.get and reason input, and the native API dies with it.
575
+ * A closing or closed client has no cache, so the result is undefined
576
+ *
577
+ * @remarks
578
+ * Returns the value synchronously.
579
+ * Unexpected failures throw SdkDefect
580
+ */
581
+ get(message: MessageReference): M | undefined;
582
+ /**
583
+ * Send text, embeds, files or stickers to a channel and return the created message.
584
+ * A plain string sends only that text, as shorthand for `{ content }`, and embeds accept plain objects or EmbedBuilder instances.
585
+ * Success follows the decoded HTTP response, not gateway notification or recipient acknowledgement, and no gateway connection is needed.
586
+ * Mentions are disabled by default, and allowedMentions opts in.
587
+ * Embed image and thumbnail URLs can use attachment://filename for a matching new image or video upload.
588
+ * The flags input accepts only MessageFlags.SuppressEmbeds and MessageFlags.SuppressNotifications.
589
+ * Server-managed flags, including the crosspost flags, fail locally before dispatch.
590
+ * Suppressing previews is different from omitting embeds
591
+ *
592
+ * Each attachment uses exactly one source: Bytes in data, a sized Blob or File source, or a finite stream with its exact byte count.
593
+ * Data bytes are copied when execution starts, before any wait.
594
+ * File and stream bytes are read when uploading starts, after upload planning, without copying or spooling.
595
+ * Keep a file source stable while it is read.
596
+ * A finite stream is consumed at most once and must match its declared size.
597
+ * A path string or URL alone is not accepted, and the SDK owns only the readers it acquires
598
+ *
599
+ * All sources have a 50 MiB per-file maximum and share the client uploads.maxBytes reservation budget.
600
+ * A full upload or request queue fails with busy before copying or reading.
601
+ * Fluxer can impose lower limits.
602
+ * Uploads use presigned planning or an inline multipart fallback.
603
+ * Cleanup releases copied bytes and cancels and releases acquired readers on failure.
604
+ * Failed uploads can leave temporary server data, without a guarantee of physical erasure.
605
+ * Eligible created messages can enter an enabled cache, independently of send completion
606
+ *
607
+ * The default total deadline, rest.defaultTimeoutMs (30,000 ms unless configured), includes waiting for request capacity and rate limits.
608
+ * The request uses the shared limits and failure rules of this namespace.
609
+ * By default one client admits four REST and upload requests per local shard, up to 64, plus four independent attachment downloads, and both pools share at most 256 pending requests or 4 MiB of pending JSON.
610
+ * The rest client option changes these limits.
611
+ * Only confirmed rate-limit rejections can retry automatically, and sends with unknown outcomes never retry.
612
+ * With inline multipart uploads, a confirmed HTTP 429 can replay copied data bytes only, while file and stream inputs fail with rateLimit instead of being read again
613
+ *
614
+ * The nonce input can be a 1–32 character string or a nonnegative safe integer.
615
+ * If omitted, the SDK creates one nonce per send execution, and the same nonce is reused for confirmed rate-limit retries.
616
+ * Fluxer tries to suppress duplicate sends for five minutes after saving a message.
617
+ * This does not guarantee that a repeated or concurrent send posts only one message.
618
+ * A lost response or cancellation after dispatch can leave a message posted, and the SDK neither retries nor rolls it back
619
+ */
620
+ send(channelId: string, input: MessageInput | string, options?: DefaultSendOptions): ResultAsync<M, SendError | CancelledError | ConfigurationError>;
621
+ /**
622
+ * Copy an accessible source message into the destination channel and return the new message.
623
+ * Pass the source reference in input.source.
624
+ * No source fetch or cache lookup is performed, and no gateway connection is required.
625
+ * Optional media selections must belong to the source.
626
+ * Extra content, files, mentions and flags are rejected.
627
+ * The result's messageSnapshots are frozen copies, not live views of later source edits
628
+ *
629
+ * Fluxer checks source access and destination permissions.
630
+ * This uses send's shared request limits, the client's default deadline (rest.defaultTimeoutMs, 30,000 ms unless configured) and optional destination-message caching.
631
+ * The nonce input follows send's accepted values, generated default and reuse on confirmed rate-limit retries.
632
+ * Fluxer's five-minute duplicate suppression is best effort, not exactly-once delivery.
633
+ * Success follows HTTP, not recipient acknowledgement.
634
+ * A lost response or cancellation can leave the forward posted.
635
+ * Only confirmed rate-limit rejection retries, and no write with an unknown outcome is replayed or rolled back.
636
+ * Expected failures are MessageError or ClientClosedError
637
+ *
638
+ * @example
639
+ * ```ts
640
+ * import type { Client, MessageReference } from "@neontechspace/fluxerly"
641
+ * export function forwardExample(client: Client, destinationId: string, source: MessageReference) {
642
+ * return client.messages.forward(destinationId, { source })
643
+ * }
644
+ * ```
645
+ */
646
+ forward(channelId: string, input: ForwardMessageInput, options?: DefaultSendOptions): ResultAsync<M, SendError | CancelledError | ConfigurationError>;
647
+ /**
648
+ * Show this bot's temporary typing indicator in a channel.
649
+ * Pass a decimal channel ID.
650
+ * Success follows HTTP 204, without waiting for another client to see it.
651
+ * No gateway connection, cache entry, local typing state or presence change is made.
652
+ * Fluxer decides delivery and when the indicator expires.
653
+ * This uses the client's request limits, a dedicated per-channel typing rate limit and the client's default deadline (rest.defaultTimeoutMs, 30,000 ms unless configured).
654
+ * Only confirmed rate-limit rejection retries.
655
+ * A lost response, timeout or cancellation can leave the indicator shown.
656
+ * Input, capacity and HTTP failures use MessageOperationError operation typing, and client closure fails with ClientClosedError.
657
+ * Cancellation waits for request cleanup
658
+ */
659
+ typing(channelId: string, options?: DefaultMessageOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
660
+ /**
661
+ * Keep the bot's typing indicator active while a task runs, returning the task's value.
662
+ * The first typing request must succeed before the task starts, and an initial failure prevents the task from running.
663
+ * Refreshes run no sooner than every 8,000 ms until the task settles, below Fluxer's documented limit of 20 requests per 10 seconds per channel.
664
+ * A later typing or client-close failure stops refreshes without interrupting the task, and is reported after the task settles.
665
+ * Client shutdown stops and waits for the helper's refresh work, not arbitrary application work.
666
+ * No detached refresh loop, cache entry, presence change or gateway state change is created
667
+ *
668
+ * @remarks
669
+ * The task is an async function that receives a signal aborted on caller cancellation or helper cleanup.
670
+ * The task must cooperate with that signal, because a promise that ignores it can delay cancellation.
671
+ * A thrown or rejected task rejects with SdkDefect rather than returning an expected Err.
672
+ * If task failure and refresh cleanup both fail, SdkDefect retains safe details for both
673
+ *
674
+ * @example
675
+ * ```ts
676
+ * import type { Client } from "@neontechspace/fluxerly"
677
+ * export async function typingExample(client: Client, channelId: string) {
678
+ * return await client.messages.keepTyping(channelId, async signal => {
679
+ * if (signal.aborted) throw new Error("work cancelled")
680
+ * return "prepared"
681
+ * })
682
+ * }
683
+ * ```
684
+ */
685
+ keepTyping<A>(channelId: string, task: (signal: AbortSignal) => PromiseLike<A>, options?: DefaultMessageOperationOptions): ResultAsync<A, MessageOperationFailure | CancelledError | ConfigurationError>;
686
+ /**
687
+ * Send a reply that references an existing message and return the new reply.
688
+ * A plain string replies with only that text, as shorthand for `{ content }`.
689
+ * Pass the target's id and channelId, plus the reply content or files.
690
+ * A missing target fails instead of silently sending an unreferenced message.
691
+ * An invalid target, or input with its own messageReference, fails before the client-closure check.
692
+ * The body is then validated as send validates it.
693
+ * Author notifications are off by default.
694
+ * The send method's mention defaults, attachment source handling, size limits, deadline, nonce and retry rules apply, and inline multipart 429 responses do not replay file or stream sources.
695
+ * Eligible replies can enter the message cache.
696
+ * A lost response can leave the reply posted, and the SDK does not replay a send with an unknown outcome
697
+ */
698
+ reply(message: MessageReference, input: ReplyInput | string, options?: DefaultSendOptions): ResultAsync<M, SendError | CancelledError | ConfigurationError>;
699
+ /**
700
+ * Fetch one message from Fluxer, rather than reading the cache.
701
+ * Pass a reference with id and channelId, or an existing Message.
702
+ * The result is a frozen snapshot after response decoding and target-ID checks.
703
+ * A missing target fails with MessageOperationError reason notFound, not an empty value.
704
+ * An enabled cache can retain eligible results, but a full cache does not prevent the read from succeeding.
705
+ * The namespace's bounded read retries apply, so no caller retry loop is needed for eligible transient failures.
706
+ * Cancellation stops this request only and waits for cleanup
707
+ *
708
+ * @example
709
+ * ```ts
710
+ * import type { Client, MessageReference } from "@neontechspace/fluxerly"
711
+ * export async function readExample(client: Client, message: MessageReference) {
712
+ * const result = await client.messages.fetch(message, { timeoutMs: 2_000 })
713
+ * if (result.isErr()) throw result.error
714
+ * return result.value.content
715
+ * }
716
+ * ```
717
+ */
718
+ fetch(message: MessageReference, options?: DefaultMessageOperationOptions): ResultAsync<M, MessageOperationFailure | CancelledError | ConfigurationError>;
719
+ /**
720
+ * Fetch one page of channel messages from Fluxer, newest first.
721
+ * Pass a decimal channel ID.
722
+ * With no query, this reads the latest 50 messages.
723
+ * The limit option accepts 1–100.
724
+ * Choose at most one before, after or around message-ID cursor.
725
+ * Use the oldest returned ID as before to request an older page
726
+ *
727
+ * The entire page is validated before returning a frozen array of frozen snapshots.
728
+ * No gateway connection, cache read, automatic traversal or prefetch is required.
729
+ * An empty or short page describes currently accessible results, not necessarily complete history.
730
+ * Pages are separate observations, not a consistent point-in-time snapshot.
731
+ * An enabled cache receives eligible messages oldest first, so tight limits keep the newest
732
+ *
733
+ * Invalid input, malformed pages or HTTP failures fail with MessageOperationError for fetchHistory, and HTTP 404 remains notFound.
734
+ * The namespace's shared limits, default deadline and bounded read retries apply.
735
+ * Cancellation affects only this request and waits for cleanup, and client closure fails with ClientClosedError
736
+ */
737
+ fetchHistory(channelId: string, query?: MessageHistoryQuery, options?: DefaultMessageOperationOptions): ResultAsync<readonly M[], MessageOperationFailure | CancelledError | ConfigurationError>;
738
+ /**
739
+ * Preview a bounded message-deletion selection without deleting anything.
740
+ * Pass authorId, a synchronous filter, or both.
741
+ * When both are supplied, a message must match both.
742
+ * The maxScanned and maxSelected values are required integers from 1 through 10,000.
743
+ * History is scanned newest first until an empty page or either bound, without prefetch, and a short page does not end the scan.
744
+ * History reads can populate an enabled message cache
745
+ *
746
+ * The result is an in-memory plan with frozen selected messages, usable once by this client only.
747
+ * It cannot be reconstructed from JSON or given to another client.
748
+ * A thrown filter, non-boolean return or promise-like return fails with MessageCleanupError before deletion.
749
+ * A blocking synchronous filter cannot be interrupted.
750
+ * One default deadline, rest.defaultTimeoutMs (30,000 ms unless configured), covers the history scan.
751
+ * Cancellation submits no deletion.
752
+ * No gateway connection or cache reread is needed
753
+ */
754
+ previewCleanup(channelId: string, selection: MessageCleanupSelection<M>, options?: DefaultMessageOperationOptions): ResultAsync<MessageCleanupPlan<M>, MessageCleanupFailure | CancelledError | ConfigurationError>;
755
+ /**
756
+ * Delete the exact IDs in a plan returned by previewCleanup, in sequential batches of at most 100.
757
+ * No history reread or filter rerun is performed.
758
+ * Each batch has the ManageMessages and two-factor authentication requirements of deleteMany.
759
+ * A plan is single-use even when cleanup fails or is cancelled, preventing accidental replay.
760
+ * To resolve an unknown outcome, preview again or call deleteMany with separately recorded IDs
761
+ *
762
+ * One default deadline, rest.defaultTimeoutMs (30,000 ms unless configured), covers all batch submissions.
763
+ * The submittedBatches field records only earlier HTTP-success submissions, in the report or MessageCleanupError.
764
+ * The rejected or unknown terminal batch is reported separately.
765
+ * These records do not prove each deletion, a deletion count, atomicity or that retrying is safe
766
+ *
767
+ * The onProgress callback runs synchronously and cleanup continues after it fails.
768
+ * A throw, a rejected promise or a returned or resolved Err result goes to the client-level onError as a progress
769
+ * FailureReport, or is logged at Error.
770
+ * A returned Effect is not run and is reported the same way as a TypeError, so run Effect work explicitly inside the callback.
771
+ * Cancellation can leave the batch being submitted with an unknown outcome.
772
+ * Batches retry only confirmed rate-limit rejections as deleteMany does, never an unknown outcome
773
+ *
774
+ * @example
775
+ * ```ts
776
+ * import type { Client } from "@neontechspace/fluxerly"
777
+ * export async function cleanupWorkflowExample(client: Client, channelId: string, authorId: string) {
778
+ * const preview = await client.messages.previewCleanup(channelId, {
779
+ * authorId,
780
+ * filter: message => message.attachments.length > 0,
781
+ * maxScanned: 500,
782
+ * maxSelected: 200,
783
+ * })
784
+ * return preview.isErr() ? preview : client.messages.cleanup(preview.value)
785
+ * }
786
+ * ```
787
+ */
788
+ cleanup(plan: MessageCleanupPlan<M>, options?: DefaultMessageCleanupOptions): ResultAsync<MessageCleanupReport, MessageCleanupFailure | CancelledError | ConfigurationError>;
789
+ /**
790
+ * Change a message's supplied fields and return its frozen updated snapshot after HTTP, without waiting for a gateway event.
791
+ * A plain string replaces only the text, as shorthand for `{ content }`.
792
+ * Omitted fields remain unchanged.
793
+ * No hidden fetch or cache merge is performed.
794
+ * Mentions default off.
795
+ * Existing stickers are preserved and cannot be replaced here.
796
+ * An empty content string requests removal of text, subject to Fluxer's validation.
797
+ * To remove embeds, send nonempty content with embeds: [].
798
+ * An otherwise empty edit is rejected by Fluxer.
799
+ * Omitted rich embeds remain, but link previews may be regenerated
800
+ *
801
+ * To keep existing files while adding new uploads, include their IDs in attachments.
802
+ * The supplied list replaces the old one.
803
+ * An empty list clears files when nonempty text or embeds remain.
804
+ * Retained file title or description can be replaced or cleared with null.
805
+ * Unknown IDs may be ignored, and a stale list can remove concurrent additions.
806
+ * An attachment:// image or thumbnail URL must match a new image or video upload, not a retained attachment.
807
+ * New uploads use send's copying, attachment source, size, budget and cleanup rules, and inline multipart 429 responses do not replay file or stream sources.
808
+ * Failed edits may leave temporary server data, without physical-erasure guarantees.
809
+ * A flags-only edit is allowed.
810
+ * Omission preserves flags, supplied flags replace only MessageFlags.SuppressEmbeds and MessageFlags.SuppressNotifications, and 0 clears those two bits.
811
+ * Server-managed flags, including the crosspost flags, fail locally before dispatch
812
+ *
813
+ * Eligible responses can enter the cache.
814
+ * A dispatched edit with an unknown outcome removes the old cached copy.
815
+ * A missing message fails with notFound.
816
+ * A lost response, timeout, cancellation or closure can leave the edit applied.
817
+ * The SDK does not automatically retry edits with unknown outcomes
818
+ */
819
+ edit(message: MessageReference, input: EditMessageInput | string, options?: DefaultMessageOperationOptions): ResultAsync<M, MessageOperationFailure | CancelledError | ConfigurationError>;
820
+ /**
821
+ * Delete one message, succeeding with no value after HTTP 204.
822
+ * Deleting another author's message requires ManageMessages, and Fluxer rejects that deletion with HTTP 400 and apiError.code twoFactorRequired in a community whose mfaLevel is GuildMfaLevels.Elevated, unless the bot owns the community or its application owner has two-factor authentication enabled.
823
+ * No gateway notification is awaited.
824
+ * A missing message fails with MessageOperationError reason notFound, including a repeated delete.
825
+ * The auditReason option supplies an optional community audit-log explanation.
826
+ * Successful deletions and deletions with unknown outcomes remove the cached message.
827
+ * A lost response, timeout, cancellation or closure can leave the deletion applied.
828
+ * Request cleanup is awaited, but the deletion cannot be undone.
829
+ * Deletes with unknown outcomes are never retried automatically
830
+ */
831
+ delete(message: MessageReference, options?: DefaultMessageAuditOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
832
+ /**
833
+ * Delete one attachment by its decimal ID from a message authored by this bot.
834
+ * The target is copied when execution starts, and the attachment list is neither fetched nor replaced.
835
+ * No gateway connection is needed.
836
+ * Success follows HTTP 204, without waiting for an event.
837
+ * If the last attachment is removed, Fluxer can also delete a message it considers otherwise empty.
838
+ * Successful deletions and deletions with unknown outcomes remove this message's cached copy, and no events are created locally.
839
+ * A notFound failure can mean the attachment is missing without proving the message is absent.
840
+ * Message request limits and deadlines apply, and only confirmed HTTP 429 rejection retries.
841
+ * Storage removal and message updates are separate changes, so a lost response can leave either applied.
842
+ * Cancellation waits for cleanup but cannot undo deletion or guarantee physical erasure
843
+ *
844
+ * @example
845
+ * ```ts
846
+ * import type { Client, MessageReference } from "@neontechspace/fluxerly"
847
+ * export function attachmentDeleteExample(client: Client, message: MessageReference, attachmentId: string) {
848
+ * return client.messages.deleteAttachment(message, attachmentId)
849
+ * }
850
+ * ```
851
+ */
852
+ deleteAttachment(message: MessageReference, attachmentId: string, options?: DefaultMessageOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
853
+ /**
854
+ * Delete 1–100 distinct decimal message IDs from one community channel.
855
+ * Fluxer requires ManageMessages, even for the bot's own messages.
856
+ * Fluxer rejects the request with HTTP 400 and apiError.code twoFactorRequired in a community whose mfaLevel is GuildMfaLevels.Elevated, unless the bot owns the community or its application owner has two-factor authentication enabled.
857
+ * IDs are copied once when execution starts, and that copy is validated and sent, so an entry that changes between reads
858
+ * cannot pass validation with one value and be sent with another.
859
+ * Success follows HTTP 204, not a deletion count or proof that each ID existed, and missing messages are ignored.
860
+ * No gateway connection, automatic selection, chunking or age filter is added.
861
+ * The auditReason option supplies an optional community audit-log explanation.
862
+ * Dispatched requests remove selected cache entries even on rejection, because partial deletion is possible.
863
+ * Only confirmed rate-limit rejection retries.
864
+ * A lost response, timeout, cancellation or closure can leave deletions applied.
865
+ * Input, capacity and HTTP failures use MessageOperationError, and cancellation waits for request cleanup
866
+ *
867
+ * @example
868
+ * ```ts
869
+ * import type { Client } from "@neontechspace/fluxerly"
870
+ * async function cleanupExample(client: Client, channelId: string, selectedIds: readonly string[]) {
871
+ * return await client.messages.deleteMany(channelId, selectedIds)
872
+ * }
873
+ * ```
874
+ */
875
+ deleteMany(channelId: string, messageIds: readonly string[], options?: DefaultMessageAuditOperationOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
876
+ /**
877
+ * Irreversibly delete this bot's entire authored message history in one channel.
878
+ * Use a decimal channel ID.
879
+ * Other authors' messages are preserved, and no gateway connection, community leave or role change is performed
880
+ *
881
+ * Success follows Fluxer's empty HTTP 202 response.
882
+ * It is not a completed-job report, deletion count, gateway event or proof the channel is empty.
883
+ * Deletion can be partial and can leave new or concurrent messages.
884
+ * There is no recovery token, automatic reconciliation or atomicity guarantee
885
+ *
886
+ * Bot credentials satisfy Fluxer's extra authentication checks, called sudo checks, and no extra sudo input is accepted.
887
+ * Fluxer handles attachment removal without guaranteeing physical provider-storage or CDN erasure.
888
+ * The default deadline, rest.defaultTimeoutMs (30,000 ms unless configured), includes capacity and rate-limit waits.
889
+ * Only confirmed HTTP 429 rejection retries, and a 5xx or lost response never causes a replay.
890
+ * After dispatch, the entire enabled message cache is cleared and older pending reads cannot restore it.
891
+ * No gateway events are created locally.
892
+ * Cancellation or closure waits for request cleanup but cannot undo deletion.
893
+ * Options must include confirm: true. Without it, the call fails before any request with reason input and path options.confirm.
894
+ * Input, capacity and HTTP failures use MessageOperationError for deleteOwnMessages
895
+ */
896
+ deleteOwnMessages(channelId: string, options: DefaultOwnMessageDeletionOptions): ResultAsync<void, MessageOperationFailure | CancelledError | ConfigurationError>;
897
+ }
898
+ //# sourceMappingURL=messages.d.ts.map