dfx 1.0.4 → 1.0.6

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 (364) hide show
  1. package/dist/Cache/driver.js +3 -0
  2. package/dist/Cache/driver.js.map +1 -0
  3. package/dist/Cache/memory.js +48 -0
  4. package/dist/Cache/memory.js.map +1 -0
  5. package/dist/Cache/memoryTTL.js +113 -0
  6. package/dist/Cache/memoryTTL.js.map +1 -0
  7. package/dist/Cache/prelude.js +130 -0
  8. package/dist/Cache/prelude.js.map +1 -0
  9. package/dist/Cache.js +77 -0
  10. package/dist/Cache.js.map +1 -0
  11. package/dist/DiscordConfig.js +29 -0
  12. package/dist/DiscordConfig.js.map +1 -0
  13. package/dist/DiscordGateway/DiscordWS.js +74 -0
  14. package/dist/DiscordGateway/DiscordWS.js.map +1 -0
  15. package/dist/DiscordGateway/Messaging.js +34 -0
  16. package/dist/DiscordGateway/Messaging.js.map +1 -0
  17. package/dist/DiscordGateway/Shard/StateStore.js +41 -0
  18. package/dist/DiscordGateway/Shard/StateStore.js.map +1 -0
  19. package/dist/DiscordGateway/Shard/heartbeats.js +25 -0
  20. package/dist/DiscordGateway/Shard/heartbeats.js.map +1 -0
  21. package/dist/DiscordGateway/Shard/identify.js +26 -0
  22. package/dist/DiscordGateway/Shard/identify.js.map +1 -0
  23. package/dist/DiscordGateway/Shard/sendEvents.js +26 -0
  24. package/dist/DiscordGateway/Shard/sendEvents.js.map +1 -0
  25. package/dist/DiscordGateway/Shard/utils.js +3 -0
  26. package/dist/DiscordGateway/Shard/utils.js.map +1 -0
  27. package/dist/DiscordGateway/Shard.js +134 -0
  28. package/dist/DiscordGateway/Shard.js.map +1 -0
  29. package/dist/DiscordGateway/ShardStore.js +23 -0
  30. package/dist/DiscordGateway/ShardStore.js.map +1 -0
  31. package/dist/DiscordGateway/Sharder.js +57 -0
  32. package/dist/DiscordGateway/Sharder.js.map +1 -0
  33. package/dist/DiscordGateway.js +21 -0
  34. package/dist/DiscordGateway.js.map +1 -0
  35. package/dist/DiscordREST/Generated.js +2302 -0
  36. package/dist/DiscordREST/Generated.js.map +1 -0
  37. package/dist/DiscordREST/utils.js +23 -0
  38. package/dist/DiscordREST/utils.js.map +1 -0
  39. package/dist/DiscordREST.js +123 -0
  40. package/dist/DiscordREST.js.map +1 -0
  41. package/dist/Helpers/flags.js +45 -0
  42. package/dist/Helpers/flags.js.map +1 -0
  43. package/{mjs/Helpers/intents.mjs → dist/Helpers/intents.js} +7 -5
  44. package/dist/Helpers/intents.js.map +1 -0
  45. package/dist/Helpers/interactions.js +114 -0
  46. package/dist/Helpers/interactions.js.map +1 -0
  47. package/dist/Helpers/members.js +10 -0
  48. package/dist/Helpers/members.js.map +1 -0
  49. package/dist/Helpers/permissions.js +84 -0
  50. package/dist/Helpers/permissions.js.map +1 -0
  51. package/dist/Helpers/ui.js +135 -0
  52. package/dist/Helpers/ui.js.map +1 -0
  53. package/dist/Interactions/builder.js +63 -0
  54. package/dist/Interactions/builder.js.map +1 -0
  55. package/dist/Interactions/commandHelper.js +47 -0
  56. package/dist/Interactions/commandHelper.js.map +1 -0
  57. package/dist/Interactions/context.js +35 -0
  58. package/dist/Interactions/context.js.map +1 -0
  59. package/dist/Interactions/definitions.js +51 -0
  60. package/dist/Interactions/definitions.js.map +1 -0
  61. package/dist/Interactions/error.js +2 -0
  62. package/dist/Interactions/error.js.map +1 -0
  63. package/dist/Interactions/gateway.js +75 -0
  64. package/dist/Interactions/gateway.js.map +1 -0
  65. package/dist/Interactions/handlers.js +61 -0
  66. package/dist/Interactions/handlers.js.map +1 -0
  67. package/dist/Interactions/index.js +11 -0
  68. package/dist/Interactions/index.js.map +1 -0
  69. package/dist/Interactions/utils.js +29 -0
  70. package/dist/Interactions/utils.js.map +1 -0
  71. package/dist/Interactions/webhook.js +56 -0
  72. package/dist/Interactions/webhook.js.map +1 -0
  73. package/dist/RateLimit/memory.js +35 -0
  74. package/dist/RateLimit/memory.js.map +1 -0
  75. package/dist/RateLimit/utils.js +18 -0
  76. package/dist/RateLimit/utils.js.map +1 -0
  77. package/dist/RateLimit.js +28 -0
  78. package/dist/RateLimit.js.map +1 -0
  79. package/{mjs/gateway.mjs → dist/gateway.js} +4 -4
  80. package/dist/gateway.js.map +1 -0
  81. package/{mjs/index.mjs → dist/index.js} +4 -4
  82. package/dist/index.js.map +1 -0
  83. package/dist/types.js +356 -0
  84. package/dist/types.js.map +1 -0
  85. package/dist/utils/Effect.js +42 -0
  86. package/dist/utils/Effect.js.map +1 -0
  87. package/dist/version.js +2 -0
  88. package/dist/version.js.map +1 -0
  89. package/{mjs/webhooks.mjs → dist/webhooks.js} +3 -3
  90. package/dist/webhooks.js.map +1 -0
  91. package/package.json +84 -32
  92. package/src/version.ts +1 -1
  93. package/Cache/driver.d.ts +0 -24
  94. package/Cache/driver.d.ts.map +0 -1
  95. package/Cache/driver.js +0 -11
  96. package/Cache/driver.js.map +0 -1
  97. package/Cache/memory.d.ts +0 -5
  98. package/Cache/memory.d.ts.map +0 -1
  99. package/Cache/memory.js +0 -57
  100. package/Cache/memory.js.map +0 -1
  101. package/Cache/memoryTTL.d.ts +0 -23
  102. package/Cache/memoryTTL.d.ts.map +0 -1
  103. package/Cache/memoryTTL.js +0 -128
  104. package/Cache/memoryTTL.js.map +0 -1
  105. package/Cache/prelude.d.ts +0 -32
  106. package/Cache/prelude.d.ts.map +0 -1
  107. package/Cache/prelude.js +0 -143
  108. package/Cache/prelude.js.map +0 -1
  109. package/Cache.d.ts +0 -81
  110. package/Cache.d.ts.map +0 -1
  111. package/Cache.js +0 -145
  112. package/Cache.js.map +0 -1
  113. package/DiscordConfig.d.ts +0 -35
  114. package/DiscordConfig.d.ts.map +0 -1
  115. package/DiscordConfig.js +0 -43
  116. package/DiscordConfig.js.map +0 -1
  117. package/DiscordGateway/DiscordWS.d.ts +0 -37
  118. package/DiscordGateway/DiscordWS.d.ts.map +0 -1
  119. package/DiscordGateway/DiscordWS.js +0 -86
  120. package/DiscordGateway/DiscordWS.js.map +0 -1
  121. package/DiscordGateway/Messaging.d.ts +0 -587
  122. package/DiscordGateway/Messaging.d.ts.map +0 -1
  123. package/DiscordGateway/Messaging.js +0 -43
  124. package/DiscordGateway/Messaging.js.map +0 -1
  125. package/DiscordGateway/Shard/StateStore.d.ts +0 -24
  126. package/DiscordGateway/Shard/StateStore.d.ts.map +0 -1
  127. package/DiscordGateway/Shard/StateStore.js +0 -49
  128. package/DiscordGateway/Shard/StateStore.js.map +0 -1
  129. package/DiscordGateway/Shard/heartbeats.d.ts +0 -8
  130. package/DiscordGateway/Shard/heartbeats.d.ts.map +0 -1
  131. package/DiscordGateway/Shard/heartbeats.js +0 -33
  132. package/DiscordGateway/Shard/heartbeats.js.map +0 -1
  133. package/DiscordGateway/Shard/identify.d.ts +0 -12
  134. package/DiscordGateway/Shard/identify.d.ts.map +0 -1
  135. package/DiscordGateway/Shard/identify.js +0 -37
  136. package/DiscordGateway/Shard/identify.js.map +0 -1
  137. package/DiscordGateway/Shard/sendEvents.d.ts +0 -8
  138. package/DiscordGateway/Shard/sendEvents.d.ts.map +0 -1
  139. package/DiscordGateway/Shard/sendEvents.js +0 -39
  140. package/DiscordGateway/Shard/sendEvents.js.map +0 -1
  141. package/DiscordGateway/Shard/utils.d.ts +0 -6
  142. package/DiscordGateway/Shard/utils.d.ts.map +0 -1
  143. package/DiscordGateway/Shard/utils.js +0 -11
  144. package/DiscordGateway/Shard/utils.js.map +0 -1
  145. package/DiscordGateway/Shard.d.ts +0 -29
  146. package/DiscordGateway/Shard.d.ts.map +0 -1
  147. package/DiscordGateway/Shard.js +0 -155
  148. package/DiscordGateway/Shard.js.map +0 -1
  149. package/DiscordGateway/ShardStore.d.ts +0 -19
  150. package/DiscordGateway/ShardStore.d.ts.map +0 -1
  151. package/DiscordGateway/ShardStore.js +0 -32
  152. package/DiscordGateway/ShardStore.js.map +0 -1
  153. package/DiscordGateway/Sharder.d.ts +0 -14
  154. package/DiscordGateway/Sharder.d.ts.map +0 -1
  155. package/DiscordGateway/Sharder.js +0 -75
  156. package/DiscordGateway/Sharder.js.map +0 -1
  157. package/DiscordGateway.d.ts +0 -33
  158. package/DiscordGateway.d.ts.map +0 -1
  159. package/DiscordGateway.js +0 -28
  160. package/DiscordGateway.js.map +0 -1
  161. package/DiscordREST/Generated.d.ts +0 -5577
  162. package/DiscordREST/Generated.d.ts.map +0 -1
  163. package/DiscordREST/Generated.js +0 -2480
  164. package/DiscordREST/Generated.js.map +0 -1
  165. package/DiscordREST/utils.d.ts +0 -14
  166. package/DiscordREST/utils.d.ts.map +0 -1
  167. package/DiscordREST/utils.js +0 -32
  168. package/DiscordREST/utils.js.map +0 -1
  169. package/DiscordREST.d.ts +0 -22
  170. package/DiscordREST.d.ts.map +0 -1
  171. package/DiscordREST.js +0 -128
  172. package/DiscordREST.js.map +0 -1
  173. package/Helpers/flags.d.ts +0 -28
  174. package/Helpers/flags.d.ts.map +0 -1
  175. package/Helpers/flags.js +0 -57
  176. package/Helpers/flags.js.map +0 -1
  177. package/Helpers/intents.d.ts +0 -25
  178. package/Helpers/intents.d.ts.map +0 -1
  179. package/Helpers/intents.js +0 -34
  180. package/Helpers/intents.js.map +0 -1
  181. package/Helpers/interactions.d.ts +0 -116
  182. package/Helpers/interactions.d.ts.map +0 -1
  183. package/Helpers/interactions.js +0 -143
  184. package/Helpers/interactions.js.map +0 -1
  185. package/Helpers/members.d.ts +0 -10
  186. package/Helpers/members.d.ts.map +0 -1
  187. package/Helpers/members.js +0 -17
  188. package/Helpers/members.js.map +0 -1
  189. package/Helpers/permissions.d.ts +0 -42
  190. package/Helpers/permissions.d.ts.map +0 -1
  191. package/Helpers/permissions.js +0 -97
  192. package/Helpers/permissions.js.map +0 -1
  193. package/Helpers/ui.d.ts +0 -105
  194. package/Helpers/ui.d.ts.map +0 -1
  195. package/Helpers/ui.js +0 -162
  196. package/Helpers/ui.js.map +0 -1
  197. package/Interactions/builder.d.ts +0 -48
  198. package/Interactions/builder.d.ts.map +0 -1
  199. package/Interactions/builder.js +0 -64
  200. package/Interactions/builder.js.map +0 -1
  201. package/Interactions/commandHelper.d.ts +0 -83
  202. package/Interactions/commandHelper.d.ts.map +0 -1
  203. package/Interactions/commandHelper.js +0 -57
  204. package/Interactions/commandHelper.js.map +0 -1
  205. package/Interactions/context.d.ts +0 -53
  206. package/Interactions/context.d.ts.map +0 -1
  207. package/Interactions/context.js +0 -47
  208. package/Interactions/context.js.map +0 -1
  209. package/Interactions/definitions.d.ts +0 -43
  210. package/Interactions/definitions.d.ts.map +0 -1
  211. package/Interactions/definitions.js +0 -67
  212. package/Interactions/definitions.js.map +0 -1
  213. package/Interactions/error.d.ts +0 -2
  214. package/Interactions/error.d.ts.map +0 -1
  215. package/Interactions/error.js +0 -8
  216. package/Interactions/error.js.map +0 -1
  217. package/Interactions/gateway.d.ts +0 -20
  218. package/Interactions/gateway.d.ts.map +0 -1
  219. package/Interactions/gateway.js +0 -92
  220. package/Interactions/gateway.js.map +0 -1
  221. package/Interactions/handlers.d.ts +0 -15
  222. package/Interactions/handlers.d.ts.map +0 -1
  223. package/Interactions/handlers.js +0 -73
  224. package/Interactions/handlers.js.map +0 -1
  225. package/Interactions/index.d.ts +0 -17
  226. package/Interactions/index.d.ts.map +0 -1
  227. package/Interactions/index.js +0 -94
  228. package/Interactions/index.js.map +0 -1
  229. package/Interactions/utils.d.ts +0 -61
  230. package/Interactions/utils.d.ts.map +0 -1
  231. package/Interactions/utils.js +0 -35
  232. package/Interactions/utils.js.map +0 -1
  233. package/Interactions/webhook.d.ts +0 -71
  234. package/Interactions/webhook.d.ts.map +0 -1
  235. package/Interactions/webhook.js +0 -89
  236. package/Interactions/webhook.js.map +0 -1
  237. package/RateLimit/memory.d.ts +0 -3
  238. package/RateLimit/memory.d.ts.map +0 -1
  239. package/RateLimit/memory.js +0 -47
  240. package/RateLimit/memory.js.map +0 -1
  241. package/RateLimit/utils.d.ts +0 -3
  242. package/RateLimit/utils.d.ts.map +0 -1
  243. package/RateLimit/utils.js +0 -25
  244. package/RateLimit/utils.js.map +0 -1
  245. package/RateLimit.d.ts +0 -30
  246. package/RateLimit.d.ts.map +0 -1
  247. package/RateLimit.js +0 -37
  248. package/RateLimit.js.map +0 -1
  249. package/gateway.d.ts +0 -19
  250. package/gateway.d.ts.map +0 -1
  251. package/gateway.js +0 -72
  252. package/gateway.js.map +0 -1
  253. package/index.d.ts +0 -18
  254. package/index.d.ts.map +0 -1
  255. package/index.js +0 -71
  256. package/index.js.map +0 -1
  257. package/mjs/Cache/driver.mjs +0 -3
  258. package/mjs/Cache/driver.mjs.map +0 -1
  259. package/mjs/Cache/memory.mjs +0 -48
  260. package/mjs/Cache/memory.mjs.map +0 -1
  261. package/mjs/Cache/memoryTTL.mjs +0 -119
  262. package/mjs/Cache/memoryTTL.mjs.map +0 -1
  263. package/mjs/Cache/prelude.mjs +0 -131
  264. package/mjs/Cache/prelude.mjs.map +0 -1
  265. package/mjs/Cache.mjs +0 -90
  266. package/mjs/Cache.mjs.map +0 -1
  267. package/mjs/DiscordConfig.mjs +0 -32
  268. package/mjs/DiscordConfig.mjs.map +0 -1
  269. package/mjs/DiscordGateway/DiscordWS.mjs +0 -77
  270. package/mjs/DiscordGateway/DiscordWS.mjs.map +0 -1
  271. package/mjs/DiscordGateway/Messaging.mjs +0 -35
  272. package/mjs/DiscordGateway/Messaging.mjs.map +0 -1
  273. package/mjs/DiscordGateway/Shard/StateStore.mjs +0 -41
  274. package/mjs/DiscordGateway/Shard/StateStore.mjs.map +0 -1
  275. package/mjs/DiscordGateway/Shard/heartbeats.mjs +0 -25
  276. package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +0 -1
  277. package/mjs/DiscordGateway/Shard/identify.mjs +0 -29
  278. package/mjs/DiscordGateway/Shard/identify.mjs.map +0 -1
  279. package/mjs/DiscordGateway/Shard/sendEvents.mjs +0 -26
  280. package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +0 -1
  281. package/mjs/DiscordGateway/Shard/utils.mjs +0 -3
  282. package/mjs/DiscordGateway/Shard/utils.mjs.map +0 -1
  283. package/mjs/DiscordGateway/Shard.mjs +0 -147
  284. package/mjs/DiscordGateway/Shard.mjs.map +0 -1
  285. package/mjs/DiscordGateway/ShardStore.mjs +0 -24
  286. package/mjs/DiscordGateway/ShardStore.mjs.map +0 -1
  287. package/mjs/DiscordGateway/Sharder.mjs +0 -67
  288. package/mjs/DiscordGateway/Sharder.mjs.map +0 -1
  289. package/mjs/DiscordGateway.mjs +0 -21
  290. package/mjs/DiscordGateway.mjs.map +0 -1
  291. package/mjs/DiscordREST/Generated.mjs +0 -2471
  292. package/mjs/DiscordREST/Generated.mjs.map +0 -1
  293. package/mjs/DiscordREST/utils.mjs +0 -21
  294. package/mjs/DiscordREST/utils.mjs.map +0 -1
  295. package/mjs/DiscordREST.mjs +0 -119
  296. package/mjs/DiscordREST.mjs.map +0 -1
  297. package/mjs/Helpers/flags.mjs +0 -45
  298. package/mjs/Helpers/flags.mjs.map +0 -1
  299. package/mjs/Helpers/intents.mjs.map +0 -1
  300. package/mjs/Helpers/interactions.mjs +0 -115
  301. package/mjs/Helpers/interactions.mjs.map +0 -1
  302. package/mjs/Helpers/members.mjs +0 -9
  303. package/mjs/Helpers/members.mjs.map +0 -1
  304. package/mjs/Helpers/permissions.mjs +0 -84
  305. package/mjs/Helpers/permissions.mjs.map +0 -1
  306. package/mjs/Helpers/ui.mjs +0 -137
  307. package/mjs/Helpers/ui.mjs.map +0 -1
  308. package/mjs/Interactions/builder.mjs +0 -56
  309. package/mjs/Interactions/builder.mjs.map +0 -1
  310. package/mjs/Interactions/commandHelper.mjs +0 -49
  311. package/mjs/Interactions/commandHelper.mjs.map +0 -1
  312. package/mjs/Interactions/context.mjs +0 -28
  313. package/mjs/Interactions/context.mjs.map +0 -1
  314. package/mjs/Interactions/definitions.mjs +0 -51
  315. package/mjs/Interactions/definitions.mjs.map +0 -1
  316. package/mjs/Interactions/error.mjs +0 -2
  317. package/mjs/Interactions/error.mjs.map +0 -1
  318. package/mjs/Interactions/gateway.mjs +0 -82
  319. package/mjs/Interactions/gateway.mjs.map +0 -1
  320. package/mjs/Interactions/handlers.mjs +0 -64
  321. package/mjs/Interactions/handlers.mjs.map +0 -1
  322. package/mjs/Interactions/index.mjs +0 -11
  323. package/mjs/Interactions/index.mjs.map +0 -1
  324. package/mjs/Interactions/utils.mjs +0 -26
  325. package/mjs/Interactions/utils.mjs.map +0 -1
  326. package/mjs/Interactions/webhook.mjs +0 -75
  327. package/mjs/Interactions/webhook.mjs.map +0 -1
  328. package/mjs/RateLimit/memory.mjs +0 -39
  329. package/mjs/RateLimit/memory.mjs.map +0 -1
  330. package/mjs/RateLimit/utils.mjs +0 -18
  331. package/mjs/RateLimit/utils.mjs.map +0 -1
  332. package/mjs/RateLimit.mjs +0 -28
  333. package/mjs/RateLimit.mjs.map +0 -1
  334. package/mjs/gateway.mjs.map +0 -1
  335. package/mjs/index.mjs.map +0 -1
  336. package/mjs/types.mjs +0 -356
  337. package/mjs/types.mjs.map +0 -1
  338. package/mjs/utils/Effect.mjs +0 -44
  339. package/mjs/utils/Effect.mjs.map +0 -1
  340. package/mjs/version.mjs +0 -2
  341. package/mjs/version.mjs.map +0 -1
  342. package/mjs/webhooks.mjs.map +0 -1
  343. package/tsconfig.base.json +0 -54
  344. package/tsconfig.build.json +0 -10
  345. package/tsconfig.examples.json +0 -10
  346. package/tsconfig.json +0 -14
  347. package/tsconfig.madge.json +0 -12
  348. package/tsconfig.test.json +0 -10
  349. package/types.d.ts +0 -2458
  350. package/types.d.ts.map +0 -1
  351. package/types.js +0 -408
  352. package/types.js.map +0 -1
  353. package/utils/Effect.d.ts +0 -5
  354. package/utils/Effect.d.ts.map +0 -1
  355. package/utils/Effect.js +0 -53
  356. package/utils/Effect.js.map +0 -1
  357. package/version.d.ts +0 -2
  358. package/version.d.ts.map +0 -1
  359. package/version.js +0 -8
  360. package/version.js.map +0 -1
  361. package/webhooks.d.ts +0 -8
  362. package/webhooks.d.ts.map +0 -1
  363. package/webhooks.js +0 -55
  364. package/webhooks.js.map +0 -1
@@ -0,0 +1,2302 @@
1
+ import * as HttpClientError from "effect/unstable/http/HttpClientError";
2
+ import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest";
3
+ import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse";
4
+ import * as Data from "effect/Data";
5
+ import * as Effect from "effect/Effect";
6
+ export const OAuth2Scopes = {
7
+ /**
8
+ * allows /users/@me without email
9
+ */
10
+ IDENTIFY: "identify",
11
+ /**
12
+ * enables /users/@me to return an email
13
+ */
14
+ EMAIL: "email",
15
+ /**
16
+ * allows /users/@me/connections to return linked third-party accounts
17
+ */
18
+ CONNECTIONS: "connections",
19
+ /**
20
+ * allows /users/@me/guilds to return basic information about all of a user's guilds
21
+ */
22
+ GUILDS: "guilds",
23
+ /**
24
+ * allows /guilds/{guild.id}/members/{user.id} to be used for joining users to a guild
25
+ */
26
+ GUILDS_JOIN: "guilds.join",
27
+ /**
28
+ * allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild
29
+ */
30
+ GUILDS_MEMBERS_READ: "guilds.members.read",
31
+ /**
32
+ * allows your app to join users to a group dm
33
+ */
34
+ GDM_JOIN: "gdm.join",
35
+ /**
36
+ * for oauth2 bots, this puts the bot in the user's selected guild by default
37
+ */
38
+ BOT: "bot",
39
+ /**
40
+ * for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval
41
+ */
42
+ RPC: "rpc",
43
+ /**
44
+ * for local rpc server access, this allows you to receive notifications pushed out to the user - requires Discord approval
45
+ */
46
+ RPC_NOTIFICATIONS_READ: "rpc.notifications.read",
47
+ /**
48
+ * for local rpc server access, this allows you to read a user's voice settings and listen for voice events - requires Discord approval
49
+ */
50
+ RPC_VOICE_READ: "rpc.voice.read",
51
+ /**
52
+ * for local rpc server access, this allows you to update a user's voice settings - requires Discord approval
53
+ */
54
+ RPC_VOICE_WRITE: "rpc.voice.write",
55
+ /**
56
+ * for local rpc server access, this allows you to read a user's video status - requires Discord approval
57
+ */
58
+ RPC_VIDEO_READ: "rpc.video.read",
59
+ /**
60
+ * for local rpc server access, this allows you to update a user's video settings - requires Discord approval
61
+ */
62
+ RPC_VIDEO_WRITE: "rpc.video.write",
63
+ /**
64
+ * for local rpc server access, this allows you to read a user's screenshare status- requires Discord approval
65
+ */
66
+ RPC_SCREENSHARE_READ: "rpc.screenshare.read",
67
+ /**
68
+ * for local rpc server access, this allows you to update a user's screenshare settings- requires Discord approval
69
+ */
70
+ RPC_SCREENSHARE_WRITE: "rpc.screenshare.write",
71
+ /**
72
+ * for local rpc server access, this allows you to update a user's activity - requires Discord approval
73
+ */
74
+ RPC_ACTIVITIES_WRITE: "rpc.activities.write",
75
+ /**
76
+ * this generates a webhook that is returned in the oauth token response for authorization code grants
77
+ */
78
+ WEBHOOK_INCOMING: "webhook.incoming",
79
+ /**
80
+ * for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates)
81
+ */
82
+ MESSAGES_READ: "messages.read",
83
+ /**
84
+ * allows your app to upload/update builds for a user's applications - requires Discord approval
85
+ */
86
+ APPLICATIONS_BUILDS_UPLOAD: "applications.builds.upload",
87
+ /**
88
+ * allows your app to read build data for a user's applications
89
+ */
90
+ APPLICATIONS_BUILDS_READ: "applications.builds.read",
91
+ /**
92
+ * allows your app to use commands in a guild
93
+ */
94
+ APPLICATIONS_COMMANDS: "applications.commands",
95
+ /**
96
+ * allows your app to update permissions for its commands in a guild a user has permissions to
97
+ */
98
+ APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE: "applications.commands.permissions.update",
99
+ /**
100
+ * allows your app to update its commands using a Bearer token - client credentials grant only
101
+ */
102
+ APPLICATIONS_COMMANDS_UPDATE: "applications.commands.update",
103
+ /**
104
+ * allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user's applications
105
+ */
106
+ APPLICATIONS_STORE_UPDATE: "applications.store.update",
107
+ /**
108
+ * allows your app to read entitlements for a user's applications
109
+ */
110
+ APPLICATIONS_ENTITLEMENTS: "applications.entitlements",
111
+ /**
112
+ * allows your app to fetch data from a user's "Now Playing/Recently Played" list - requires Discord approval
113
+ */
114
+ ACTIVITIES_READ: "activities.read",
115
+ /**
116
+ * allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER)
117
+ */
118
+ ACTIVITIES_WRITE: "activities.write",
119
+ /**
120
+ * allows your app to send activity invites - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER)
121
+ */
122
+ ACTIVITIES_INVITES_WRITE: "activities.invites.write",
123
+ /**
124
+ * allows your app to know a user's friends and implicit relationships - requires Discord approval
125
+ */
126
+ RELATIONSHIPS_READ: "relationships.read",
127
+ /**
128
+ * allows your app to connect to voice on user's behalf and see all the voice members - requires Discord approval
129
+ */
130
+ VOICE: "voice",
131
+ /**
132
+ * allows your app to see information about the user's DMs and group DMs - requires Discord approval
133
+ */
134
+ DM_CHANNELS_READ: "dm_channels.read",
135
+ /**
136
+ * allows your app to update a user's connection and metadata for the app
137
+ */
138
+ ROLE_CONNECTIONS_WRITE: "role_connections.write",
139
+ /**
140
+ * for OpenID Connect, this allows your app to receive user id and basic profile information
141
+ */
142
+ OPENID: "openid",
143
+ };
144
+ export const ApplicationExplicitContentFilterTypes = {
145
+ /**
146
+ * inherit guild content filter setting
147
+ */
148
+ INHERIT: 0,
149
+ /**
150
+ * interactions will always be scanned
151
+ */
152
+ ALWAYS: 1,
153
+ };
154
+ export const TeamMembershipStates = {
155
+ /**
156
+ * User has been invited to the team.
157
+ */
158
+ INVITED: 1,
159
+ /**
160
+ * User has accepted the team invitation.
161
+ */
162
+ ACCEPTED: 2,
163
+ };
164
+ export const EmbeddedActivityLocationKind = {
165
+ /**
166
+ * guild channel
167
+ */
168
+ GUILD_CHANNEL: "gc",
169
+ /**
170
+ * private channel
171
+ */
172
+ PRIVATE_CHANNEL: "pc",
173
+ /**
174
+ * party
175
+ */
176
+ PARTY: "party",
177
+ };
178
+ export const ApplicationCommandType = {
179
+ /**
180
+ * Slash commands; a text-based command that shows up when a user types /
181
+ */
182
+ CHAT: 1,
183
+ /**
184
+ * A UI-based command that shows up when you right click or tap on a user
185
+ */
186
+ USER: 2,
187
+ /**
188
+ * A UI-based command that shows up when you right click or tap on a message
189
+ */
190
+ MESSAGE: 3,
191
+ /**
192
+ * A command that represents the primary way to use an application (e.g. launching an Activity)
193
+ */
194
+ PRIMARY_ENTRY_POINT: 4,
195
+ };
196
+ export const InteractionContextType = {
197
+ /**
198
+ * This command can be used within a Guild.
199
+ */
200
+ GUILD: 0,
201
+ /**
202
+ * This command can be used within a DM with this application's bot.
203
+ */
204
+ BOT_DM: 1,
205
+ /**
206
+ * This command can be used within DMs and Group DMs with users.
207
+ */
208
+ PRIVATE_CHANNEL: 2,
209
+ };
210
+ export const ApplicationIntegrationType = {
211
+ /**
212
+ * For Guild install.
213
+ */
214
+ GUILD_INSTALL: 0,
215
+ /**
216
+ * For User install.
217
+ */
218
+ USER_INSTALL: 1,
219
+ };
220
+ export const ApplicationCommandOptionType = {
221
+ /**
222
+ * A sub-action within a command or group
223
+ */
224
+ SUB_COMMAND: 1,
225
+ /**
226
+ * A group of subcommands
227
+ */
228
+ SUB_COMMAND_GROUP: 2,
229
+ /**
230
+ * A string option
231
+ */
232
+ STRING: 3,
233
+ /**
234
+ * An integer option. Any integer between -2^53 and 2^53 is a valid value
235
+ */
236
+ INTEGER: 4,
237
+ /**
238
+ * A boolean option
239
+ */
240
+ BOOLEAN: 5,
241
+ /**
242
+ * A snowflake option that represents a User
243
+ */
244
+ USER: 6,
245
+ /**
246
+ * A snowflake option that represents a Channel. Includes all channel types and categories
247
+ */
248
+ CHANNEL: 7,
249
+ /**
250
+ * A snowflake option that represents a Role
251
+ */
252
+ ROLE: 8,
253
+ /**
254
+ * A snowflake option that represents anything you can mention
255
+ */
256
+ MENTIONABLE: 9,
257
+ /**
258
+ * A number option. Any double between -2^53 and 2^53 is a valid value
259
+ */
260
+ NUMBER: 10,
261
+ /**
262
+ * An attachment option
263
+ */
264
+ ATTACHMENT: 11,
265
+ };
266
+ export const ChannelTypes = {
267
+ /**
268
+ * A direct message between users
269
+ */
270
+ DM: 1,
271
+ /**
272
+ * A direct message between multiple users
273
+ */
274
+ GROUP_DM: 3,
275
+ /**
276
+ * A text channel within a server
277
+ */
278
+ GUILD_TEXT: 0,
279
+ /**
280
+ * A voice channel within a server
281
+ */
282
+ GUILD_VOICE: 2,
283
+ /**
284
+ * An organizational category that contains up to 50 channels
285
+ */
286
+ GUILD_CATEGORY: 4,
287
+ /**
288
+ * A channel that users can follow and crosspost into their own server (formerly news channels)
289
+ */
290
+ GUILD_ANNOUNCEMENT: 5,
291
+ /**
292
+ * A temporary sub-channel within a GUILD_ANNOUNCEMENT channel
293
+ */
294
+ ANNOUNCEMENT_THREAD: 10,
295
+ /**
296
+ * A temporary sub-channel within a GUILD_TEXT or GUILD_THREADS_ONLY channel type set
297
+ */
298
+ PUBLIC_THREAD: 11,
299
+ /**
300
+ * A temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission
301
+ */
302
+ PRIVATE_THREAD: 12,
303
+ /**
304
+ * A voice channel for hosting events with an audience
305
+ */
306
+ GUILD_STAGE_VOICE: 13,
307
+ /**
308
+ * The channel in a hub containing the listed servers
309
+ */
310
+ GUILD_DIRECTORY: 14,
311
+ /**
312
+ * Channel that can only contain threads
313
+ */
314
+ GUILD_FORUM: 15,
315
+ };
316
+ export const EntitlementTypes = {
317
+ APPLICATION_SUBSCRIPTION: 8,
318
+ QUEST_REWARD: 10,
319
+ };
320
+ export const EntitlementTenantFulfillmentStatusResponse = {
321
+ UNKNOWN: 0,
322
+ FULFILLMENT_NOT_NEEDED: 1,
323
+ FULFILLMENT_NEEDED: 2,
324
+ FULFILLED: 3,
325
+ FULFILLMENT_FAILED: 4,
326
+ UNFULFILLMENT_NEEDED: 5,
327
+ UNFULFILLED: 6,
328
+ UNFULFILLMENT_FAILED: 7,
329
+ };
330
+ export const ApplicationCommandPermissionType = {
331
+ /**
332
+ * This permission is for a role.
333
+ */
334
+ ROLE: 1,
335
+ /**
336
+ * This permission is for a user.
337
+ */
338
+ USER: 2,
339
+ /**
340
+ * This permission is for a channel.
341
+ */
342
+ CHANNEL: 3,
343
+ };
344
+ export const MetadataItemTypes = {
345
+ /**
346
+ * the metadata value (integer) is less than or equal to the guild's configured value (integer)
347
+ */
348
+ INTEGER_LESS_THAN_EQUAL: 1,
349
+ /**
350
+ * the metadata value (integer) is greater than or equal to the guild's configured value (integer)
351
+ */
352
+ INTEGER_GREATER_THAN_EQUAL: 2,
353
+ /**
354
+ * the metadata value (integer) is equal to the guild's configured value (integer)
355
+ */
356
+ INTEGER_EQUAL: 3,
357
+ /**
358
+ * the metadata value (integer) is not equal to the guild's configured value (integer)
359
+ */
360
+ INTEGER_NOT_EQUAL: 4,
361
+ /**
362
+ * the metadata value (ISO8601 string) is less than or equal to the guild's configured value (integer; days before current date)
363
+ */
364
+ DATETIME_LESS_THAN_EQUAL: 5,
365
+ /**
366
+ * the metadata value (ISO8601 string) is greater than or equal to the guild's configured value (integer; days before current date)
367
+ */
368
+ DATETIME_GREATER_THAN_EQUAL: 6,
369
+ /**
370
+ * the metadata value (integer) is equal to the guild's configured value (integer; 1)
371
+ */
372
+ BOOLEAN_EQUAL: 7,
373
+ /**
374
+ * the metadata value (integer) is not equal to the guild's configured value (integer; 1)
375
+ */
376
+ BOOLEAN_NOT_EQUAL: 8,
377
+ };
378
+ export const VideoQualityModes = {
379
+ /**
380
+ * Discord chooses the quality for optimal performance
381
+ */
382
+ AUTO: 1,
383
+ /**
384
+ * 720p
385
+ */
386
+ FULL: 2,
387
+ };
388
+ export const ThreadAutoArchiveDuration = {
389
+ /**
390
+ * One hour
391
+ */
392
+ ONE_HOUR: 60,
393
+ /**
394
+ * One day
395
+ */
396
+ ONE_DAY: 1440,
397
+ /**
398
+ * Three days
399
+ */
400
+ THREE_DAY: 4320,
401
+ /**
402
+ * Seven days
403
+ */
404
+ SEVEN_DAY: 10080,
405
+ };
406
+ export const ChannelPermissionOverwrites = {
407
+ ROLE: 0,
408
+ MEMBER: 1,
409
+ };
410
+ export const ThreadSortOrder = {
411
+ /**
412
+ * Sort forum posts by activity
413
+ */
414
+ LATEST_ACTIVITY: 0,
415
+ /**
416
+ * Sort forum posts by creation time (from most recent to oldest)
417
+ */
418
+ CREATION_DATE: 1,
419
+ };
420
+ export const ForumLayout = {
421
+ /**
422
+ * No default has been set for forum channel
423
+ */
424
+ DEFAULT: 0,
425
+ /**
426
+ * Display posts as a list
427
+ */
428
+ LIST: 1,
429
+ /**
430
+ * Display posts as a collection of tiles
431
+ */
432
+ GRID: 2,
433
+ };
434
+ export const ThreadSearchTagSetting = {
435
+ /**
436
+ * The thread tags must contain all tags in the search query
437
+ */
438
+ MATCH_ALL: "match_all",
439
+ /**
440
+ * The thread tags must contain at least one of tags in the search query
441
+ */
442
+ MATCH_SOME: "match_some",
443
+ };
444
+ export const InviteTypes = {
445
+ GUILD: 0,
446
+ GROUP_DM: 1,
447
+ FRIEND: 2,
448
+ };
449
+ export const GuildFeatures = {
450
+ /**
451
+ * guild has access to set an animated guild banner image
452
+ */
453
+ ANIMATED_BANNER: "ANIMATED_BANNER",
454
+ /**
455
+ * guild has access to set an animated guild icon
456
+ */
457
+ ANIMATED_ICON: "ANIMATED_ICON",
458
+ /**
459
+ * guild is using the old permissions configuration behavior
460
+ */
461
+ APPLICATION_COMMAND_PERMISSIONS_V2: "APPLICATION_COMMAND_PERMISSIONS_V2",
462
+ /**
463
+ * guild has set up auto moderation rules
464
+ */
465
+ AUTO_MODERATION: "AUTO_MODERATION",
466
+ /**
467
+ * guild has access to set a guild banner image
468
+ */
469
+ BANNER: "BANNER",
470
+ /**
471
+ * guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates
472
+ */
473
+ COMMUNITY: "COMMUNITY",
474
+ /**
475
+ * guild has enabled monetization
476
+ */
477
+ CREATOR_MONETIZABLE_PROVISIONAL: "CREATOR_MONETIZABLE_PROVISIONAL",
478
+ /**
479
+ * guild has enabled the role subscription promo page
480
+ */
481
+ CREATOR_STORE_PAGE: "CREATOR_STORE_PAGE",
482
+ /**
483
+ * guild has been set as a support server on the App Directory
484
+ */
485
+ DEVELOPER_SUPPORT_SERVER: "DEVELOPER_SUPPORT_SERVER",
486
+ /**
487
+ * guild is able to be discovered in the directory
488
+ */
489
+ DISCOVERABLE: "DISCOVERABLE",
490
+ /**
491
+ * guild is able to be featured in the directory
492
+ */
493
+ FEATURABLE: "FEATURABLE",
494
+ /**
495
+ * guild has paused invites, preventing new users from joining
496
+ */
497
+ INVITES_DISABLED: "INVITES_DISABLED",
498
+ /**
499
+ * guild has access to set an invite splash background
500
+ */
501
+ INVITE_SPLASH: "INVITE_SPLASH",
502
+ /**
503
+ * guild has enabled Membership Screening
504
+ */
505
+ MEMBER_VERIFICATION_GATE_ENABLED: "MEMBER_VERIFICATION_GATE_ENABLED",
506
+ /**
507
+ * guild has increased custom sticker slots
508
+ */
509
+ MORE_STICKERS: "MORE_STICKERS",
510
+ /**
511
+ * guild has access to create announcement channels
512
+ */
513
+ NEWS: "NEWS",
514
+ /**
515
+ * guild is partnered
516
+ */
517
+ PARTNERED: "PARTNERED",
518
+ /**
519
+ * guild can be previewed before joining via Membership Screening or the directory
520
+ */
521
+ PREVIEW_ENABLED: "PREVIEW_ENABLED",
522
+ /**
523
+ * guild has disabled activity alerts in the configured safety alerts channel
524
+ */
525
+ RAID_ALERTS_DISABLED: "RAID_ALERTS_DISABLED",
526
+ /**
527
+ * guild is able to set role icons
528
+ */
529
+ ROLE_ICONS: "ROLE_ICONS",
530
+ /**
531
+ * guild has role subscriptions that can be purchased
532
+ */
533
+ ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE: "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE",
534
+ /**
535
+ * guild has enabled role subscriptions
536
+ */
537
+ ROLE_SUBSCRIPTIONS_ENABLED: "ROLE_SUBSCRIPTIONS_ENABLED",
538
+ /**
539
+ * guild has enabled ticketed events
540
+ */
541
+ TICKETED_EVENTS_ENABLED: "TICKETED_EVENTS_ENABLED",
542
+ /**
543
+ * guild has access to set a vanity URL
544
+ */
545
+ VANITY_URL: "VANITY_URL",
546
+ /**
547
+ * guild is verified
548
+ */
549
+ VERIFIED: "VERIFIED",
550
+ /**
551
+ * guild has access to set 384kbps bitrate in voice (previously VIP voice servers)
552
+ */
553
+ VIP_REGIONS: "VIP_REGIONS",
554
+ /**
555
+ * guild has enabled the welcome screen
556
+ */
557
+ WELCOME_SCREEN_ENABLED: "WELCOME_SCREEN_ENABLED",
558
+ };
559
+ export const VerificationLevels = {
560
+ /**
561
+ * unrestricted
562
+ */
563
+ NONE: 0,
564
+ /**
565
+ * must have verified email on account
566
+ */
567
+ LOW: 1,
568
+ /**
569
+ * must be registered on Discord for longer than 5 minutes
570
+ */
571
+ MEDIUM: 2,
572
+ /**
573
+ * must be a member of the server for longer than 10 minutes
574
+ */
575
+ HIGH: 3,
576
+ /**
577
+ * must have a verified phone number
578
+ */
579
+ VERY_HIGH: 4,
580
+ };
581
+ export const GuildNSFWContentLevel = {
582
+ DEFAULT: 0,
583
+ EXPLICIT: 1,
584
+ SAFE: 2,
585
+ AGE_RESTRICTED: 3,
586
+ };
587
+ export const InviteTargetTypes = {
588
+ STREAM: 1,
589
+ EMBEDDED_APPLICATION: 2,
590
+ ROLE_SUBSCRIPTIONS_PURCHASE: 3,
591
+ };
592
+ export const GuildScheduledEventStatuses = {
593
+ SCHEDULED: 1,
594
+ ACTIVE: 2,
595
+ COMPLETED: 3,
596
+ CANCELED: 4,
597
+ };
598
+ export const GuildScheduledEventEntityTypes = {
599
+ NONE: 0,
600
+ STAGE_INSTANCE: 1,
601
+ VOICE: 2,
602
+ EXTERNAL: 3,
603
+ };
604
+ export const MessageType = {
605
+ DEFAULT: 0,
606
+ RECIPIENT_ADD: 1,
607
+ RECIPIENT_REMOVE: 2,
608
+ CALL: 3,
609
+ CHANNEL_NAME_CHANGE: 4,
610
+ CHANNEL_ICON_CHANGE: 5,
611
+ CHANNEL_PINNED_MESSAGE: 6,
612
+ USER_JOIN: 7,
613
+ GUILD_BOOST: 8,
614
+ GUILD_BOOST_TIER_1: 9,
615
+ GUILD_BOOST_TIER_2: 10,
616
+ GUILD_BOOST_TIER_3: 11,
617
+ CHANNEL_FOLLOW_ADD: 12,
618
+ GUILD_DISCOVERY_DISQUALIFIED: 14,
619
+ GUILD_DISCOVERY_REQUALIFIED: 15,
620
+ GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING: 16,
621
+ GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING: 17,
622
+ THREAD_CREATED: 18,
623
+ REPLY: 19,
624
+ CHAT_INPUT_COMMAND: 20,
625
+ THREAD_STARTER_MESSAGE: 21,
626
+ GUILD_INVITE_REMINDER: 22,
627
+ CONTEXT_MENU_COMMAND: 23,
628
+ AUTO_MODERATION_ACTION: 24,
629
+ ROLE_SUBSCRIPTION_PURCHASE: 25,
630
+ INTERACTION_PREMIUM_UPSELL: 26,
631
+ STAGE_START: 27,
632
+ STAGE_END: 28,
633
+ STAGE_SPEAKER: 29,
634
+ STAGE_TOPIC: 31,
635
+ GUILD_APPLICATION_PREMIUM_SUBSCRIPTION: 32,
636
+ GUILD_INCIDENT_ALERT_MODE_ENABLED: 36,
637
+ GUILD_INCIDENT_ALERT_MODE_DISABLED: 37,
638
+ GUILD_INCIDENT_REPORT_RAID: 38,
639
+ GUILD_INCIDENT_REPORT_FALSE_ALARM: 39,
640
+ POLL_RESULT: 46,
641
+ HD_STREAMING_UPGRADED: 55,
642
+ };
643
+ export const MessageComponentTypes = {
644
+ /**
645
+ * Container for other components
646
+ */
647
+ ACTION_ROW: 1,
648
+ /**
649
+ * Button object
650
+ */
651
+ BUTTON: 2,
652
+ /**
653
+ * Select menu for picking from defined text options
654
+ */
655
+ STRING_SELECT: 3,
656
+ /**
657
+ * Text input object
658
+ */
659
+ TEXT_INPUT: 4,
660
+ /**
661
+ * Select menu for users
662
+ */
663
+ USER_SELECT: 5,
664
+ /**
665
+ * Select menu for roles
666
+ */
667
+ ROLE_SELECT: 6,
668
+ /**
669
+ * Select menu for mentionables (users and roles)
670
+ */
671
+ MENTIONABLE_SELECT: 7,
672
+ /**
673
+ * Select menu for channels
674
+ */
675
+ CHANNEL_SELECT: 8,
676
+ /**
677
+ * Section component
678
+ */
679
+ SECTION: 9,
680
+ /**
681
+ * Text component
682
+ */
683
+ TEXT_DISPLAY: 10,
684
+ /**
685
+ * Thumbnail component
686
+ */
687
+ THUMBNAIL: 11,
688
+ /**
689
+ * Media gallery component
690
+ */
691
+ MEDIA_GALLERY: 12,
692
+ /**
693
+ * File component
694
+ */
695
+ FILE: 13,
696
+ /**
697
+ * Separator component
698
+ */
699
+ SEPARATOR: 14,
700
+ /**
701
+ * Container component
702
+ */
703
+ CONTAINER: 17,
704
+ /**
705
+ * Label component
706
+ */
707
+ LABEL: 18,
708
+ /**
709
+ * File upload component
710
+ */
711
+ FILE_UPLOAD: 19,
712
+ /**
713
+ * Radio group component
714
+ */
715
+ RADIO_GROUP: 21,
716
+ /**
717
+ * Checkbox group component
718
+ */
719
+ CHECKBOX_GROUP: 22,
720
+ /**
721
+ * Checkbox component
722
+ */
723
+ CHECKBOX: 23,
724
+ };
725
+ export const ButtonStyleTypes = {
726
+ PRIMARY: 1,
727
+ SECONDARY: 2,
728
+ SUCCESS: 3,
729
+ DANGER: 4,
730
+ LINK: 5,
731
+ PREMIUM: 6,
732
+ };
733
+ export const SnowflakeSelectDefaultValueTypes = {
734
+ USER: "user",
735
+ ROLE: "role",
736
+ CHANNEL: "channel",
737
+ };
738
+ export const TextInputStyleTypes = {
739
+ /**
740
+ * Single-line input
741
+ */
742
+ SHORT: 1,
743
+ /**
744
+ * Multi-line input
745
+ */
746
+ PARAGRAPH: 2,
747
+ };
748
+ export const MessageComponentSeparatorSpacingSize = {
749
+ /**
750
+ * Small spacing
751
+ */
752
+ SMALL: 1,
753
+ /**
754
+ * Large spacing
755
+ */
756
+ LARGE: 2,
757
+ };
758
+ export const StickerTypes = {
759
+ /**
760
+ * an official sticker in a pack, part of Nitro or in a removed purchasable pack
761
+ */
762
+ STANDARD: 1,
763
+ /**
764
+ * a sticker uploaded to a guild for the guild's members
765
+ */
766
+ GUILD: 2,
767
+ };
768
+ export const StickerFormatTypes = {
769
+ PNG: 1,
770
+ APNG: 2,
771
+ LOTTIE: 3,
772
+ GIF: 4,
773
+ };
774
+ export const InteractionTypes = {
775
+ /**
776
+ * Sent by Discord to validate your application's interaction handler
777
+ */
778
+ PING: 1,
779
+ /**
780
+ * Sent when a user uses an application command
781
+ */
782
+ APPLICATION_COMMAND: 2,
783
+ /**
784
+ * Sent when a user interacts with a message component previously sent by your application
785
+ */
786
+ MESSAGE_COMPONENT: 3,
787
+ /**
788
+ * Sent when a user is filling in an autocomplete option in a chat command
789
+ */
790
+ APPLICATION_COMMAND_AUTOCOMPLETE: 4,
791
+ /**
792
+ * Sent when a user submits a modal previously sent by your application
793
+ */
794
+ MODAL_SUBMIT: 5,
795
+ /**
796
+ * Sent when Discord is checking if a user can purchase a Social Layer SKU
797
+ */
798
+ SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6,
799
+ };
800
+ export const MessageShareCustomUserThemeBaseTheme = {
801
+ /**
802
+ * No base theme
803
+ */
804
+ UNSET: 0,
805
+ /**
806
+ * Dark base theme
807
+ */
808
+ DARK: 1,
809
+ /**
810
+ * Light base theme
811
+ */
812
+ LIGHT: 2,
813
+ /**
814
+ * Darker base theme
815
+ */
816
+ DARKER: 3,
817
+ /**
818
+ * Midnight base theme
819
+ */
820
+ MIDNIGHT: 4,
821
+ };
822
+ export const AllowedMentionTypes = {
823
+ /**
824
+ * Controls role mentions
825
+ */
826
+ USERS: "users",
827
+ /**
828
+ * Controls user mentions
829
+ */
830
+ ROLES: "roles",
831
+ /**
832
+ * Controls @everyone and @here mentions
833
+ */
834
+ EVERYONE: "everyone",
835
+ };
836
+ export const ReactionTypes = {
837
+ /**
838
+ * Normal reaction type
839
+ */
840
+ NORMAL: 0,
841
+ /**
842
+ * Burst reaction type
843
+ */
844
+ BURST: 1,
845
+ };
846
+ export const ThreadSortingMode = {
847
+ RELEVANCE: "relevance",
848
+ CREATION_TIME: "creation_time",
849
+ LAST_MESSAGE_TIME: "last_message_time",
850
+ ARCHIVE_TIME: "archive_time",
851
+ };
852
+ export const SortingOrder = {
853
+ ASC: "asc",
854
+ DESC: "desc",
855
+ };
856
+ export const WebhookTypes = {
857
+ /**
858
+ * Incoming Webhooks can post messages to channels with a generated token
859
+ */
860
+ GUILD_INCOMING: 1,
861
+ /**
862
+ * Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels
863
+ */
864
+ CHANNEL_FOLLOWER: 2,
865
+ /**
866
+ * Application webhooks are webhooks used with Interactions
867
+ */
868
+ APPLICATION_INCOMING: 3,
869
+ };
870
+ export const UserNotificationSettings = {
871
+ /**
872
+ * members will receive notifications for all messages by default
873
+ */
874
+ ALL_MESSAGES: 0,
875
+ /**
876
+ * members will receive notifications only for messages that @mention them by default
877
+ */
878
+ ONLY_MENTIONS: 1,
879
+ };
880
+ export const GuildExplicitContentFilterTypes = {
881
+ /**
882
+ * media content will not be scanned
883
+ */
884
+ DISABLED: 0,
885
+ /**
886
+ * media content sent by members without roles will be scanned
887
+ */
888
+ MEMBERS_WITHOUT_ROLES: 1,
889
+ /**
890
+ * media content sent by all members will be scanned
891
+ */
892
+ ALL_MEMBERS: 2,
893
+ };
894
+ export const AvailableLocalesEnum = {
895
+ /**
896
+ * The ar locale
897
+ */
898
+ ar: "ar",
899
+ /**
900
+ * The bg locale
901
+ */
902
+ bg: "bg",
903
+ /**
904
+ * The cs locale
905
+ */
906
+ cs: "cs",
907
+ /**
908
+ * The da locale
909
+ */
910
+ da: "da",
911
+ /**
912
+ * The de locale
913
+ */
914
+ de: "de",
915
+ /**
916
+ * The el locale
917
+ */
918
+ el: "el",
919
+ /**
920
+ * The en-GB locale
921
+ */
922
+ "en-GB": "en-GB",
923
+ /**
924
+ * The en-US locale
925
+ */
926
+ "en-US": "en-US",
927
+ /**
928
+ * The es-419 locale
929
+ */
930
+ "es-419": "es-419",
931
+ /**
932
+ * The es-ES locale
933
+ */
934
+ "es-ES": "es-ES",
935
+ /**
936
+ * The fi locale
937
+ */
938
+ fi: "fi",
939
+ /**
940
+ * The fr locale
941
+ */
942
+ fr: "fr",
943
+ /**
944
+ * The he locale
945
+ */
946
+ he: "he",
947
+ /**
948
+ * The hi locale
949
+ */
950
+ hi: "hi",
951
+ /**
952
+ * The hr locale
953
+ */
954
+ hr: "hr",
955
+ /**
956
+ * The hu locale
957
+ */
958
+ hu: "hu",
959
+ /**
960
+ * The id locale
961
+ */
962
+ id: "id",
963
+ /**
964
+ * The it locale
965
+ */
966
+ it: "it",
967
+ /**
968
+ * The ja locale
969
+ */
970
+ ja: "ja",
971
+ /**
972
+ * The ko locale
973
+ */
974
+ ko: "ko",
975
+ /**
976
+ * The lt locale
977
+ */
978
+ lt: "lt",
979
+ /**
980
+ * The nl locale
981
+ */
982
+ nl: "nl",
983
+ /**
984
+ * The no locale
985
+ */
986
+ no: "no",
987
+ /**
988
+ * The pl locale
989
+ */
990
+ pl: "pl",
991
+ /**
992
+ * The pt-BR locale
993
+ */
994
+ "pt-BR": "pt-BR",
995
+ /**
996
+ * The ro locale
997
+ */
998
+ ro: "ro",
999
+ /**
1000
+ * The ru locale
1001
+ */
1002
+ ru: "ru",
1003
+ /**
1004
+ * The sv-SE locale
1005
+ */
1006
+ "sv-SE": "sv-SE",
1007
+ /**
1008
+ * The th locale
1009
+ */
1010
+ th: "th",
1011
+ /**
1012
+ * The tr locale
1013
+ */
1014
+ tr: "tr",
1015
+ /**
1016
+ * The uk locale
1017
+ */
1018
+ uk: "uk",
1019
+ /**
1020
+ * The vi locale
1021
+ */
1022
+ vi: "vi",
1023
+ /**
1024
+ * The zh-CN locale
1025
+ */
1026
+ "zh-CN": "zh-CN",
1027
+ /**
1028
+ * The zh-TW locale
1029
+ */
1030
+ "zh-TW": "zh-TW",
1031
+ };
1032
+ export const AfkTimeouts = {
1033
+ ONE_MINUTE: 60,
1034
+ FIVE_MINUTES: 300,
1035
+ FIFTEEN_MINUTES: 900,
1036
+ THIRTY_MINUTES: 1800,
1037
+ ONE_HOUR: 3600,
1038
+ };
1039
+ export const GuildMFALevel = {
1040
+ /**
1041
+ * Guild has no MFA/2FA requirement for moderation actions
1042
+ */
1043
+ NONE: 0,
1044
+ /**
1045
+ * Guild has a 2FA requirement for moderation actions
1046
+ */
1047
+ ELEVATED: 1,
1048
+ };
1049
+ export const PremiumGuildTiers = {
1050
+ /**
1051
+ * Guild has not unlocked any Server Boost perks
1052
+ */
1053
+ NONE: 0,
1054
+ /**
1055
+ * Guild has unlocked Server Boost level 1 perks
1056
+ */
1057
+ TIER_1: 1,
1058
+ /**
1059
+ * Guild has unlocked Server Boost level 2 perks
1060
+ */
1061
+ TIER_2: 2,
1062
+ /**
1063
+ * Guild has unlocked Server Boost level 3 perks
1064
+ */
1065
+ TIER_3: 3,
1066
+ };
1067
+ export const AuditLogActionTypes = {
1068
+ GUILD_UPDATE: 1,
1069
+ CHANNEL_CREATE: 10,
1070
+ CHANNEL_UPDATE: 11,
1071
+ CHANNEL_DELETE: 12,
1072
+ CHANNEL_OVERWRITE_CREATE: 13,
1073
+ CHANNEL_OVERWRITE_UPDATE: 14,
1074
+ CHANNEL_OVERWRITE_DELETE: 15,
1075
+ MEMBER_KICK: 20,
1076
+ MEMBER_PRUNE: 21,
1077
+ MEMBER_BAN_ADD: 22,
1078
+ MEMBER_BAN_REMOVE: 23,
1079
+ MEMBER_UPDATE: 24,
1080
+ MEMBER_ROLE_UPDATE: 25,
1081
+ MEMBER_MOVE: 26,
1082
+ MEMBER_DISCONNECT: 27,
1083
+ BOT_ADD: 28,
1084
+ ROLE_CREATE: 30,
1085
+ ROLE_UPDATE: 31,
1086
+ ROLE_DELETE: 32,
1087
+ INVITE_CREATE: 40,
1088
+ INVITE_UPDATE: 41,
1089
+ INVITE_DELETE: 42,
1090
+ WEBHOOK_CREATE: 50,
1091
+ WEBHOOK_UPDATE: 51,
1092
+ WEBHOOK_DELETE: 52,
1093
+ EMOJI_CREATE: 60,
1094
+ EMOJI_UPDATE: 61,
1095
+ EMOJI_DELETE: 62,
1096
+ MESSAGE_DELETE: 72,
1097
+ MESSAGE_BULK_DELETE: 73,
1098
+ MESSAGE_PIN: 74,
1099
+ MESSAGE_UNPIN: 75,
1100
+ INTEGRATION_CREATE: 80,
1101
+ INTEGRATION_UPDATE: 81,
1102
+ INTEGRATION_DELETE: 82,
1103
+ STAGE_INSTANCE_CREATE: 83,
1104
+ STAGE_INSTANCE_UPDATE: 84,
1105
+ STAGE_INSTANCE_DELETE: 85,
1106
+ STICKER_CREATE: 90,
1107
+ STICKER_UPDATE: 91,
1108
+ STICKER_DELETE: 92,
1109
+ GUILD_SCHEDULED_EVENT_CREATE: 100,
1110
+ GUILD_SCHEDULED_EVENT_UPDATE: 101,
1111
+ GUILD_SCHEDULED_EVENT_DELETE: 102,
1112
+ THREAD_CREATE: 110,
1113
+ THREAD_UPDATE: 111,
1114
+ THREAD_DELETE: 112,
1115
+ APPLICATION_COMMAND_PERMISSION_UPDATE: 121,
1116
+ SOUNDBOARD_SOUND_CREATE: 130,
1117
+ SOUNDBOARD_SOUND_UPDATE: 131,
1118
+ SOUNDBOARD_SOUND_DELETE: 132,
1119
+ AUTO_MODERATION_RULE_CREATE: 140,
1120
+ AUTO_MODERATION_RULE_UPDATE: 141,
1121
+ AUTO_MODERATION_RULE_DELETE: 142,
1122
+ AUTO_MODERATION_BLOCK_MESSAGE: 143,
1123
+ AUTO_MODERATION_FLAG_TO_CHANNEL: 144,
1124
+ AUTO_MODERATION_USER_COMM_DISABLED: 145,
1125
+ AUTO_MODERATION_QUARANTINE_USER: 146,
1126
+ CREATOR_MONETIZATION_REQUEST_CREATED: 150,
1127
+ CREATOR_MONETIZATION_TERMS_ACCEPTED: 151,
1128
+ ONBOARDING_PROMPT_CREATE: 163,
1129
+ ONBOARDING_PROMPT_UPDATE: 164,
1130
+ ONBOARDING_PROMPT_DELETE: 165,
1131
+ ONBOARDING_CREATE: 166,
1132
+ ONBOARDING_UPDATE: 167,
1133
+ GUILD_HOME_FEATURE_ITEM: 171,
1134
+ GUILD_HOME_REMOVE_ITEM: 172,
1135
+ HARMFUL_LINKS_BLOCKED_MESSAGE: 180,
1136
+ HOME_SETTINGS_CREATE: 190,
1137
+ HOME_SETTINGS_UPDATE: 191,
1138
+ VOICE_CHANNEL_STATUS_CREATE: 192,
1139
+ VOICE_CHANNEL_STATUS_DELETE: 193,
1140
+ GUILD_PROFILE_UPDATE: 211,
1141
+ };
1142
+ export const IntegrationTypes = {
1143
+ DISCORD: "discord",
1144
+ TWITCH: "twitch",
1145
+ YOUTUBE: "youtube",
1146
+ GUILD_SUBSCRIPTION: "guild_subscription",
1147
+ };
1148
+ export const AutomodEventType = {
1149
+ /**
1150
+ * A user submitted a message to a channel
1151
+ */
1152
+ MESSAGE_SEND: 1,
1153
+ /**
1154
+ * A user is attempting to join the server or a member's properties were updated.
1155
+ */
1156
+ GUILD_MEMBER_JOIN_OR_UPDATE: 2,
1157
+ };
1158
+ export const AutomodActionType = {
1159
+ /**
1160
+ * Block a user's message and prevent it from being posted. A custom explanation can be specified and shown to members whenever their message is blocked
1161
+ */
1162
+ BLOCK_MESSAGE: 1,
1163
+ /**
1164
+ * Send a system message to a channel in order to log the user message that triggered the rule
1165
+ */
1166
+ FLAG_TO_CHANNEL: 2,
1167
+ /**
1168
+ * Temporarily disable a user's ability to communicate in the server (timeout)
1169
+ */
1170
+ USER_COMMUNICATION_DISABLED: 3,
1171
+ /**
1172
+ * Prevent a user from interacting in the server
1173
+ */
1174
+ QUARANTINE_USER: 4,
1175
+ };
1176
+ export const AutomodTriggerType = {
1177
+ /**
1178
+ * Check if content contains words from a list of keywords or matches regex
1179
+ */
1180
+ KEYWORD: 1,
1181
+ /**
1182
+ * DEPRECATED
1183
+ */
1184
+ SPAM_LINK: 2,
1185
+ /**
1186
+ * Check if content represents generic spam
1187
+ */
1188
+ ML_SPAM: 3,
1189
+ /**
1190
+ * Check if content contains words from internal pre-defined wordsets
1191
+ */
1192
+ DEFAULT_KEYWORD_LIST: 4,
1193
+ /**
1194
+ * Check if content contains more unique mentions than allowed
1195
+ */
1196
+ MENTION_SPAM: 5,
1197
+ };
1198
+ export const AutomodKeywordPresetType = {
1199
+ /**
1200
+ * Words and phrases that may be considered profanity
1201
+ */
1202
+ PROFANITY: 1,
1203
+ /**
1204
+ * Words and phrases that may be considered as sexual content
1205
+ */
1206
+ SEXUAL_CONTENT: 2,
1207
+ /**
1208
+ * Words and phrases that may be considered slurs and hate speech
1209
+ */
1210
+ SLURS: 3,
1211
+ };
1212
+ export const IntegrationExpireBehaviorTypes = {
1213
+ /**
1214
+ * Remove role
1215
+ */
1216
+ REMOVE_ROLE: 0,
1217
+ /**
1218
+ * Kick
1219
+ */
1220
+ KICK: 1,
1221
+ };
1222
+ export const IntegrationExpireGracePeriodTypes = {
1223
+ /**
1224
+ * 1 day
1225
+ */
1226
+ ONE_DAY: 1,
1227
+ /**
1228
+ * 3 days
1229
+ */
1230
+ THREE_DAYS: 3,
1231
+ /**
1232
+ * 7 days
1233
+ */
1234
+ SEVEN_DAYS: 7,
1235
+ /**
1236
+ * 14 days
1237
+ */
1238
+ FOURTEEN_DAYS: 14,
1239
+ /**
1240
+ * 30 days
1241
+ */
1242
+ THIRTY_DAYS: 30,
1243
+ };
1244
+ export const NewMemberActionType = {
1245
+ VIEW: 0,
1246
+ TALK: 1,
1247
+ };
1248
+ export const OnboardingPromptType = {
1249
+ /**
1250
+ * Multiple choice options
1251
+ */
1252
+ MULTIPLE_CHOICE: 0,
1253
+ /**
1254
+ * Many options shown as a dropdown
1255
+ */
1256
+ DROPDOWN: 1,
1257
+ };
1258
+ export const GuildOnboardingMode = {
1259
+ /**
1260
+ * Only Default Channels considered in constraints
1261
+ */
1262
+ ONBOARDING_DEFAULT: 0,
1263
+ /**
1264
+ * Default Channels and Onboarding Prompts considered in constraints
1265
+ */
1266
+ ONBOARDING_ADVANCED: 1,
1267
+ };
1268
+ export const WidgetImageStyles = {
1269
+ /**
1270
+ * shield style widget with Discord icon and guild members online count
1271
+ */
1272
+ SHIELD: "shield",
1273
+ /**
1274
+ * large image with guild icon, name and online count. "POWERED BY DISCORD" as the footer of the widget
1275
+ */
1276
+ BANNER1: "banner1",
1277
+ /**
1278
+ * smaller widget style with guild icon, name and online count. Split on the right with Discord logo
1279
+ */
1280
+ BANNER2: "banner2",
1281
+ /**
1282
+ * large image with guild icon, name and online count. In the footer, Discord logo on the left and "Chat Now" on the right
1283
+ */
1284
+ BANNER3: "banner3",
1285
+ /**
1286
+ * large Discord logo at the top of the widget. Guild icon, name and online count in the middle portion of the widget and a "JOIN MY SERVER" button at the bottom
1287
+ */
1288
+ BANNER4: "banner4",
1289
+ };
1290
+ export const InteractionCallbackTypes = {
1291
+ PONG: 1,
1292
+ CHANNEL_MESSAGE_WITH_SOURCE: 4,
1293
+ DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE: 5,
1294
+ DEFERRED_UPDATE_MESSAGE: 6,
1295
+ UPDATE_MESSAGE: 7,
1296
+ APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8,
1297
+ MODAL: 9,
1298
+ LAUNCH_ACTIVITY: 12,
1299
+ SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13,
1300
+ };
1301
+ export const TargetUsersJobStatusTypes = {
1302
+ /**
1303
+ * The default value.
1304
+ */
1305
+ UNSPECIFIED: 0,
1306
+ /**
1307
+ * The job is still being processed.
1308
+ */
1309
+ PROCESSING: 1,
1310
+ /**
1311
+ * The job has been completed successfully.
1312
+ */
1313
+ COMPLETED: 2,
1314
+ /**
1315
+ * The job has failed, see error_message field for more details.
1316
+ */
1317
+ FAILED: 3,
1318
+ };
1319
+ export const ApplicationIdentityProviderAuthType = {
1320
+ OIDC: "OIDC",
1321
+ EPIC_ONLINE_SERVICES_ACCESS_TOKEN: "EPIC_ONLINE_SERVICES_ACCESS_TOKEN",
1322
+ EPIC_ONLINE_SERVICES_ID_TOKEN: "EPIC_ONLINE_SERVICES_ID_TOKEN",
1323
+ STEAM_SESSION_TICKET: "STEAM_SESSION_TICKET",
1324
+ UNITY_SERVICES_ID_TOKEN: "UNITY_SERVICES_ID_TOKEN",
1325
+ DISCORD_BOT_ISSUED_ACCESS_TOKEN: "DISCORD_BOT_ISSUED_ACCESS_TOKEN",
1326
+ APPLE_ID_TOKEN: "APPLE_ID_TOKEN",
1327
+ PLAYSTATION_NETWORK_ID_TOKEN: "PLAYSTATION_NETWORK_ID_TOKEN",
1328
+ };
1329
+ export const StageInstancesPrivacyLevels = {
1330
+ /**
1331
+ * The Stage instance is visible publicly. (deprecated)
1332
+ */
1333
+ PUBLIC: 1,
1334
+ /**
1335
+ * The Stage instance is visible publicly. (deprecated)
1336
+ */
1337
+ GUILD_ONLY: 2,
1338
+ };
1339
+ export const PremiumTypes = {
1340
+ /**
1341
+ * None
1342
+ */
1343
+ NONE: 0,
1344
+ /**
1345
+ * Nitro Classic
1346
+ */
1347
+ TIER_1: 1,
1348
+ /**
1349
+ * Nitro Standard
1350
+ */
1351
+ TIER_2: 2,
1352
+ /**
1353
+ * Nitro Basic
1354
+ */
1355
+ TIER_0: 3,
1356
+ };
1357
+ export const ConnectedAccountProviders = {
1358
+ BATTLENET: "battlenet",
1359
+ BLUESKY: "bluesky",
1360
+ BUNGIE: "bungie",
1361
+ EBAY: "ebay",
1362
+ EPIC_GAMES: "epicgames",
1363
+ FACEBOOK: "facebook",
1364
+ GITHUB: "github",
1365
+ INSTAGRAM: "instagram",
1366
+ MASTODON: "mastodon",
1367
+ LEAGUE_OF_LEGENDS: "leagueoflegends",
1368
+ PAYPAL: "paypal",
1369
+ PLAYSTATION: "playstation",
1370
+ REDDIT: "reddit",
1371
+ RIOT_GAMES: "riotgames",
1372
+ ROBLOX: "roblox",
1373
+ SKYPE: "skype",
1374
+ SPOTIFY: "spotify",
1375
+ STEAM: "steam",
1376
+ TIKTOK: "tiktok",
1377
+ TWITCH: "twitch",
1378
+ TWITTER: "twitter",
1379
+ XBOX: "xbox",
1380
+ YOUTUBE: "youtube",
1381
+ DOMAIN: "domain",
1382
+ };
1383
+ export const ConnectedAccountVisibility = {
1384
+ NONE: 0,
1385
+ EVERYONE: 1,
1386
+ };
1387
+ export const make = (httpClient, options = {}) => {
1388
+ const unexpectedStatus = (response) => Effect.flatMap(Effect.orElseSucceed(response.json, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.HttpClientError({
1389
+ reason: new HttpClientError.StatusCodeError({
1390
+ request: response.request,
1391
+ response,
1392
+ description: typeof description === "string"
1393
+ ? description
1394
+ : JSON.stringify(description),
1395
+ }),
1396
+ })));
1397
+ const withResponse = options.transformClient
1398
+ ? f => request => Effect.flatMap(Effect.flatMap(options.transformClient(httpClient), client => client.execute(request)), f)
1399
+ : f => request => Effect.flatMap(httpClient.execute(request), f);
1400
+ const decodeSuccess = (response) => response.json;
1401
+ const decodeVoid = (_response) => Effect.void;
1402
+ const decodeError = (tag) => (response) => Effect.flatMap(response.json, cause => Effect.fail(DiscordRestError(tag, cause, response)));
1403
+ const onRequest = (successCodes, errorCodes) => {
1404
+ const cases = { orElse: unexpectedStatus };
1405
+ for (const code of successCodes) {
1406
+ cases[code] = decodeSuccess;
1407
+ }
1408
+ if (errorCodes) {
1409
+ for (const [code, tag] of Object.entries(errorCodes)) {
1410
+ cases[code] = decodeError(tag);
1411
+ }
1412
+ }
1413
+ if (successCodes.length === 0) {
1414
+ cases["2xx"] = decodeVoid;
1415
+ }
1416
+ return withResponse(HttpClientResponse.matchStatus(cases));
1417
+ };
1418
+ return {
1419
+ httpClient,
1420
+ getMyApplication: () => HttpClientRequest.get(`/applications/@me`).pipe(onRequest(["2xx"], {
1421
+ "429": "RatelimitedResponse",
1422
+ "4xx": "ErrorResponse",
1423
+ })),
1424
+ updateMyApplication: options => HttpClientRequest.patch(`/applications/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1425
+ "429": "RatelimitedResponse",
1426
+ "4xx": "ErrorResponse",
1427
+ })),
1428
+ getApplication: applicationId => HttpClientRequest.get(`/applications/${applicationId}`).pipe(onRequest(["2xx"], {
1429
+ "429": "RatelimitedResponse",
1430
+ "4xx": "ErrorResponse",
1431
+ })),
1432
+ updateApplication: (applicationId, options) => HttpClientRequest.patch(`/applications/${applicationId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1433
+ "429": "RatelimitedResponse",
1434
+ "4xx": "ErrorResponse",
1435
+ })),
1436
+ applicationsGetActivityInstance: (applicationId, instanceId) => HttpClientRequest.get(`/applications/${applicationId}/activity-instances/${instanceId}`).pipe(onRequest(["2xx"], {
1437
+ "429": "RatelimitedResponse",
1438
+ "4xx": "ErrorResponse",
1439
+ })),
1440
+ uploadApplicationAttachment: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/attachment`).pipe(HttpClientRequest.bodyFormDataRecord(options), onRequest(["2xx"], {
1441
+ "429": "RatelimitedResponse",
1442
+ "4xx": "ErrorResponse",
1443
+ })),
1444
+ listApplicationCommands: (applicationId, options) => HttpClientRequest.get(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.setUrlParams({
1445
+ with_localizations: options?.["with_localizations"],
1446
+ }), onRequest(["2xx"], {
1447
+ "429": "RatelimitedResponse",
1448
+ "4xx": "ErrorResponse",
1449
+ })),
1450
+ bulkSetApplicationCommands: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1451
+ "429": "RatelimitedResponse",
1452
+ "4xx": "ErrorResponse",
1453
+ })),
1454
+ createApplicationCommand: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
1455
+ "429": "RatelimitedResponse",
1456
+ "4xx": "ErrorResponse",
1457
+ })),
1458
+ getApplicationCommand: (applicationId, commandId) => HttpClientRequest.get(`/applications/${applicationId}/commands/${commandId}`).pipe(onRequest(["2xx"], {
1459
+ "429": "RatelimitedResponse",
1460
+ "4xx": "ErrorResponse",
1461
+ })),
1462
+ deleteApplicationCommand: (applicationId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/commands/${commandId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1463
+ updateApplicationCommand: (applicationId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1464
+ "429": "RatelimitedResponse",
1465
+ "4xx": "ErrorResponse",
1466
+ })),
1467
+ listApplicationEmojis: applicationId => HttpClientRequest.get(`/applications/${applicationId}/emojis`).pipe(onRequest(["2xx"], {
1468
+ "429": "RatelimitedResponse",
1469
+ "4xx": "ErrorResponse",
1470
+ })),
1471
+ createApplicationEmoji: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1472
+ "429": "RatelimitedResponse",
1473
+ "4xx": "ErrorResponse",
1474
+ })),
1475
+ getApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.get(`/applications/${applicationId}/emojis/${emojiId}`).pipe(onRequest(["2xx"], {
1476
+ "429": "RatelimitedResponse",
1477
+ "4xx": "ErrorResponse",
1478
+ })),
1479
+ deleteApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.delete(`/applications/${applicationId}/emojis/${emojiId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1480
+ updateApplicationEmoji: (applicationId, emojiId, options) => HttpClientRequest.patch(`/applications/${applicationId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1481
+ "429": "RatelimitedResponse",
1482
+ "4xx": "ErrorResponse",
1483
+ })),
1484
+ getEntitlements: (applicationId, options) => HttpClientRequest.get(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.setUrlParams({
1485
+ user_id: options?.["user_id"],
1486
+ sku_ids: options?.["sku_ids"],
1487
+ guild_id: options?.["guild_id"],
1488
+ before: options?.["before"],
1489
+ after: options?.["after"],
1490
+ limit: options?.["limit"],
1491
+ exclude_ended: options?.["exclude_ended"],
1492
+ exclude_deleted: options?.["exclude_deleted"],
1493
+ only_active: options?.["only_active"],
1494
+ }), onRequest(["2xx"], {
1495
+ "429": "RatelimitedResponse",
1496
+ "4xx": "ErrorResponse",
1497
+ })),
1498
+ createEntitlement: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1499
+ "429": "RatelimitedResponse",
1500
+ "4xx": "ErrorResponse",
1501
+ })),
1502
+ getEntitlement: (applicationId, entitlementId) => HttpClientRequest.get(`/applications/${applicationId}/entitlements/${entitlementId}`).pipe(onRequest(["2xx"], {
1503
+ "429": "RatelimitedResponse",
1504
+ "4xx": "ErrorResponse",
1505
+ })),
1506
+ deleteEntitlement: (applicationId, entitlementId) => HttpClientRequest.delete(`/applications/${applicationId}/entitlements/${entitlementId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1507
+ consumeEntitlement: (applicationId, entitlementId) => HttpClientRequest.post(`/applications/${applicationId}/entitlements/${entitlementId}/consume`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1508
+ listGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.get(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.setUrlParams({
1509
+ with_localizations: options?.["with_localizations"],
1510
+ }), onRequest(["2xx"], {
1511
+ "429": "RatelimitedResponse",
1512
+ "4xx": "ErrorResponse",
1513
+ })),
1514
+ bulkSetGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1515
+ "429": "RatelimitedResponse",
1516
+ "4xx": "ErrorResponse",
1517
+ })),
1518
+ createGuildApplicationCommand: (applicationId, guildId, options) => HttpClientRequest.post(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
1519
+ "429": "RatelimitedResponse",
1520
+ "4xx": "ErrorResponse",
1521
+ })),
1522
+ listGuildApplicationCommandPermissions: (applicationId, guildId) => HttpClientRequest.get(`/applications/${applicationId}/guilds/${guildId}/commands/permissions`).pipe(onRequest(["2xx"], {
1523
+ "429": "RatelimitedResponse",
1524
+ "4xx": "ErrorResponse",
1525
+ })),
1526
+ getGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.get(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(onRequest(["2xx"], {
1527
+ "429": "RatelimitedResponse",
1528
+ "4xx": "ErrorResponse",
1529
+ })),
1530
+ deleteGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1531
+ updateGuildApplicationCommand: (applicationId, guildId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1532
+ "429": "RatelimitedResponse",
1533
+ "4xx": "ErrorResponse",
1534
+ })),
1535
+ getGuildApplicationCommandPermissions: (applicationId, guildId, commandId) => HttpClientRequest.get(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(onRequest(["2xx"], {
1536
+ "429": "RatelimitedResponse",
1537
+ "4xx": "ErrorResponse",
1538
+ })),
1539
+ setGuildApplicationCommandPermissions: (applicationId, guildId, commandId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1540
+ "429": "RatelimitedResponse",
1541
+ "4xx": "ErrorResponse",
1542
+ })),
1543
+ getApplicationRoleConnectionsMetadata: applicationId => HttpClientRequest.get(`/applications/${applicationId}/role-connections/metadata`).pipe(onRequest(["2xx"], {
1544
+ "429": "RatelimitedResponse",
1545
+ "4xx": "ErrorResponse",
1546
+ })),
1547
+ updateApplicationRoleConnectionsMetadata: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/role-connections/metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1548
+ "429": "RatelimitedResponse",
1549
+ "4xx": "ErrorResponse",
1550
+ })),
1551
+ getChannel: channelId => HttpClientRequest.get(`/channels/${channelId}`).pipe(onRequest(["2xx"], {
1552
+ "429": "RatelimitedResponse",
1553
+ "4xx": "ErrorResponse",
1554
+ })),
1555
+ deleteChannel: channelId => HttpClientRequest.delete(`/channels/${channelId}`).pipe(onRequest(["2xx"], {
1556
+ "429": "RatelimitedResponse",
1557
+ "4xx": "ErrorResponse",
1558
+ })),
1559
+ updateChannel: (channelId, options) => HttpClientRequest.patch(`/channels/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1560
+ "429": "RatelimitedResponse",
1561
+ "4xx": "ErrorResponse",
1562
+ })),
1563
+ followChannel: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1564
+ "429": "RatelimitedResponse",
1565
+ "4xx": "ErrorResponse",
1566
+ })),
1567
+ listChannelInvites: channelId => HttpClientRequest.get(`/channels/${channelId}/invites`).pipe(onRequest(["2xx"], {
1568
+ "429": "RatelimitedResponse",
1569
+ "4xx": "ErrorResponse",
1570
+ })),
1571
+ createChannelInvite: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1572
+ "429": "RatelimitedResponse",
1573
+ "4xx": "ErrorResponse",
1574
+ })),
1575
+ listMessages: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/messages`).pipe(HttpClientRequest.setUrlParams({
1576
+ around: options?.["around"],
1577
+ before: options?.["before"],
1578
+ after: options?.["after"],
1579
+ limit: options?.["limit"],
1580
+ }), onRequest(["2xx"], {
1581
+ "429": "RatelimitedResponse",
1582
+ "4xx": "ErrorResponse",
1583
+ })),
1584
+ createMessage: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1585
+ "429": "RatelimitedResponse",
1586
+ "4xx": "ErrorResponse",
1587
+ })),
1588
+ bulkDeleteMessages: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/bulk-delete`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1589
+ listPins: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/messages/pins`).pipe(HttpClientRequest.setUrlParams({
1590
+ before: options?.["before"],
1591
+ limit: options?.["limit"],
1592
+ }), onRequest(["2xx"], {
1593
+ "429": "RatelimitedResponse",
1594
+ "4xx": "ErrorResponse",
1595
+ })),
1596
+ createPin: (channelId, messageId) => HttpClientRequest.put(`/channels/${channelId}/messages/pins/${messageId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1597
+ deletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/pins/${messageId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1598
+ getMessage: (channelId, messageId) => HttpClientRequest.get(`/channels/${channelId}/messages/${messageId}`).pipe(onRequest(["2xx"], {
1599
+ "429": "RatelimitedResponse",
1600
+ "4xx": "ErrorResponse",
1601
+ })),
1602
+ deleteMessage: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1603
+ updateMessage: (channelId, messageId, options) => HttpClientRequest.patch(`/channels/${channelId}/messages/${messageId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1604
+ "429": "RatelimitedResponse",
1605
+ "4xx": "ErrorResponse",
1606
+ })),
1607
+ crosspostMessage: (channelId, messageId) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/crosspost`).pipe(onRequest(["2xx"], {
1608
+ "429": "RatelimitedResponse",
1609
+ "4xx": "ErrorResponse",
1610
+ })),
1611
+ deleteAllMessageReactions: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1612
+ listMessageReactionsByEmoji: (channelId, messageId, emojiName, options) => HttpClientRequest.get(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}`).pipe(HttpClientRequest.setUrlParams({
1613
+ after: options?.["after"],
1614
+ limit: options?.["limit"],
1615
+ type: options?.["type"],
1616
+ }), onRequest(["2xx"], {
1617
+ "429": "RatelimitedResponse",
1618
+ "4xx": "ErrorResponse",
1619
+ })),
1620
+ deleteAllMessageReactionsByEmoji: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1621
+ addMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.put(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/@me`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1622
+ deleteMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/@me`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1623
+ deleteUserMessageReaction: (channelId, messageId, emojiName, userId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/${userId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1624
+ createThreadFromMessage: (channelId, messageId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1625
+ "429": "RatelimitedResponse",
1626
+ "4xx": "ErrorResponse",
1627
+ })),
1628
+ setChannelPermissionOverwrite: (channelId, overwriteId, options) => HttpClientRequest.put(`/channels/${channelId}/permissions/${overwriteId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1629
+ deleteChannelPermissionOverwrite: (channelId, overwriteId) => HttpClientRequest.delete(`/channels/${channelId}/permissions/${overwriteId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1630
+ deprecatedListPins: channelId => HttpClientRequest.get(`/channels/${channelId}/pins`).pipe(onRequest(["2xx"], {
1631
+ "429": "RatelimitedResponse",
1632
+ "4xx": "ErrorResponse",
1633
+ })),
1634
+ deprecatedCreatePin: (channelId, messageId) => HttpClientRequest.put(`/channels/${channelId}/pins/${messageId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1635
+ deprecatedDeletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/pins/${messageId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1636
+ getAnswerVoters: (channelId, messageId, answerId, options) => HttpClientRequest.get(`/channels/${channelId}/polls/${messageId}/answers/${answerId}`).pipe(HttpClientRequest.setUrlParams({
1637
+ after: options?.["after"],
1638
+ limit: options?.["limit"],
1639
+ }), onRequest(["2xx"], {
1640
+ "429": "RatelimitedResponse",
1641
+ "4xx": "ErrorResponse",
1642
+ })),
1643
+ pollExpire: (channelId, messageId) => HttpClientRequest.post(`/channels/${channelId}/polls/${messageId}/expire`).pipe(onRequest(["2xx"], {
1644
+ "429": "RatelimitedResponse",
1645
+ "4xx": "ErrorResponse",
1646
+ })),
1647
+ addGroupDmUser: (channelId, userId, options) => HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1648
+ "429": "RatelimitedResponse",
1649
+ "4xx": "ErrorResponse",
1650
+ })),
1651
+ deleteGroupDmUser: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/recipients/${userId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1652
+ sendSoundboardSound: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/send-soundboard-sound`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1653
+ listThreadMembers: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/thread-members`).pipe(HttpClientRequest.setUrlParams({
1654
+ with_member: options?.["with_member"],
1655
+ limit: options?.["limit"],
1656
+ after: options?.["after"],
1657
+ }), onRequest(["2xx"], {
1658
+ "429": "RatelimitedResponse",
1659
+ "4xx": "ErrorResponse",
1660
+ })),
1661
+ joinThread: channelId => HttpClientRequest.put(`/channels/${channelId}/thread-members/@me`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1662
+ leaveThread: channelId => HttpClientRequest.delete(`/channels/${channelId}/thread-members/@me`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1663
+ getThreadMember: (channelId, userId, options) => HttpClientRequest.get(`/channels/${channelId}/thread-members/${userId}`).pipe(HttpClientRequest.setUrlParams({
1664
+ with_member: options?.["with_member"],
1665
+ }), onRequest(["2xx"], {
1666
+ "429": "RatelimitedResponse",
1667
+ "4xx": "ErrorResponse",
1668
+ })),
1669
+ addThreadMember: (channelId, userId) => HttpClientRequest.put(`/channels/${channelId}/thread-members/${userId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1670
+ deleteThreadMember: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/thread-members/${userId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1671
+ createThread: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1672
+ "429": "RatelimitedResponse",
1673
+ "4xx": "ErrorResponse",
1674
+ })),
1675
+ listPrivateArchivedThreads: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/threads/archived/private`).pipe(HttpClientRequest.setUrlParams({
1676
+ before: options?.["before"],
1677
+ limit: options?.["limit"],
1678
+ }), onRequest(["2xx"], {
1679
+ "429": "RatelimitedResponse",
1680
+ "4xx": "ErrorResponse",
1681
+ })),
1682
+ listPublicArchivedThreads: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/threads/archived/public`).pipe(HttpClientRequest.setUrlParams({
1683
+ before: options?.["before"],
1684
+ limit: options?.["limit"],
1685
+ }), onRequest(["2xx"], {
1686
+ "429": "RatelimitedResponse",
1687
+ "4xx": "ErrorResponse",
1688
+ })),
1689
+ threadSearch: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/threads/search`).pipe(HttpClientRequest.setUrlParams({
1690
+ name: options?.["name"],
1691
+ slop: options?.["slop"],
1692
+ min_id: options?.["min_id"],
1693
+ max_id: options?.["max_id"],
1694
+ tag: options?.["tag"],
1695
+ tag_setting: options?.["tag_setting"],
1696
+ archived: options?.["archived"],
1697
+ sort_by: options?.["sort_by"],
1698
+ sort_order: options?.["sort_order"],
1699
+ limit: options?.["limit"],
1700
+ offset: options?.["offset"],
1701
+ }), onRequest(["2xx"], {
1702
+ "429": "RatelimitedResponse",
1703
+ "4xx": "ErrorResponse",
1704
+ })),
1705
+ triggerTypingIndicator: channelId => HttpClientRequest.post(`/channels/${channelId}/typing`).pipe(onRequest(["2xx"], {
1706
+ "429": "RatelimitedResponse",
1707
+ "4xx": "ErrorResponse",
1708
+ })),
1709
+ listMyPrivateArchivedThreads: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/users/@me/threads/archived/private`).pipe(HttpClientRequest.setUrlParams({
1710
+ before: options?.["before"],
1711
+ limit: options?.["limit"],
1712
+ }), onRequest(["2xx"], {
1713
+ "429": "RatelimitedResponse",
1714
+ "4xx": "ErrorResponse",
1715
+ })),
1716
+ listChannelWebhooks: channelId => HttpClientRequest.get(`/channels/${channelId}/webhooks`).pipe(onRequest(["2xx"], {
1717
+ "429": "RatelimitedResponse",
1718
+ "4xx": "ErrorResponse",
1719
+ })),
1720
+ createWebhook: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1721
+ "429": "RatelimitedResponse",
1722
+ "4xx": "ErrorResponse",
1723
+ })),
1724
+ getGateway: () => HttpClientRequest.get(`/gateway`).pipe(onRequest(["2xx"], {
1725
+ "429": "RatelimitedResponse",
1726
+ "4xx": "ErrorResponse",
1727
+ })),
1728
+ getBotGateway: () => HttpClientRequest.get(`/gateway/bot`).pipe(onRequest(["2xx"], {
1729
+ "429": "RatelimitedResponse",
1730
+ "4xx": "ErrorResponse",
1731
+ })),
1732
+ getGuildTemplate: code => HttpClientRequest.get(`/guilds/templates/${code}`).pipe(onRequest(["2xx"], {
1733
+ "429": "RatelimitedResponse",
1734
+ "4xx": "ErrorResponse",
1735
+ })),
1736
+ getGuild: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}`).pipe(HttpClientRequest.setUrlParams({
1737
+ with_counts: options?.["with_counts"],
1738
+ }), onRequest(["2xx"], {
1739
+ "429": "RatelimitedResponse",
1740
+ "4xx": "ErrorResponse",
1741
+ })),
1742
+ updateGuild: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1743
+ "429": "RatelimitedResponse",
1744
+ "4xx": "ErrorResponse",
1745
+ })),
1746
+ listGuildAuditLogEntries: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/audit-logs`).pipe(HttpClientRequest.setUrlParams({
1747
+ user_id: options?.["user_id"],
1748
+ target_id: options?.["target_id"],
1749
+ action_type: options?.["action_type"],
1750
+ before: options?.["before"],
1751
+ after: options?.["after"],
1752
+ limit: options?.["limit"],
1753
+ }), onRequest(["2xx"], {
1754
+ "429": "RatelimitedResponse",
1755
+ "4xx": "ErrorResponse",
1756
+ })),
1757
+ listAutoModerationRules: guildId => HttpClientRequest.get(`/guilds/${guildId}/auto-moderation/rules`).pipe(onRequest(["2xx"], {
1758
+ "429": "RatelimitedResponse",
1759
+ "4xx": "ErrorResponse",
1760
+ })),
1761
+ createAutoModerationRule: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1762
+ "429": "RatelimitedResponse",
1763
+ "4xx": "ErrorResponse",
1764
+ })),
1765
+ getAutoModerationRule: (guildId, ruleId) => HttpClientRequest.get(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(onRequest(["2xx"], {
1766
+ "429": "RatelimitedResponse",
1767
+ "4xx": "ErrorResponse",
1768
+ })),
1769
+ deleteAutoModerationRule: (guildId, ruleId) => HttpClientRequest.delete(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1770
+ updateAutoModerationRule: (guildId, ruleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1771
+ "429": "RatelimitedResponse",
1772
+ "4xx": "ErrorResponse",
1773
+ })),
1774
+ listGuildBans: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/bans`).pipe(HttpClientRequest.setUrlParams({
1775
+ limit: options?.["limit"],
1776
+ before: options?.["before"],
1777
+ after: options?.["after"],
1778
+ }), onRequest(["2xx"], {
1779
+ "429": "RatelimitedResponse",
1780
+ "4xx": "ErrorResponse",
1781
+ })),
1782
+ getGuildBan: (guildId, userId) => HttpClientRequest.get(`/guilds/${guildId}/bans/${userId}`).pipe(onRequest(["2xx"], {
1783
+ "429": "RatelimitedResponse",
1784
+ "4xx": "ErrorResponse",
1785
+ })),
1786
+ banUserFromGuild: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1787
+ unbanUserFromGuild: (guildId, userId, options) => HttpClientRequest.delete(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1788
+ bulkBanUsersFromGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1789
+ "429": "RatelimitedResponse",
1790
+ "4xx": "ErrorResponse",
1791
+ })),
1792
+ listGuildChannels: guildId => HttpClientRequest.get(`/guilds/${guildId}/channels`).pipe(onRequest(["2xx"], {
1793
+ "429": "RatelimitedResponse",
1794
+ "4xx": "ErrorResponse",
1795
+ })),
1796
+ createGuildChannel: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1797
+ "429": "RatelimitedResponse",
1798
+ "4xx": "ErrorResponse",
1799
+ })),
1800
+ bulkUpdateGuildChannels: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1801
+ listGuildEmojis: guildId => HttpClientRequest.get(`/guilds/${guildId}/emojis`).pipe(onRequest(["2xx"], {
1802
+ "429": "RatelimitedResponse",
1803
+ "4xx": "ErrorResponse",
1804
+ })),
1805
+ createGuildEmoji: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1806
+ "429": "RatelimitedResponse",
1807
+ "4xx": "ErrorResponse",
1808
+ })),
1809
+ getGuildEmoji: (guildId, emojiId) => HttpClientRequest.get(`/guilds/${guildId}/emojis/${emojiId}`).pipe(onRequest(["2xx"], {
1810
+ "429": "RatelimitedResponse",
1811
+ "4xx": "ErrorResponse",
1812
+ })),
1813
+ deleteGuildEmoji: (guildId, emojiId) => HttpClientRequest.delete(`/guilds/${guildId}/emojis/${emojiId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1814
+ updateGuildEmoji: (guildId, emojiId, options) => HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1815
+ "429": "RatelimitedResponse",
1816
+ "4xx": "ErrorResponse",
1817
+ })),
1818
+ listGuildIntegrations: guildId => HttpClientRequest.get(`/guilds/${guildId}/integrations`).pipe(onRequest(["2xx"], {
1819
+ "429": "RatelimitedResponse",
1820
+ "4xx": "ErrorResponse",
1821
+ })),
1822
+ deleteGuildIntegration: (guildId, integrationId) => HttpClientRequest.delete(`/guilds/${guildId}/integrations/${integrationId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1823
+ listGuildInvites: guildId => HttpClientRequest.get(`/guilds/${guildId}/invites`).pipe(onRequest(["2xx"], {
1824
+ "429": "RatelimitedResponse",
1825
+ "4xx": "ErrorResponse",
1826
+ })),
1827
+ listGuildMembers: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/members`).pipe(HttpClientRequest.setUrlParams({
1828
+ limit: options?.["limit"],
1829
+ after: options?.["after"],
1830
+ }), onRequest(["2xx"], {
1831
+ "429": "RatelimitedResponse",
1832
+ "4xx": "ErrorResponse",
1833
+ })),
1834
+ updateMyGuildMember: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1835
+ "429": "RatelimitedResponse",
1836
+ "4xx": "ErrorResponse",
1837
+ })),
1838
+ searchGuildMembers: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/members/search`).pipe(HttpClientRequest.setUrlParams({
1839
+ limit: options?.["limit"],
1840
+ query: options?.["query"],
1841
+ }), onRequest(["2xx"], {
1842
+ "429": "RatelimitedResponse",
1843
+ "4xx": "ErrorResponse",
1844
+ })),
1845
+ getGuildMember: (guildId, userId) => HttpClientRequest.get(`/guilds/${guildId}/members/${userId}`).pipe(onRequest(["2xx"], {
1846
+ "429": "RatelimitedResponse",
1847
+ "4xx": "ErrorResponse",
1848
+ })),
1849
+ addGuildMember: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1850
+ "429": "RatelimitedResponse",
1851
+ "4xx": "ErrorResponse",
1852
+ })),
1853
+ deleteGuildMember: (guildId, userId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1854
+ updateGuildMember: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1855
+ "429": "RatelimitedResponse",
1856
+ "4xx": "ErrorResponse",
1857
+ })),
1858
+ addGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}/roles/${roleId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1859
+ deleteGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}/roles/${roleId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1860
+ getGuildNewMemberWelcome: guildId => HttpClientRequest.get(`/guilds/${guildId}/new-member-welcome`).pipe(onRequest(["2xx"], {
1861
+ "429": "RatelimitedResponse",
1862
+ "4xx": "ErrorResponse",
1863
+ })),
1864
+ getGuildsOnboarding: guildId => HttpClientRequest.get(`/guilds/${guildId}/onboarding`).pipe(onRequest(["2xx"], {
1865
+ "429": "RatelimitedResponse",
1866
+ "4xx": "ErrorResponse",
1867
+ })),
1868
+ putGuildsOnboarding: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1869
+ "429": "RatelimitedResponse",
1870
+ "4xx": "ErrorResponse",
1871
+ })),
1872
+ getGuildPreview: guildId => HttpClientRequest.get(`/guilds/${guildId}/preview`).pipe(onRequest(["2xx"], {
1873
+ "429": "RatelimitedResponse",
1874
+ "4xx": "ErrorResponse",
1875
+ })),
1876
+ previewPruneGuild: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.setUrlParams({
1877
+ days: options?.["days"],
1878
+ include_roles: options?.["include_roles"],
1879
+ }), onRequest(["2xx"], {
1880
+ "429": "RatelimitedResponse",
1881
+ "4xx": "ErrorResponse",
1882
+ })),
1883
+ pruneGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1884
+ "429": "RatelimitedResponse",
1885
+ "4xx": "ErrorResponse",
1886
+ })),
1887
+ listGuildVoiceRegions: guildId => HttpClientRequest.get(`/guilds/${guildId}/regions`).pipe(onRequest(["2xx"], {
1888
+ "429": "RatelimitedResponse",
1889
+ "4xx": "ErrorResponse",
1890
+ })),
1891
+ listGuildRoles: guildId => HttpClientRequest.get(`/guilds/${guildId}/roles`).pipe(onRequest(["2xx"], {
1892
+ "429": "RatelimitedResponse",
1893
+ "4xx": "ErrorResponse",
1894
+ })),
1895
+ createGuildRole: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1896
+ "429": "RatelimitedResponse",
1897
+ "4xx": "ErrorResponse",
1898
+ })),
1899
+ bulkUpdateGuildRoles: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1900
+ "429": "RatelimitedResponse",
1901
+ "4xx": "ErrorResponse",
1902
+ })),
1903
+ guildRoleMemberCounts: guildId => HttpClientRequest.get(`/guilds/${guildId}/roles/member-counts`).pipe(onRequest(["2xx"], {
1904
+ "429": "RatelimitedResponse",
1905
+ "4xx": "ErrorResponse",
1906
+ })),
1907
+ getGuildRole: (guildId, roleId) => HttpClientRequest.get(`/guilds/${guildId}/roles/${roleId}`).pipe(onRequest(["2xx"], {
1908
+ "429": "RatelimitedResponse",
1909
+ "4xx": "ErrorResponse",
1910
+ })),
1911
+ deleteGuildRole: (guildId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/roles/${roleId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1912
+ updateGuildRole: (guildId, roleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1913
+ "429": "RatelimitedResponse",
1914
+ "4xx": "ErrorResponse",
1915
+ })),
1916
+ listGuildScheduledEvents: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.setUrlParams({
1917
+ with_user_count: options?.["with_user_count"],
1918
+ }), onRequest(["2xx"], {
1919
+ "429": "RatelimitedResponse",
1920
+ "4xx": "ErrorResponse",
1921
+ })),
1922
+ createGuildScheduledEvent: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1923
+ "429": "RatelimitedResponse",
1924
+ "4xx": "ErrorResponse",
1925
+ })),
1926
+ getGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.setUrlParams({
1927
+ with_user_count: options?.["with_user_count"],
1928
+ }), onRequest(["2xx"], {
1929
+ "429": "RatelimitedResponse",
1930
+ "4xx": "ErrorResponse",
1931
+ })),
1932
+ deleteGuildScheduledEvent: (guildId, guildScheduledEventId) => HttpClientRequest.delete(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1933
+ updateGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.patch(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1934
+ "429": "RatelimitedResponse",
1935
+ "4xx": "ErrorResponse",
1936
+ })),
1937
+ listGuildScheduledEventUsers: (guildId, guildScheduledEventId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`).pipe(HttpClientRequest.setUrlParams({
1938
+ with_member: options?.["with_member"],
1939
+ limit: options?.["limit"],
1940
+ before: options?.["before"],
1941
+ after: options?.["after"],
1942
+ }), onRequest(["2xx"], {
1943
+ "429": "RatelimitedResponse",
1944
+ "4xx": "ErrorResponse",
1945
+ })),
1946
+ listGuildSoundboardSounds: guildId => HttpClientRequest.get(`/guilds/${guildId}/soundboard-sounds`).pipe(onRequest(["2xx"], {
1947
+ "429": "RatelimitedResponse",
1948
+ "4xx": "ErrorResponse",
1949
+ })),
1950
+ createGuildSoundboardSound: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1951
+ "429": "RatelimitedResponse",
1952
+ "4xx": "ErrorResponse",
1953
+ })),
1954
+ getGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.get(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(onRequest(["2xx"], {
1955
+ "429": "RatelimitedResponse",
1956
+ "4xx": "ErrorResponse",
1957
+ })),
1958
+ deleteGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.delete(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1959
+ updateGuildSoundboardSound: (guildId, soundId, options) => HttpClientRequest.patch(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1960
+ "429": "RatelimitedResponse",
1961
+ "4xx": "ErrorResponse",
1962
+ })),
1963
+ listGuildStickers: guildId => HttpClientRequest.get(`/guilds/${guildId}/stickers`).pipe(onRequest(["2xx"], {
1964
+ "429": "RatelimitedResponse",
1965
+ "4xx": "ErrorResponse",
1966
+ })),
1967
+ createGuildSticker: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/stickers`).pipe(HttpClientRequest.bodyFormDataRecord(options), onRequest(["2xx"], {
1968
+ "429": "RatelimitedResponse",
1969
+ "4xx": "ErrorResponse",
1970
+ })),
1971
+ getGuildSticker: (guildId, stickerId) => HttpClientRequest.get(`/guilds/${guildId}/stickers/${stickerId}`).pipe(onRequest(["2xx"], {
1972
+ "429": "RatelimitedResponse",
1973
+ "4xx": "ErrorResponse",
1974
+ })),
1975
+ deleteGuildSticker: (guildId, stickerId) => HttpClientRequest.delete(`/guilds/${guildId}/stickers/${stickerId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
1976
+ updateGuildSticker: (guildId, stickerId, options) => HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1977
+ "429": "RatelimitedResponse",
1978
+ "4xx": "ErrorResponse",
1979
+ })),
1980
+ listGuildTemplates: guildId => HttpClientRequest.get(`/guilds/${guildId}/templates`).pipe(onRequest(["2xx"], {
1981
+ "429": "RatelimitedResponse",
1982
+ "4xx": "ErrorResponse",
1983
+ })),
1984
+ createGuildTemplate: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1985
+ "429": "RatelimitedResponse",
1986
+ "4xx": "ErrorResponse",
1987
+ })),
1988
+ syncGuildTemplate: (guildId, code) => HttpClientRequest.put(`/guilds/${guildId}/templates/${code}`).pipe(onRequest(["2xx"], {
1989
+ "429": "RatelimitedResponse",
1990
+ "4xx": "ErrorResponse",
1991
+ })),
1992
+ deleteGuildTemplate: (guildId, code) => HttpClientRequest.delete(`/guilds/${guildId}/templates/${code}`).pipe(onRequest(["2xx"], {
1993
+ "429": "RatelimitedResponse",
1994
+ "4xx": "ErrorResponse",
1995
+ })),
1996
+ updateGuildTemplate: (guildId, code, options) => HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1997
+ "429": "RatelimitedResponse",
1998
+ "4xx": "ErrorResponse",
1999
+ })),
2000
+ getActiveGuildThreads: guildId => HttpClientRequest.get(`/guilds/${guildId}/threads/active`).pipe(onRequest(["2xx"], {
2001
+ "429": "RatelimitedResponse",
2002
+ "4xx": "ErrorResponse",
2003
+ })),
2004
+ getGuildVanityUrl: guildId => HttpClientRequest.get(`/guilds/${guildId}/vanity-url`).pipe(onRequest(["2xx"], {
2005
+ "429": "RatelimitedResponse",
2006
+ "4xx": "ErrorResponse",
2007
+ })),
2008
+ getSelfVoiceState: guildId => HttpClientRequest.get(`/guilds/${guildId}/voice-states/@me`).pipe(onRequest(["2xx"], {
2009
+ "429": "RatelimitedResponse",
2010
+ "4xx": "ErrorResponse",
2011
+ })),
2012
+ updateSelfVoiceState: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2013
+ getVoiceState: (guildId, userId) => HttpClientRequest.get(`/guilds/${guildId}/voice-states/${userId}`).pipe(onRequest(["2xx"], {
2014
+ "429": "RatelimitedResponse",
2015
+ "4xx": "ErrorResponse",
2016
+ })),
2017
+ updateVoiceState: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2018
+ getGuildWebhooks: guildId => HttpClientRequest.get(`/guilds/${guildId}/webhooks`).pipe(onRequest(["2xx"], {
2019
+ "429": "RatelimitedResponse",
2020
+ "4xx": "ErrorResponse",
2021
+ })),
2022
+ getGuildWelcomeScreen: guildId => HttpClientRequest.get(`/guilds/${guildId}/welcome-screen`).pipe(onRequest(["2xx"], {
2023
+ "429": "RatelimitedResponse",
2024
+ "4xx": "ErrorResponse",
2025
+ })),
2026
+ updateGuildWelcomeScreen: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2027
+ "429": "RatelimitedResponse",
2028
+ "4xx": "ErrorResponse",
2029
+ })),
2030
+ getGuildWidgetSettings: guildId => HttpClientRequest.get(`/guilds/${guildId}/widget`).pipe(onRequest(["2xx"], {
2031
+ "429": "RatelimitedResponse",
2032
+ "4xx": "ErrorResponse",
2033
+ })),
2034
+ updateGuildWidgetSettings: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2035
+ "429": "RatelimitedResponse",
2036
+ "4xx": "ErrorResponse",
2037
+ })),
2038
+ getGuildWidget: guildId => HttpClientRequest.get(`/guilds/${guildId}/widget.json`).pipe(onRequest(["2xx"], {
2039
+ "429": "RatelimitedResponse",
2040
+ "4xx": "ErrorResponse",
2041
+ })),
2042
+ getGuildWidgetPng: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/widget.png`).pipe(HttpClientRequest.setUrlParams({ style: options?.["style"] }), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2043
+ createInteractionResponse: (interactionId, interactionToken, options) => HttpClientRequest.post(`/interactions/${interactionId}/${interactionToken}/callback`).pipe(HttpClientRequest.setUrlParams({
2044
+ with_response: options.params?.["with_response"],
2045
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2046
+ "429": "RatelimitedResponse",
2047
+ "4xx": "ErrorResponse",
2048
+ })),
2049
+ inviteResolve: (code, options) => HttpClientRequest.get(`/invites/${code}`).pipe(HttpClientRequest.setUrlParams({
2050
+ with_counts: options?.["with_counts"],
2051
+ guild_scheduled_event_id: options?.["guild_scheduled_event_id"],
2052
+ }), onRequest(["2xx"], {
2053
+ "429": "RatelimitedResponse",
2054
+ "4xx": "ErrorResponse",
2055
+ })),
2056
+ inviteRevoke: code => HttpClientRequest.delete(`/invites/${code}`).pipe(onRequest(["2xx"], {
2057
+ "429": "RatelimitedResponse",
2058
+ "4xx": "ErrorResponse",
2059
+ })),
2060
+ getInviteTargetUsers: code => HttpClientRequest.get(`/invites/${code}/target-users`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2061
+ updateInviteTargetUsers: (code, options) => HttpClientRequest.put(`/invites/${code}/target-users`).pipe(HttpClientRequest.bodyFormDataRecord(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2062
+ getInviteTargetUsersJobStatus: code => HttpClientRequest.get(`/invites/${code}/target-users/job-status`).pipe(onRequest(["2xx"], {
2063
+ "429": "RatelimitedResponse",
2064
+ "4xx": "ErrorResponse",
2065
+ })),
2066
+ createOrJoinLobby: options => HttpClientRequest.put(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2067
+ "429": "RatelimitedResponse",
2068
+ "4xx": "ErrorResponse",
2069
+ })),
2070
+ createLobby: options => HttpClientRequest.post(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2071
+ "429": "RatelimitedResponse",
2072
+ "4xx": "ErrorResponse",
2073
+ })),
2074
+ getLobby: lobbyId => HttpClientRequest.get(`/lobbies/${lobbyId}`).pipe(onRequest(["2xx"], {
2075
+ "429": "RatelimitedResponse",
2076
+ "4xx": "ErrorResponse",
2077
+ })),
2078
+ editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2079
+ "429": "RatelimitedResponse",
2080
+ "4xx": "ErrorResponse",
2081
+ })),
2082
+ editLobbyChannelLink: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2083
+ "429": "RatelimitedResponse",
2084
+ "4xx": "ErrorResponse",
2085
+ })),
2086
+ leaveLobby: lobbyId => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/@me`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2087
+ createLinkedLobbyGuildInviteForSelf: lobbyId => HttpClientRequest.post(`/lobbies/${lobbyId}/members/@me/invites`).pipe(onRequest(["2xx"], {
2088
+ "429": "RatelimitedResponse",
2089
+ "4xx": "ErrorResponse",
2090
+ })),
2091
+ bulkUpdateLobbyMembers: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2092
+ "429": "RatelimitedResponse",
2093
+ "4xx": "ErrorResponse",
2094
+ })),
2095
+ addLobbyMember: (lobbyId, userId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2096
+ "429": "RatelimitedResponse",
2097
+ "4xx": "ErrorResponse",
2098
+ })),
2099
+ deleteLobbyMember: (lobbyId, userId) => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/${userId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2100
+ createLinkedLobbyGuildInviteForUser: (lobbyId, userId) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/${userId}/invites`).pipe(onRequest(["2xx"], {
2101
+ "429": "RatelimitedResponse",
2102
+ "4xx": "ErrorResponse",
2103
+ })),
2104
+ getLobbyMessages: (lobbyId, options) => HttpClientRequest.get(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.setUrlParams({ limit: options?.["limit"] }), onRequest(["2xx"], {
2105
+ "429": "RatelimitedResponse",
2106
+ "4xx": "ErrorResponse",
2107
+ })),
2108
+ createLobbyMessage: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2109
+ "429": "RatelimitedResponse",
2110
+ "4xx": "ErrorResponse",
2111
+ })),
2112
+ updateLobbyMessageExternalModerationMetadata: (lobbyId, messageId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2113
+ getMyOauth2Authorization: () => HttpClientRequest.get(`/oauth2/@me`).pipe(onRequest(["2xx"], {
2114
+ "429": "RatelimitedResponse",
2115
+ "4xx": "ErrorResponse",
2116
+ })),
2117
+ getMyOauth2Application: () => HttpClientRequest.get(`/oauth2/applications/@me`).pipe(onRequest(["2xx"], {
2118
+ "429": "RatelimitedResponse",
2119
+ "4xx": "ErrorResponse",
2120
+ })),
2121
+ getPublicKeys: () => HttpClientRequest.get(`/oauth2/keys`).pipe(onRequest(["2xx"], {
2122
+ "429": "RatelimitedResponse",
2123
+ "4xx": "ErrorResponse",
2124
+ })),
2125
+ getOpenidConnectUserinfo: () => HttpClientRequest.get(`/oauth2/userinfo`).pipe(onRequest(["2xx"], {
2126
+ "429": "RatelimitedResponse",
2127
+ "4xx": "ErrorResponse",
2128
+ })),
2129
+ updateUserMessageExternalModerationMetadata: (userId1, userId2, messageId, options) => HttpClientRequest.put(`/partner-sdk/dms/${userId1}/${userId2}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2130
+ partnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2131
+ botPartnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2132
+ partnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2133
+ "429": "RatelimitedResponse",
2134
+ "4xx": "ErrorResponse",
2135
+ })),
2136
+ botPartnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2137
+ "429": "RatelimitedResponse",
2138
+ "4xx": "ErrorResponse",
2139
+ })),
2140
+ getSoundboardDefaultSounds: () => HttpClientRequest.get(`/soundboard-default-sounds`).pipe(onRequest(["2xx"], {
2141
+ "429": "RatelimitedResponse",
2142
+ "4xx": "ErrorResponse",
2143
+ })),
2144
+ createStageInstance: options => HttpClientRequest.post(`/stage-instances`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2145
+ "429": "RatelimitedResponse",
2146
+ "4xx": "ErrorResponse",
2147
+ })),
2148
+ getStageInstance: channelId => HttpClientRequest.get(`/stage-instances/${channelId}`).pipe(onRequest(["2xx"], {
2149
+ "429": "RatelimitedResponse",
2150
+ "4xx": "ErrorResponse",
2151
+ })),
2152
+ deleteStageInstance: channelId => HttpClientRequest.delete(`/stage-instances/${channelId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2153
+ updateStageInstance: (channelId, options) => HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2154
+ "429": "RatelimitedResponse",
2155
+ "4xx": "ErrorResponse",
2156
+ })),
2157
+ listStickerPacks: () => HttpClientRequest.get(`/sticker-packs`).pipe(onRequest(["2xx"], {
2158
+ "429": "RatelimitedResponse",
2159
+ "4xx": "ErrorResponse",
2160
+ })),
2161
+ getStickerPack: packId => HttpClientRequest.get(`/sticker-packs/${packId}`).pipe(onRequest(["2xx"], {
2162
+ "429": "RatelimitedResponse",
2163
+ "4xx": "ErrorResponse",
2164
+ })),
2165
+ getSticker: stickerId => HttpClientRequest.get(`/stickers/${stickerId}`).pipe(onRequest(["2xx"], {
2166
+ "429": "RatelimitedResponse",
2167
+ "4xx": "ErrorResponse",
2168
+ })),
2169
+ getMyUser: () => HttpClientRequest.get(`/users/@me`).pipe(onRequest(["2xx"], {
2170
+ "429": "RatelimitedResponse",
2171
+ "4xx": "ErrorResponse",
2172
+ })),
2173
+ updateMyUser: options => HttpClientRequest.patch(`/users/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2174
+ "429": "RatelimitedResponse",
2175
+ "4xx": "ErrorResponse",
2176
+ })),
2177
+ getCurrentUserApplicationEntitlements: (applicationId, options) => HttpClientRequest.get(`/users/@me/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.setUrlParams({
2178
+ sku_ids: options?.["sku_ids"],
2179
+ exclude_consumed: options?.["exclude_consumed"],
2180
+ }), onRequest(["2xx"], {
2181
+ "429": "RatelimitedResponse",
2182
+ "4xx": "ErrorResponse",
2183
+ })),
2184
+ getApplicationUserRoleConnection: applicationId => HttpClientRequest.get(`/users/@me/applications/${applicationId}/role-connection`).pipe(onRequest(["2xx"], {
2185
+ "429": "RatelimitedResponse",
2186
+ "4xx": "ErrorResponse",
2187
+ })),
2188
+ updateApplicationUserRoleConnection: (applicationId, options) => HttpClientRequest.put(`/users/@me/applications/${applicationId}/role-connection`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2189
+ "429": "RatelimitedResponse",
2190
+ "4xx": "ErrorResponse",
2191
+ })),
2192
+ deleteApplicationUserRoleConnection: applicationId => HttpClientRequest.delete(`/users/@me/applications/${applicationId}/role-connection`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2193
+ createDm: options => HttpClientRequest.post(`/users/@me/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2194
+ "429": "RatelimitedResponse",
2195
+ "4xx": "ErrorResponse",
2196
+ })),
2197
+ listMyConnections: () => HttpClientRequest.get(`/users/@me/connections`).pipe(onRequest(["2xx"], {
2198
+ "429": "RatelimitedResponse",
2199
+ "4xx": "ErrorResponse",
2200
+ })),
2201
+ listMyGuilds: options => HttpClientRequest.get(`/users/@me/guilds`).pipe(HttpClientRequest.setUrlParams({
2202
+ before: options?.["before"],
2203
+ after: options?.["after"],
2204
+ limit: options?.["limit"],
2205
+ with_counts: options?.["with_counts"],
2206
+ }), onRequest(["2xx"], {
2207
+ "429": "RatelimitedResponse",
2208
+ "4xx": "ErrorResponse",
2209
+ })),
2210
+ leaveGuild: guildId => HttpClientRequest.delete(`/users/@me/guilds/${guildId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2211
+ getMyGuildMember: guildId => HttpClientRequest.get(`/users/@me/guilds/${guildId}/member`).pipe(onRequest(["2xx"], {
2212
+ "429": "RatelimitedResponse",
2213
+ "4xx": "ErrorResponse",
2214
+ })),
2215
+ getUser: userId => HttpClientRequest.get(`/users/${userId}`).pipe(onRequest(["2xx"], {
2216
+ "429": "RatelimitedResponse",
2217
+ "4xx": "ErrorResponse",
2218
+ })),
2219
+ listVoiceRegions: () => HttpClientRequest.get(`/voice/regions`).pipe(onRequest(["2xx"], {
2220
+ "429": "RatelimitedResponse",
2221
+ "4xx": "ErrorResponse",
2222
+ })),
2223
+ getWebhook: webhookId => HttpClientRequest.get(`/webhooks/${webhookId}`).pipe(onRequest(["2xx"], {
2224
+ "429": "RatelimitedResponse",
2225
+ "4xx": "ErrorResponse",
2226
+ })),
2227
+ deleteWebhook: webhookId => HttpClientRequest.delete(`/webhooks/${webhookId}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2228
+ updateWebhook: (webhookId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2229
+ "429": "RatelimitedResponse",
2230
+ "4xx": "ErrorResponse",
2231
+ })),
2232
+ getWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.get(`/webhooks/${webhookId}/${webhookToken}`).pipe(onRequest(["2xx"], {
2233
+ "429": "RatelimitedResponse",
2234
+ "4xx": "ErrorResponse",
2235
+ })),
2236
+ executeWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.setUrlParams({
2237
+ wait: options.params?.["wait"],
2238
+ thread_id: options.params?.["thread_id"],
2239
+ with_components: options.params?.["with_components"],
2240
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2241
+ "429": "RatelimitedResponse",
2242
+ "4xx": "ErrorResponse",
2243
+ })),
2244
+ deleteWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}`).pipe(onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2245
+ updateWebhookByToken: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2246
+ "429": "RatelimitedResponse",
2247
+ "4xx": "ErrorResponse",
2248
+ })),
2249
+ executeGithubCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/github`).pipe(HttpClientRequest.setUrlParams({
2250
+ wait: options.params?.["wait"],
2251
+ thread_id: options.params?.["thread_id"],
2252
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2253
+ getOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.get(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
2254
+ thread_id: options?.["thread_id"],
2255
+ }), onRequest(["2xx"], {
2256
+ "429": "RatelimitedResponse",
2257
+ "4xx": "ErrorResponse",
2258
+ })),
2259
+ deleteOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
2260
+ thread_id: options?.["thread_id"],
2261
+ }), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2262
+ updateOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
2263
+ thread_id: options.params?.["thread_id"],
2264
+ with_components: options.params?.["with_components"],
2265
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2266
+ "429": "RatelimitedResponse",
2267
+ "4xx": "ErrorResponse",
2268
+ })),
2269
+ getWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.get(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
2270
+ thread_id: options?.["thread_id"],
2271
+ }), onRequest(["2xx"], {
2272
+ "429": "RatelimitedResponse",
2273
+ "4xx": "ErrorResponse",
2274
+ })),
2275
+ deleteWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
2276
+ thread_id: options?.["thread_id"],
2277
+ }), onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" })),
2278
+ updateWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
2279
+ thread_id: options.params?.["thread_id"],
2280
+ with_components: options.params?.["with_components"],
2281
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2282
+ "429": "RatelimitedResponse",
2283
+ "4xx": "ErrorResponse",
2284
+ })),
2285
+ executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/slack`).pipe(HttpClientRequest.setUrlParams({
2286
+ wait: options.params?.["wait"],
2287
+ thread_id: options.params?.["thread_id"],
2288
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2289
+ "429": "RatelimitedResponse",
2290
+ "4xx": "ErrorResponse",
2291
+ })),
2292
+ };
2293
+ };
2294
+ class DiscordRestErrorImpl extends Data.Error {
2295
+ }
2296
+ export const DiscordRestError = (tag, cause, response) => new DiscordRestErrorImpl({
2297
+ _tag: tag,
2298
+ cause,
2299
+ response,
2300
+ request: response.request,
2301
+ });
2302
+ //# sourceMappingURL=Generated.js.map