dfx 0.51.0 → 0.51.2

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 (335) hide show
  1. package/Cache/driver.d.ts +17 -16
  2. package/Cache/driver.d.ts.map +1 -1
  3. package/Cache/driver.js +10 -2
  4. package/Cache/driver.js.map +1 -1
  5. package/Cache/memory.d.ts +3 -3
  6. package/Cache/memory.d.ts.map +1 -1
  7. package/Cache/memory.js +55 -45
  8. package/Cache/memory.js.map +1 -1
  9. package/Cache/memoryTTL.d.ts +7 -6
  10. package/Cache/memoryTTL.d.ts.map +1 -1
  11. package/Cache/memoryTTL.js +126 -118
  12. package/Cache/memoryTTL.js.map +1 -1
  13. package/Cache/prelude.d.ts +53 -47
  14. package/Cache/prelude.d.ts.map +1 -1
  15. package/Cache/prelude.js +125 -96
  16. package/Cache/prelude.js.map +1 -1
  17. package/Cache.d.ts +33 -32
  18. package/Cache.d.ts.map +1 -1
  19. package/Cache.js +137 -65
  20. package/Cache.js.map +1 -1
  21. package/DiscordConfig.d.ts +26 -20
  22. package/DiscordConfig.d.ts.map +1 -1
  23. package/DiscordConfig.js +43 -25
  24. package/DiscordConfig.js.map +1 -1
  25. package/DiscordGateway/DiscordWS.d.ts +17 -14
  26. package/DiscordGateway/DiscordWS.d.ts.map +1 -1
  27. package/DiscordGateway/DiscordWS.js +49 -30
  28. package/DiscordGateway/DiscordWS.js.map +1 -1
  29. package/DiscordGateway/Shard/heartbeats.d.ts +7 -3
  30. package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
  31. package/DiscordGateway/Shard/heartbeats.js +28 -18
  32. package/DiscordGateway/Shard/heartbeats.js.map +1 -1
  33. package/DiscordGateway/Shard/identify.d.ts +10 -8
  34. package/DiscordGateway/Shard/identify.d.ts.map +1 -1
  35. package/DiscordGateway/Shard/identify.js +41 -24
  36. package/DiscordGateway/Shard/identify.js.map +1 -1
  37. package/DiscordGateway/Shard/invalidSession.d.ts +6 -3
  38. package/DiscordGateway/Shard/invalidSession.d.ts.map +1 -1
  39. package/DiscordGateway/Shard/invalidSession.js +14 -5
  40. package/DiscordGateway/Shard/invalidSession.js.map +1 -1
  41. package/DiscordGateway/Shard/sendEvents.d.ts +1 -1
  42. package/DiscordGateway/Shard/sendEvents.d.ts.map +1 -1
  43. package/DiscordGateway/Shard/sendEvents.js +30 -18
  44. package/DiscordGateway/Shard/sendEvents.js.map +1 -1
  45. package/DiscordGateway/Shard/utils.d.ts +7 -3
  46. package/DiscordGateway/Shard/utils.d.ts.map +1 -1
  47. package/DiscordGateway/Shard/utils.js +19 -9
  48. package/DiscordGateway/Shard/utils.js.map +1 -1
  49. package/DiscordGateway/Shard.d.ts +15 -10
  50. package/DiscordGateway/Shard.d.ts.map +1 -1
  51. package/DiscordGateway/Shard.js +109 -87
  52. package/DiscordGateway/Shard.js.map +1 -1
  53. package/DiscordGateway/ShardStore.d.ts +9 -6
  54. package/DiscordGateway/ShardStore.d.ts.map +1 -1
  55. package/DiscordGateway/ShardStore.js +30 -18
  56. package/DiscordGateway/ShardStore.js.map +1 -1
  57. package/DiscordGateway/Sharder.d.ts +17 -11
  58. package/DiscordGateway/Sharder.d.ts.map +1 -1
  59. package/DiscordGateway/Sharder.js +82 -52
  60. package/DiscordGateway/Sharder.js.map +1 -1
  61. package/DiscordGateway/WS.d.ts +13 -10
  62. package/DiscordGateway/WS.d.ts.map +1 -1
  63. package/DiscordGateway/WS.js +100 -74
  64. package/DiscordGateway/WS.js.map +1 -1
  65. package/DiscordGateway.d.ts +19 -13
  66. package/DiscordGateway.d.ts.map +1 -1
  67. package/DiscordGateway.js +45 -32
  68. package/DiscordGateway.js.map +1 -1
  69. package/DiscordREST/types.d.ts +5 -5
  70. package/DiscordREST/types.d.ts.map +1 -1
  71. package/DiscordREST/types.js +5 -1
  72. package/DiscordREST/types.js.map +1 -1
  73. package/DiscordREST/utils.d.ts +3 -2
  74. package/DiscordREST/utils.d.ts.map +1 -1
  75. package/DiscordREST/utils.js +27 -17
  76. package/DiscordREST/utils.js.map +1 -1
  77. package/DiscordREST.d.ts +11 -8
  78. package/DiscordREST.d.ts.map +1 -1
  79. package/DiscordREST.js +141 -127
  80. package/DiscordREST.js.map +1 -1
  81. package/Helpers/flags.js +31 -19
  82. package/Helpers/flags.js.map +1 -1
  83. package/Helpers/intents.d.ts.map +1 -1
  84. package/Helpers/intents.js +22 -10
  85. package/Helpers/intents.js.map +1 -1
  86. package/Helpers/interactions.d.ts +22 -21
  87. package/Helpers/interactions.d.ts.map +1 -1
  88. package/Helpers/interactions.js +75 -39
  89. package/Helpers/interactions.js.map +1 -1
  90. package/Helpers/members.d.ts +3 -3
  91. package/Helpers/members.d.ts.map +1 -1
  92. package/Helpers/members.js +10 -3
  93. package/Helpers/members.js.map +1 -1
  94. package/Helpers/permissions.d.ts +5 -4
  95. package/Helpers/permissions.d.ts.map +1 -1
  96. package/Helpers/permissions.js +69 -52
  97. package/Helpers/permissions.js.map +1 -1
  98. package/Helpers/ui.d.ts +1 -1
  99. package/Helpers/ui.d.ts.map +1 -1
  100. package/Helpers/ui.js +44 -29
  101. package/Helpers/ui.js.map +1 -1
  102. package/Interactions/builder.d.ts +20 -19
  103. package/Interactions/builder.d.ts.map +1 -1
  104. package/Interactions/builder.js +66 -63
  105. package/Interactions/builder.js.map +1 -1
  106. package/Interactions/context.d.ts +26 -23
  107. package/Interactions/context.d.ts.map +1 -1
  108. package/Interactions/context.js +86 -57
  109. package/Interactions/context.js.map +1 -1
  110. package/Interactions/definitions.d.ts +33 -30
  111. package/Interactions/definitions.d.ts.map +1 -1
  112. package/Interactions/definitions.js +61 -47
  113. package/Interactions/definitions.js.map +1 -1
  114. package/Interactions/gateway.d.ts +15 -10
  115. package/Interactions/gateway.d.ts.map +1 -1
  116. package/Interactions/gateway.js +55 -42
  117. package/Interactions/gateway.js.map +1 -1
  118. package/Interactions/handlers.d.ts +6 -4
  119. package/Interactions/handlers.d.ts.map +1 -1
  120. package/Interactions/handlers.js +68 -57
  121. package/Interactions/handlers.js.map +1 -1
  122. package/Interactions/index.d.ts +11 -10
  123. package/Interactions/index.d.ts.map +1 -1
  124. package/Interactions/index.js +95 -10
  125. package/Interactions/index.js.map +1 -1
  126. package/Interactions/utils.d.ts +42 -40
  127. package/Interactions/utils.d.ts.map +1 -1
  128. package/Interactions/utils.js +40 -32
  129. package/Interactions/utils.js.map +1 -1
  130. package/Interactions/webhook.d.ts +20 -16
  131. package/Interactions/webhook.d.ts.map +1 -1
  132. package/Interactions/webhook.js +73 -41
  133. package/Interactions/webhook.js.map +1 -1
  134. package/Log.d.ts +8 -5
  135. package/Log.d.ts.map +1 -1
  136. package/Log.js +23 -14
  137. package/Log.js.map +1 -1
  138. package/RateLimit/memory.d.ts +1 -1
  139. package/RateLimit/memory.d.ts.map +1 -1
  140. package/RateLimit/memory.js +46 -33
  141. package/RateLimit/memory.js.map +1 -1
  142. package/RateLimit/utils.d.ts +1 -1
  143. package/RateLimit/utils.d.ts.map +1 -1
  144. package/RateLimit/utils.js +23 -16
  145. package/RateLimit/utils.js.map +1 -1
  146. package/RateLimit.d.ts +18 -14
  147. package/RateLimit.d.ts.map +1 -1
  148. package/RateLimit.js +40 -26
  149. package/RateLimit.js.map +1 -1
  150. package/gateway.d.ts +20 -13
  151. package/gateway.d.ts.map +1 -1
  152. package/gateway.js +72 -25
  153. package/gateway.js.map +1 -1
  154. package/index.d.ts +14 -13
  155. package/index.d.ts.map +1 -1
  156. package/index.js +71 -13
  157. package/index.js.map +1 -1
  158. package/mjs/Cache/driver.mjs +3 -0
  159. package/mjs/Cache/driver.mjs.map +1 -0
  160. package/mjs/Cache/memory.mjs +48 -0
  161. package/mjs/Cache/memory.mjs.map +1 -0
  162. package/mjs/Cache/memoryTTL.mjs +119 -0
  163. package/mjs/Cache/memoryTTL.mjs.map +1 -0
  164. package/mjs/Cache/prelude.mjs +125 -0
  165. package/mjs/Cache/prelude.mjs.map +1 -0
  166. package/mjs/Cache.mjs +87 -0
  167. package/mjs/Cache.mjs.map +1 -0
  168. package/mjs/DiscordConfig.mjs +34 -0
  169. package/mjs/DiscordConfig.mjs.map +1 -0
  170. package/mjs/DiscordGateway/DiscordWS.mjs +39 -0
  171. package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -0
  172. package/mjs/DiscordGateway/Shard/heartbeats.mjs +21 -0
  173. package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +1 -0
  174. package/mjs/DiscordGateway/Shard/identify.mjs +37 -0
  175. package/mjs/DiscordGateway/Shard/identify.mjs.map +1 -0
  176. package/mjs/DiscordGateway/Shard/invalidSession.mjs +6 -0
  177. package/mjs/DiscordGateway/Shard/invalidSession.mjs.map +1 -0
  178. package/mjs/DiscordGateway/Shard/sendEvents.mjs +25 -0
  179. package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +1 -0
  180. package/mjs/DiscordGateway/Shard/utils.mjs +11 -0
  181. package/mjs/DiscordGateway/Shard/utils.mjs.map +1 -0
  182. package/mjs/DiscordGateway/Shard.mjs +99 -0
  183. package/mjs/DiscordGateway/Shard.mjs.map +1 -0
  184. package/mjs/DiscordGateway/ShardStore.mjs +24 -0
  185. package/mjs/DiscordGateway/ShardStore.mjs.map +1 -0
  186. package/mjs/DiscordGateway/Sharder.mjs +73 -0
  187. package/mjs/DiscordGateway/Sharder.mjs.map +1 -0
  188. package/mjs/DiscordGateway/WS.mjs +94 -0
  189. package/mjs/DiscordGateway/WS.mjs.map +1 -0
  190. package/mjs/DiscordGateway.mjs +36 -0
  191. package/mjs/DiscordGateway.mjs.map +1 -0
  192. package/mjs/DiscordREST/types.mjs +2 -0
  193. package/mjs/DiscordREST/types.mjs.map +1 -0
  194. package/mjs/DiscordREST/utils.mjs +19 -0
  195. package/mjs/DiscordREST/utils.mjs.map +1 -0
  196. package/mjs/DiscordREST.mjs +129 -0
  197. package/mjs/DiscordREST.mjs.map +1 -0
  198. package/mjs/Helpers/flags.mjs +36 -0
  199. package/mjs/Helpers/flags.mjs.map +1 -0
  200. package/mjs/Helpers/intents.mjs +27 -0
  201. package/mjs/Helpers/intents.mjs.map +1 -0
  202. package/mjs/Helpers/interactions.mjs +104 -0
  203. package/mjs/Helpers/interactions.mjs.map +1 -0
  204. package/mjs/Helpers/members.mjs +9 -0
  205. package/mjs/Helpers/members.mjs.map +1 -0
  206. package/mjs/Helpers/permissions.mjs +82 -0
  207. package/mjs/Helpers/permissions.mjs.map +1 -0
  208. package/mjs/Helpers/ui.mjs +66 -0
  209. package/mjs/Helpers/ui.mjs.map +1 -0
  210. package/mjs/Interactions/builder.mjs +62 -0
  211. package/mjs/Interactions/builder.mjs.map +1 -0
  212. package/mjs/Interactions/context.mjs +63 -0
  213. package/mjs/Interactions/context.mjs.map +1 -0
  214. package/mjs/Interactions/definitions.mjs +51 -0
  215. package/mjs/Interactions/definitions.mjs.map +1 -0
  216. package/mjs/Interactions/gateway.mjs +48 -0
  217. package/mjs/Interactions/gateway.mjs.map +1 -0
  218. package/mjs/Interactions/handlers.mjs +61 -0
  219. package/mjs/Interactions/handlers.mjs.map +1 -0
  220. package/mjs/Interactions/index.mjs +12 -0
  221. package/mjs/Interactions/index.mjs.map +1 -0
  222. package/mjs/Interactions/utils.mjs +35 -0
  223. package/mjs/Interactions/utils.mjs.map +1 -0
  224. package/mjs/Interactions/webhook.mjs +73 -0
  225. package/mjs/Interactions/webhook.mjs.map +1 -0
  226. package/mjs/Log.mjs +15 -0
  227. package/mjs/Log.mjs.map +1 -0
  228. package/mjs/RateLimit/memory.mjs +39 -0
  229. package/mjs/RateLimit/memory.mjs.map +1 -0
  230. package/mjs/RateLimit/utils.mjs +18 -0
  231. package/mjs/RateLimit/utils.mjs.map +1 -0
  232. package/mjs/RateLimit.mjs +29 -0
  233. package/mjs/RateLimit.mjs.map +1 -0
  234. package/mjs/gateway.mjs +27 -0
  235. package/mjs/gateway.mjs.map +1 -0
  236. package/mjs/index.mjs +15 -0
  237. package/mjs/index.mjs.map +1 -0
  238. package/mjs/types.mjs +1211 -0
  239. package/mjs/types.mjs.map +1 -0
  240. package/mjs/utils/Effect.mjs +28 -0
  241. package/mjs/utils/Effect.mjs.map +1 -0
  242. package/mjs/utils/tsplus.mjs +2 -0
  243. package/mjs/utils/tsplus.mjs.map +1 -0
  244. package/mjs/version.mjs +2 -0
  245. package/mjs/version.mjs.map +1 -0
  246. package/mjs/webhooks.mjs +30 -0
  247. package/mjs/webhooks.mjs.map +1 -0
  248. package/package.json +46 -50
  249. package/src/Cache/driver.ts +27 -15
  250. package/src/Cache/memory.ts +9 -5
  251. package/src/Cache/memoryTTL.ts +69 -53
  252. package/src/Cache/prelude.ts +113 -91
  253. package/src/Cache.ts +73 -58
  254. package/src/DiscordConfig.ts +33 -19
  255. package/src/DiscordGateway/DiscordWS.ts +28 -25
  256. package/src/DiscordGateway/Shard/heartbeats.ts +47 -27
  257. package/src/DiscordGateway/Shard/identify.ts +29 -25
  258. package/src/DiscordGateway/Shard/invalidSession.ts +9 -7
  259. package/src/DiscordGateway/Shard/sendEvents.ts +1 -1
  260. package/src/DiscordGateway/Shard/utils.ts +33 -9
  261. package/src/DiscordGateway/Shard.ts +119 -99
  262. package/src/DiscordGateway/ShardStore.ts +12 -5
  263. package/src/DiscordGateway/Sharder.ts +95 -74
  264. package/src/DiscordGateway/WS.ts +85 -60
  265. package/src/DiscordGateway.ts +58 -18
  266. package/src/DiscordREST/types.ts +5 -5
  267. package/src/DiscordREST/utils.ts +10 -7
  268. package/src/DiscordREST.ts +152 -132
  269. package/src/Helpers/intents.ts +1 -0
  270. package/src/Helpers/interactions.ts +51 -38
  271. package/src/Helpers/members.ts +2 -0
  272. package/src/Helpers/permissions.ts +6 -5
  273. package/src/Helpers/ui.ts +1 -1
  274. package/src/Interactions/builder.ts +56 -43
  275. package/src/Interactions/context.ts +68 -38
  276. package/src/Interactions/definitions.ts +32 -24
  277. package/src/Interactions/gateway.ts +72 -47
  278. package/src/Interactions/handlers.ts +56 -39
  279. package/src/Interactions/index.ts +6 -5
  280. package/src/Interactions/utils.ts +32 -21
  281. package/src/Interactions/webhook.ts +78 -42
  282. package/src/Log.ts +4 -0
  283. package/src/RateLimit/memory.ts +10 -4
  284. package/src/RateLimit/utils.ts +1 -1
  285. package/src/RateLimit.ts +38 -25
  286. package/src/gateway.ts +62 -25
  287. package/src/index.ts +29 -15
  288. package/src/utils/Effect.ts +69 -0
  289. package/src/version.ts +1 -0
  290. package/src/webhooks.ts +47 -20
  291. package/tsconfig.base.json +48 -0
  292. package/tsconfig.build.json +10 -0
  293. package/tsconfig.examples.json +11 -0
  294. package/tsconfig.json +12 -8
  295. package/tsconfig.madge.json +12 -0
  296. package/tsconfig.test.json +10 -0
  297. package/types.d.ts.map +1 -1
  298. package/types.js +1216 -1200
  299. package/types.js.map +1 -1
  300. package/utils/Effect.d.ts +8 -0
  301. package/utils/Effect.d.ts.map +1 -0
  302. package/utils/Effect.js +38 -0
  303. package/utils/Effect.js.map +1 -0
  304. package/utils/tsplus.js +5 -1
  305. package/utils/tsplus.js.map +1 -1
  306. package/version.d.ts +2 -0
  307. package/version.d.ts.map +1 -0
  308. package/version.js +9 -0
  309. package/version.js.map +1 -0
  310. package/webhooks.d.ts +14 -9
  311. package/webhooks.d.ts.map +1 -1
  312. package/webhooks.js +76 -27
  313. package/webhooks.js.map +1 -1
  314. package/_common.d.ts +0 -37
  315. package/_common.d.ts.map +0 -1
  316. package/_common.js +0 -8
  317. package/_common.js.map +0 -1
  318. package/global.d.ts +0 -18
  319. package/global.d.ts.map +0 -1
  320. package/global.js +0 -2
  321. package/global.js.map +0 -1
  322. package/src/_common.ts +0 -43
  323. package/src/global.ts +0 -45
  324. package/src/package.json +0 -52
  325. package/src/utils/effect.ts +0 -0
  326. package/src/utils/hub.ts +0 -47
  327. package/tsplus.config.json +0 -8
  328. package/utils/effect.d.ts +0 -2
  329. package/utils/effect.d.ts.map +0 -1
  330. package/utils/effect.js +0 -2
  331. package/utils/effect.js.map +0 -1
  332. package/utils/hub.d.ts +0 -12
  333. package/utils/hub.d.ts.map +0 -1
  334. package/utils/hub.js +0 -26
  335. package/utils/hub.js.map +0 -1
package/types.js CHANGED
@@ -1,1211 +1,1227 @@
1
- export const ActivityFlag = {
2
- INSTANCE: 1 << 0,
3
- JOIN: 1 << 1,
4
- SPECTATE: 1 << 2,
5
- JOIN_REQUEST: 1 << 3,
6
- SYNC: 1 << 4,
7
- PLAY: 1 << 5,
8
- PARTY_PRIVACY_FRIENDS: 1 << 6,
9
- PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
10
- EMBEDDED: 1 << 8,
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.UserFlag = exports.SystemChannelFlag = exports.PermissionFlag = exports.MessageFlag = exports.GuildMemberFlag = exports.GatewayIntents = exports.ChannelFlag = exports.ApplicationFlag = exports.ActivityFlag = void 0;
7
+ exports.createRoutes = createRoutes;
8
+ const ActivityFlag = {
9
+ INSTANCE: 1 << 0,
10
+ JOIN: 1 << 1,
11
+ SPECTATE: 1 << 2,
12
+ JOIN_REQUEST: 1 << 3,
13
+ SYNC: 1 << 4,
14
+ PLAY: 1 << 5,
15
+ PARTY_PRIVACY_FRIENDS: 1 << 6,
16
+ PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
17
+ EMBEDDED: 1 << 8
11
18
  };
12
- export const ApplicationFlag = {
13
- /** Indicates if an app uses the Auto Moderation API */
14
- APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE: 1 << 6,
15
- /** Intent required for bots in 100 or more servers to receive presence_update events */
16
- GATEWAY_PRESENCE: 1 << 12,
17
- /** Intent required for bots in under 100 servers to receive presence_update events, found on the Bot page in your app's settings */
18
- GATEWAY_PRESENCE_LIMITED: 1 << 13,
19
- /** Intent required for bots in 100 or more servers to receive member-related events like guild_member_add. See the list of member-related events under GUILD_MEMBERS */
20
- GATEWAY_GUILD_MEMBERS: 1 << 14,
21
- /** Intent required for bots in under 100 servers to receive member-related events like guild_member_add, found on the Bot page in your app's settings. See the list of member-related events under GUILD_MEMBERS */
22
- GATEWAY_GUILD_MEMBERS_LIMITED: 1 << 15,
23
- /** Indicates unusual growth of an app that prevents verification */
24
- VERIFICATION_PENDING_GUILD_LIMIT: 1 << 16,
25
- /** Indicates if an app is embedded within the Discord client (currently unavailable publicly) */
26
- EMBEDDED: 1 << 17,
27
- /** Intent required for bots in 100 or more servers to receive message content */
28
- GATEWAY_MESSAGE_CONTENT: 1 << 18,
29
- /** Intent required for bots in under 100 servers to receive message content, found on the Bot page in your app's settings */
30
- GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
31
- /** Indicates if an app has registered global application commands */
32
- APPLICATION_COMMAND_BADGE: 1 << 23,
19
+ exports.ActivityFlag = ActivityFlag;
20
+ const ApplicationFlag = {
21
+ /** Indicates if an app uses the Auto Moderation API */
22
+ APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE: 1 << 6,
23
+ /** Intent required for bots in 100 or more servers to receive presence_update events */
24
+ GATEWAY_PRESENCE: 1 << 12,
25
+ /** Intent required for bots in under 100 servers to receive presence_update events, found on the Bot page in your app's settings */
26
+ GATEWAY_PRESENCE_LIMITED: 1 << 13,
27
+ /** Intent required for bots in 100 or more servers to receive member-related events like guild_member_add. See the list of member-related events under GUILD_MEMBERS */
28
+ GATEWAY_GUILD_MEMBERS: 1 << 14,
29
+ /** Intent required for bots in under 100 servers to receive member-related events like guild_member_add, found on the Bot page in your app's settings. See the list of member-related events under GUILD_MEMBERS */
30
+ GATEWAY_GUILD_MEMBERS_LIMITED: 1 << 15,
31
+ /** Indicates unusual growth of an app that prevents verification */
32
+ VERIFICATION_PENDING_GUILD_LIMIT: 1 << 16,
33
+ /** Indicates if an app is embedded within the Discord client (currently unavailable publicly) */
34
+ EMBEDDED: 1 << 17,
35
+ /** Intent required for bots in 100 or more servers to receive message content */
36
+ GATEWAY_MESSAGE_CONTENT: 1 << 18,
37
+ /** Intent required for bots in under 100 servers to receive message content, found on the Bot page in your app's settings */
38
+ GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
39
+ /** Indicates if an app has registered global application commands */
40
+ APPLICATION_COMMAND_BADGE: 1 << 23
33
41
  };
34
- export const ChannelFlag = {
35
- /** this thread is pinned to the top of its parent GUILD_FORUM channel */
36
- PINNED: 1 << 1,
37
- /** whether a tag is required to be specified when creating a thread in a GUILD_FORUM channel. Tags are specified in the applied_tags field. */
38
- REQUIRE_TAG: 1 << 4,
42
+ exports.ApplicationFlag = ApplicationFlag;
43
+ const ChannelFlag = {
44
+ /** this thread is pinned to the top of its parent GUILD_FORUM channel */
45
+ PINNED: 1 << 1,
46
+ /** whether a tag is required to be specified when creating a thread in a GUILD_FORUM channel. Tags are specified in the applied_tags field. */
47
+ REQUIRE_TAG: 1 << 4
39
48
  };
40
- export function createRoutes(fetch) {
41
- return {
42
- addGuildMember: (guildId, userId, params, options) => fetch({
43
- method: "PUT",
44
- url: `/guilds/${guildId}/members/${userId}`,
45
- params,
46
- options,
47
- }),
48
- addGuildMemberRole: (guildId, userId, roleId, options) => fetch({
49
- method: "PUT",
50
- url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
51
- options,
52
- }),
53
- addThreadMember: (channelId, userId, options) => fetch({
54
- method: "PUT",
55
- url: `/channels/${channelId}/thread-members/${userId}`,
56
- options,
57
- }),
58
- batchEditApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
59
- method: "PUT",
60
- url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
61
- options,
62
- }),
63
- beginGuildPrune: (guildId, params, options) => fetch({
64
- method: "POST",
65
- url: `/guilds/${guildId}/prune`,
66
- params,
67
- options,
68
- }),
69
- bulkDeleteMessages: (channelId, params, options) => fetch({
70
- method: "POST",
71
- url: `/channels/${channelId}/messages/bulk-delete`,
72
- params,
73
- options,
74
- }),
75
- bulkOverwriteGlobalApplicationCommands: (applicationId, options) => fetch({
76
- method: "PUT",
77
- url: `/applications/${applicationId}/commands`,
78
- options,
79
- }),
80
- bulkOverwriteGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
81
- method: "PUT",
82
- url: `/applications/${applicationId}/guilds/${guildId}/commands`,
83
- params,
84
- options,
85
- }),
86
- createAutoModerationRule: (guildId, params, options) => fetch({
87
- method: "POST",
88
- url: `/guilds/${guildId}/auto-moderation/rules`,
89
- params,
90
- options,
91
- }),
92
- createChannelInvite: (channelId, params, options) => fetch({
93
- method: "POST",
94
- url: `/channels/${channelId}/invites`,
95
- params,
96
- options,
97
- }),
98
- createDm: (params, options) => fetch({
99
- method: "POST",
100
- url: `/users/@me/channels`,
101
- params,
102
- options,
103
- }),
104
- createFollowupMessage: (applicationId, interactionToken, params, options) => fetch({
105
- method: "POST",
106
- url: `/webhooks/${applicationId}/${interactionToken}`,
107
- params,
108
- options,
109
- }),
110
- createGlobalApplicationCommand: (applicationId, params, options) => fetch({
111
- method: "POST",
112
- url: `/applications/${applicationId}/commands`,
113
- params,
114
- options,
115
- }),
116
- createGroupDm: (params, options) => fetch({
117
- method: "POST",
118
- url: `/users/@me/channels`,
119
- params,
120
- options,
121
- }),
122
- createGuild: (params, options) => fetch({
123
- method: "POST",
124
- url: `/guilds`,
125
- params,
126
- options,
127
- }),
128
- createGuildApplicationCommand: (applicationId, guildId, params, options) => fetch({
129
- method: "POST",
130
- url: `/applications/${applicationId}/guilds/${guildId}/commands`,
131
- params,
132
- options,
133
- }),
134
- createGuildBan: (guildId, userId, params, options) => fetch({
135
- method: "PUT",
136
- url: `/guilds/${guildId}/bans/${userId}`,
137
- params,
138
- options,
139
- }),
140
- createGuildChannel: (guildId, params, options) => fetch({
141
- method: "POST",
142
- url: `/guilds/${guildId}/channels`,
143
- params,
144
- options,
145
- }),
146
- createGuildEmoji: (guildId, params, options) => fetch({
147
- method: "POST",
148
- url: `/guilds/${guildId}/emojis`,
149
- params,
150
- options,
151
- }),
152
- createGuildFromGuildTemplate: (templateCode, params, options) => fetch({
153
- method: "POST",
154
- url: `/guilds/templates/${templateCode}`,
155
- params,
156
- options,
157
- }),
158
- createGuildRole: (guildId, params, options) => fetch({
159
- method: "POST",
160
- url: `/guilds/${guildId}/roles`,
161
- params,
162
- options,
163
- }),
164
- createGuildScheduledEvent: (guildId, params, options) => fetch({
165
- method: "POST",
166
- url: `/guilds/${guildId}/scheduled-events`,
167
- params,
168
- options,
169
- }),
170
- createGuildSticker: (guildId, params, options) => fetch({
171
- method: "POST",
172
- url: `/guilds/${guildId}/stickers`,
173
- params,
174
- options,
175
- }),
176
- createGuildTemplate: (guildId, params, options) => fetch({
177
- method: "POST",
178
- url: `/guilds/${guildId}/templates`,
179
- params,
180
- options,
181
- }),
182
- createInteractionResponse: (interactionId, interactionToken, params, options) => fetch({
183
- method: "POST",
184
- url: `/interactions/${interactionId}/${interactionToken}/callback`,
185
- params,
186
- options,
187
- }),
188
- createMessage: (channelId, params, options) => fetch({
189
- method: "POST",
190
- url: `/channels/${channelId}/messages`,
191
- params,
192
- options,
193
- }),
194
- createReaction: (channelId, messageId, emoji, options) => fetch({
195
- method: "PUT",
196
- url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
197
- options,
198
- }),
199
- createStageInstance: (params, options) => fetch({
200
- method: "POST",
201
- url: `/stage-instances`,
202
- params,
203
- options,
204
- }),
205
- createWebhook: (channelId, params, options) => fetch({
206
- method: "POST",
207
- url: `/channels/${channelId}/webhooks`,
208
- params,
209
- options,
210
- }),
211
- crosspostMessage: (channelId, messageId, options) => fetch({
212
- method: "POST",
213
- url: `/channels/${channelId}/messages/${messageId}/crosspost`,
214
- options,
215
- }),
216
- deleteAllReactions: (channelId, messageId, options) => fetch({
217
- method: "DELETE",
218
- url: `/channels/${channelId}/messages/${messageId}/reactions`,
219
- options,
220
- }),
221
- deleteAllReactionsForEmoji: (channelId, messageId, emoji, options) => fetch({
222
- method: "DELETE",
223
- url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
224
- options,
225
- }),
226
- deleteAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
227
- method: "DELETE",
228
- url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
229
- options,
230
- }),
231
- deleteChannelPermission: (channelId, overwriteId, options) => fetch({
232
- method: "DELETE",
233
- url: `/channels/${channelId}/permissions/${overwriteId}`,
234
- options,
235
- }),
236
- deletecloseChannel: (channelId, options) => fetch({
237
- method: "DELETE",
238
- url: `/channels/${channelId}`,
239
- options,
240
- }),
241
- deleteFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
242
- method: "DELETE",
243
- url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
244
- options,
245
- }),
246
- deleteGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
247
- method: "DELETE",
248
- url: `/applications/${applicationId}/commands/${commandId}`,
249
- options,
250
- }),
251
- deleteGuild: (guildId, options) => fetch({
252
- method: "DELETE",
253
- url: `/guilds/${guildId}`,
254
- options,
255
- }),
256
- deleteGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
257
- method: "DELETE",
258
- url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
259
- options,
260
- }),
261
- deleteGuildEmoji: (guildId, emojiId, options) => fetch({
262
- method: "DELETE",
263
- url: `/guilds/${guildId}/emojis/${emojiId}`,
264
- options,
265
- }),
266
- deleteGuildIntegration: (guildId, integrationId, options) => fetch({
267
- method: "DELETE",
268
- url: `/guilds/${guildId}/integrations/${integrationId}`,
269
- options,
270
- }),
271
- deleteGuildRole: (guildId, roleId, options) => fetch({
272
- method: "DELETE",
273
- url: `/guilds/${guildId}/roles/${roleId}`,
274
- options,
275
- }),
276
- deleteGuildScheduledEvent: (guildId, guildScheduledEventId, options) => fetch({
277
- method: "DELETE",
278
- url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
279
- options,
280
- }),
281
- deleteGuildSticker: (guildId, stickerId, options) => fetch({
282
- method: "DELETE",
283
- url: `/guilds/${guildId}/stickers/${stickerId}`,
284
- options,
285
- }),
286
- deleteGuildTemplate: (guildId, templateCode, options) => fetch({
287
- method: "DELETE",
288
- url: `/guilds/${guildId}/templates/${templateCode}`,
289
- options,
290
- }),
291
- deleteInvite: (inviteCode, options) => fetch({
292
- method: "DELETE",
293
- url: `/invites/${inviteCode}`,
294
- options,
295
- }),
296
- deleteMessage: (channelId, messageId, options) => fetch({
297
- method: "DELETE",
298
- url: `/channels/${channelId}/messages/${messageId}`,
299
- options,
300
- }),
301
- deleteOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
302
- method: "DELETE",
303
- url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
304
- options,
305
- }),
306
- deleteOwnReaction: (channelId, messageId, emoji, options) => fetch({
307
- method: "DELETE",
308
- url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
309
- options,
310
- }),
311
- deleteStageInstance: (channelId, options) => fetch({
312
- method: "DELETE",
313
- url: `/stage-instances/${channelId}`,
314
- options,
315
- }),
316
- deleteUserReaction: (channelId, messageId, emoji, userId, options) => fetch({
317
- method: "DELETE",
318
- url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/${userId}`,
319
- options,
320
- }),
321
- deleteWebhook: (webhookId, options) => fetch({
322
- method: "DELETE",
323
- url: `/webhooks/${webhookId}`,
324
- options,
325
- }),
326
- deleteWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
327
- method: "DELETE",
328
- url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
329
- params,
330
- options,
331
- }),
332
- deleteWebhookWithToken: (webhookId, webhookToken, options) => fetch({
333
- method: "DELETE",
334
- url: `/webhooks/${webhookId}/${webhookToken}`,
335
- options,
336
- }),
337
- editApplicationCommandPermissions: (applicationId, guildId, commandId, params, options) => fetch({
338
- method: "PUT",
339
- url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
340
- params,
341
- options,
342
- }),
343
- editChannelPermissions: (channelId, overwriteId, params, options) => fetch({
344
- method: "PUT",
345
- url: `/channels/${channelId}/permissions/${overwriteId}`,
346
- params,
347
- options,
348
- }),
349
- editFollowupMessage: (applicationId, interactionToken, messageId, params, options) => fetch({
350
- method: "PATCH",
351
- url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
352
- params,
353
- options,
354
- }),
355
- editGlobalApplicationCommand: (applicationId, commandId, params, options) => fetch({
356
- method: "PATCH",
357
- url: `/applications/${applicationId}/commands/${commandId}`,
358
- params,
359
- options,
360
- }),
361
- editGuildApplicationCommand: (applicationId, guildId, commandId, params, options) => fetch({
362
- method: "PATCH",
363
- url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
364
- params,
365
- options,
366
- }),
367
- editMessage: (channelId, messageId, params, options) => fetch({
368
- method: "PATCH",
369
- url: `/channels/${channelId}/messages/${messageId}`,
370
- params,
371
- options,
372
- }),
373
- editOriginalInteractionResponse: (applicationId, interactionToken, params, options) => fetch({
374
- method: "PATCH",
375
- url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
376
- params,
377
- options,
378
- }),
379
- editWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
380
- method: "PATCH",
381
- url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
382
- params,
383
- options,
384
- }),
385
- executeGitHubCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
386
- method: "POST",
387
- url: `/webhooks/${webhookId}/${webhookToken}/github`,
388
- options,
389
- }),
390
- executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
391
- method: "POST",
392
- url: `/webhooks/${webhookId}/${webhookToken}/slack`,
393
- options,
394
- }),
395
- executeWebhook: (webhookId, webhookToken, params, options) => fetch({
396
- method: "POST",
397
- url: `/webhooks/${webhookId}/${webhookToken}`,
398
- params,
399
- options,
400
- }),
401
- followAnnouncementChannel: (channelId, params, options) => fetch({
402
- method: "POST",
403
- url: `/channels/${channelId}/followers`,
404
- params,
405
- options,
406
- }),
407
- getApplicationCommandPermissions: (applicationId, guildId, commandId, options) => fetch({
408
- method: "GET",
409
- url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
410
- options,
411
- }),
412
- getApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
413
- method: "GET",
414
- url: `/applications/${applicationId}/role-connections/metadata`,
415
- options,
416
- }),
417
- getAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
418
- method: "GET",
419
- url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
420
- options,
421
- }),
422
- getChannel: (channelId, options) => fetch({
423
- method: "GET",
424
- url: `/channels/${channelId}`,
425
- options,
426
- }),
427
- getChannelInvites: (channelId, options) => fetch({
428
- method: "GET",
429
- url: `/channels/${channelId}/invites`,
430
- options,
431
- }),
432
- getChannelMessage: (channelId, messageId, options) => fetch({
433
- method: "GET",
434
- url: `/channels/${channelId}/messages/${messageId}`,
435
- options,
436
- }),
437
- getChannelMessages: (channelId, params, options) => fetch({
438
- method: "GET",
439
- url: `/channels/${channelId}/messages`,
440
- params,
441
- options,
442
- }),
443
- getChannelWebhooks: (channelId, options) => fetch({
444
- method: "GET",
445
- url: `/channels/${channelId}/webhooks`,
446
- options,
447
- }),
448
- getCurrentAuthorizationInformation: options => fetch({
449
- method: "GET",
450
- url: `/oauth2/@me`,
451
- options,
452
- }),
453
- getCurrentBotApplicationInformation: options => fetch({
454
- method: "GET",
455
- url: `/oauth2/applications/@me`,
456
- options,
457
- }),
458
- getCurrentUser: options => fetch({
459
- method: "GET",
460
- url: `/users/@me`,
461
- options,
462
- }),
463
- getCurrentUserGuildMember: (guildId, options) => fetch({
464
- method: "GET",
465
- url: `/users/@me/guilds/${guildId}/member`,
466
- options,
467
- }),
468
- getCurrentUserGuilds: (params, options) => fetch({
469
- method: "GET",
470
- url: `/users/@me/guilds`,
471
- params,
472
- options,
473
- }),
474
- getFollowupMessage: (applicationId, interactionToken, messageId, params, options) => fetch({
475
- method: "GET",
476
- url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
477
- params,
478
- options,
479
- }),
480
- getGateway: options => fetch({
481
- method: "GET",
482
- url: `/gateway`,
483
- options,
484
- }),
485
- getGatewayBot: options => fetch({
486
- method: "GET",
487
- url: `/gateway/bot`,
488
- options,
489
- }),
490
- getGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
491
- method: "GET",
492
- url: `/applications/${applicationId}/commands/${commandId}`,
493
- options,
494
- }),
495
- getGlobalApplicationCommands: (applicationId, params, options) => fetch({
496
- method: "GET",
497
- url: `/applications/${applicationId}/commands`,
498
- params,
499
- options,
500
- }),
501
- getGuild: (guildId, params, options) => fetch({
502
- method: "GET",
503
- url: `/guilds/${guildId}`,
504
- params,
505
- options,
506
- }),
507
- getGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
508
- method: "GET",
509
- url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
510
- options,
511
- }),
512
- getGuildApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
513
- method: "GET",
514
- url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
515
- options,
516
- }),
517
- getGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
518
- method: "GET",
519
- url: `/applications/${applicationId}/guilds/${guildId}/commands`,
520
- params,
521
- options,
522
- }),
523
- getGuildAuditLog: (guildId, params, options) => fetch({
524
- method: "GET",
525
- url: `/guilds/${guildId}/audit-logs`,
526
- params,
527
- options,
528
- }),
529
- getGuildBan: (guildId, userId, options) => fetch({
530
- method: "GET",
531
- url: `/guilds/${guildId}/bans/${userId}`,
532
- options,
533
- }),
534
- getGuildBans: (guildId, params, options) => fetch({
535
- method: "GET",
536
- url: `/guilds/${guildId}/bans`,
537
- params,
538
- options,
539
- }),
540
- getGuildChannels: (guildId, options) => fetch({
541
- method: "GET",
542
- url: `/guilds/${guildId}/channels`,
543
- options,
544
- }),
545
- getGuildEmoji: (guildId, emojiId, options) => fetch({
546
- method: "GET",
547
- url: `/guilds/${guildId}/emojis/${emojiId}`,
548
- options,
549
- }),
550
- getGuildIntegrations: (guildId, options) => fetch({
551
- method: "GET",
552
- url: `/guilds/${guildId}/integrations`,
553
- options,
554
- }),
555
- getGuildInvites: (guildId, options) => fetch({
556
- method: "GET",
557
- url: `/guilds/${guildId}/invites`,
558
- options,
559
- }),
560
- getGuildMember: (guildId, userId, options) => fetch({
561
- method: "GET",
562
- url: `/guilds/${guildId}/members/${userId}`,
563
- options,
564
- }),
565
- getGuildOnboarding: (guildId, options) => fetch({
566
- method: "GET",
567
- url: `/guilds/${guildId}/onboarding`,
568
- options,
569
- }),
570
- getGuildPreview: (guildId, options) => fetch({
571
- method: "GET",
572
- url: `/guilds/${guildId}/preview`,
573
- options,
574
- }),
575
- getGuildPruneCount: (guildId, params, options) => fetch({
576
- method: "GET",
577
- url: `/guilds/${guildId}/prune`,
578
- params,
579
- options,
580
- }),
581
- getGuildRoles: (guildId, options) => fetch({
582
- method: "GET",
583
- url: `/guilds/${guildId}/roles`,
584
- options,
585
- }),
586
- getGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
587
- method: "GET",
588
- url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
589
- params,
590
- options,
591
- }),
592
- getGuildScheduledEventUsers: (guildId, guildScheduledEventId, params, options) => fetch({
593
- method: "GET",
594
- url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
595
- params,
596
- options,
597
- }),
598
- getGuildSticker: (guildId, stickerId, options) => fetch({
599
- method: "GET",
600
- url: `/guilds/${guildId}/stickers/${stickerId}`,
601
- options,
602
- }),
603
- getGuildTemplate: (templateCode, options) => fetch({
604
- method: "GET",
605
- url: `/guilds/templates/${templateCode}`,
606
- options,
607
- }),
608
- getGuildTemplates: (guildId, options) => fetch({
609
- method: "GET",
610
- url: `/guilds/${guildId}/templates`,
611
- options,
612
- }),
613
- getGuildVanityUrl: (guildId, options) => fetch({
614
- method: "GET",
615
- url: `/guilds/${guildId}/vanity-url`,
616
- options,
617
- }),
618
- getGuildVoiceRegions: (guildId, options) => fetch({
619
- method: "GET",
620
- url: `/guilds/${guildId}/regions`,
621
- options,
622
- }),
623
- getGuildWebhooks: (guildId, options) => fetch({
624
- method: "GET",
625
- url: `/guilds/${guildId}/webhooks`,
626
- options,
627
- }),
628
- getGuildWelcomeScreen: (guildId, options) => fetch({
629
- method: "GET",
630
- url: `/guilds/${guildId}/welcome-screen`,
631
- options,
632
- }),
633
- getGuildWidget: (guildId, options) => fetch({
634
- method: "GET",
635
- url: `/guilds/${guildId}/widget.json`,
636
- options,
637
- }),
638
- getGuildWidgetImage: (guildId, params, options) => fetch({
639
- method: "GET",
640
- url: `/guilds/${guildId}/widget.png`,
641
- params,
642
- options,
643
- }),
644
- getGuildWidgetSettings: (guildId, options) => fetch({
645
- method: "GET",
646
- url: `/guilds/${guildId}/widget`,
647
- options,
648
- }),
649
- getInvite: (inviteCode, params, options) => fetch({
650
- method: "GET",
651
- url: `/invites/${inviteCode}`,
652
- params,
653
- options,
654
- }),
655
- getOriginalInteractionResponse: (applicationId, interactionToken, params, options) => fetch({
656
- method: "GET",
657
- url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
658
- params,
659
- options,
660
- }),
661
- getPinnedMessages: (channelId, options) => fetch({
662
- method: "GET",
663
- url: `/channels/${channelId}/pins`,
664
- options,
665
- }),
666
- getReactions: (channelId, messageId, emoji, params, options) => fetch({
667
- method: "GET",
668
- url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
669
- params,
670
- options,
671
- }),
672
- getStageInstance: (channelId, options) => fetch({
673
- method: "GET",
674
- url: `/stage-instances/${channelId}`,
675
- options,
676
- }),
677
- getSticker: (stickerId, options) => fetch({
678
- method: "GET",
679
- url: `/stickers/${stickerId}`,
680
- options,
681
- }),
682
- getThreadMember: (channelId, userId, params, options) => fetch({
683
- method: "GET",
684
- url: `/channels/${channelId}/thread-members/${userId}`,
685
- params,
686
- options,
687
- }),
688
- getUser: (userId, options) => fetch({
689
- method: "GET",
690
- url: `/users/${userId}`,
691
- options,
692
- }),
693
- getUserApplicationRoleConnection: (applicationId, options) => fetch({
694
- method: "GET",
695
- url: `/users/@me/applications/${applicationId}/role-connection`,
696
- options,
697
- }),
698
- getUserConnections: options => fetch({
699
- method: "GET",
700
- url: `/users/@me/connections`,
701
- options,
702
- }),
703
- getWebhook: (webhookId, options) => fetch({
704
- method: "GET",
705
- url: `/webhooks/${webhookId}`,
706
- options,
707
- }),
708
- getWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
709
- method: "GET",
710
- url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
711
- params,
712
- options,
713
- }),
714
- getWebhookWithToken: (webhookId, webhookToken, options) => fetch({
715
- method: "GET",
716
- url: `/webhooks/${webhookId}/${webhookToken}`,
717
- options,
718
- }),
719
- groupDmAddRecipient: (channelId, userId, params, options) => fetch({
720
- method: "PUT",
721
- url: `/channels/${channelId}/recipients/${userId}`,
722
- params,
723
- options,
724
- }),
725
- groupDmRemoveRecipient: (channelId, userId, options) => fetch({
726
- method: "DELETE",
727
- url: `/channels/${channelId}/recipients/${userId}`,
728
- options,
729
- }),
730
- joinThread: (channelId, options) => fetch({
731
- method: "PUT",
732
- url: `/channels/${channelId}/thread-members/@me`,
733
- options,
734
- }),
735
- leaveGuild: (guildId, options) => fetch({
736
- method: "DELETE",
737
- url: `/users/@me/guilds/${guildId}`,
738
- options,
739
- }),
740
- leaveThread: (channelId, options) => fetch({
741
- method: "DELETE",
742
- url: `/channels/${channelId}/thread-members/@me`,
743
- options,
744
- }),
745
- listActiveGuildThreads: (guildId, options) => fetch({
746
- method: "GET",
747
- url: `/guilds/${guildId}/threads/active`,
748
- options,
749
- }),
750
- listAutoModerationRulesForGuild: (guildId, options) => fetch({
751
- method: "GET",
752
- url: `/guilds/${guildId}/auto-moderation/rules`,
753
- options,
754
- }),
755
- listGuildEmojis: (guildId, options) => fetch({
756
- method: "GET",
757
- url: `/guilds/${guildId}/emojis`,
758
- options,
759
- }),
760
- listGuildMembers: (guildId, params, options) => fetch({
761
- method: "GET",
762
- url: `/guilds/${guildId}/members`,
763
- params,
764
- options,
765
- }),
766
- listGuildStickers: (guildId, options) => fetch({
767
- method: "GET",
768
- url: `/guilds/${guildId}/stickers`,
769
- options,
770
- }),
771
- listJoinedPrivateArchivedThreads: (channelId, params, options) => fetch({
772
- method: "GET",
773
- url: `/channels/${channelId}/users/@me/threads/archived/private`,
774
- params,
775
- options,
776
- }),
777
- listNitroStickerPacks: options => fetch({
778
- method: "GET",
779
- url: `/sticker-packs`,
780
- options,
781
- }),
782
- listPrivateArchivedThreads: (channelId, params, options) => fetch({
783
- method: "GET",
784
- url: `/channels/${channelId}/threads/archived/private`,
785
- params,
786
- options,
787
- }),
788
- listPublicArchivedThreads: (channelId, params, options) => fetch({
789
- method: "GET",
790
- url: `/channels/${channelId}/threads/archived/public`,
791
- params,
792
- options,
793
- }),
794
- listScheduledEventsForGuild: (guildId, params, options) => fetch({
795
- method: "GET",
796
- url: `/guilds/${guildId}/scheduled-events`,
797
- params,
798
- options,
799
- }),
800
- listThreadMembers: (channelId, params, options) => fetch({
801
- method: "GET",
802
- url: `/channels/${channelId}/thread-members`,
803
- params,
804
- options,
805
- }),
806
- listVoiceRegions: options => fetch({
807
- method: "GET",
808
- url: `/voice/regions`,
809
- options,
810
- }),
811
- modifyAutoModerationRule: (guildId, autoModerationRuleId, params, options) => fetch({
812
- method: "PATCH",
813
- url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
814
- params,
815
- options,
816
- }),
817
- modifyChannel: (channelId, params, options) => fetch({
818
- method: "PATCH",
819
- url: `/channels/${channelId}`,
820
- params,
821
- options,
822
- }),
823
- modifyCurrentMember: (guildId, params, options) => fetch({
824
- method: "PATCH",
825
- url: `/guilds/${guildId}/members/@me`,
826
- params,
827
- options,
828
- }),
829
- modifyCurrentUser: (params, options) => fetch({
830
- method: "PATCH",
831
- url: `/users/@me`,
832
- params,
833
- options,
834
- }),
835
- modifyCurrentUserNick: (guildId, params, options) => fetch({
836
- method: "PATCH",
837
- url: `/guilds/${guildId}/members/@me/nick`,
838
- params,
839
- options,
840
- }),
841
- modifyCurrentUserVoiceState: (guildId, params, options) => fetch({
842
- method: "PATCH",
843
- url: `/guilds/${guildId}/voice-states/@me`,
844
- params,
845
- options,
846
- }),
847
- modifyGuild: (guildId, params, options) => fetch({
848
- method: "PATCH",
849
- url: `/guilds/${guildId}`,
850
- params,
851
- options,
852
- }),
853
- modifyGuildChannelPositions: (guildId, params, options) => fetch({
854
- method: "PATCH",
855
- url: `/guilds/${guildId}/channels`,
856
- params,
857
- options,
858
- }),
859
- modifyGuildEmoji: (guildId, emojiId, params, options) => fetch({
860
- method: "PATCH",
861
- url: `/guilds/${guildId}/emojis/${emojiId}`,
862
- params,
863
- options,
864
- }),
865
- modifyGuildMember: (guildId, userId, params, options) => fetch({
866
- method: "PATCH",
867
- url: `/guilds/${guildId}/members/${userId}`,
868
- params,
869
- options,
870
- }),
871
- modifyGuildMfaLevel: (guildId, params, options) => fetch({
872
- method: "POST",
873
- url: `/guilds/${guildId}/mfa`,
874
- params,
875
- options,
876
- }),
877
- modifyGuildRole: (guildId, roleId, params, options) => fetch({
878
- method: "PATCH",
879
- url: `/guilds/${guildId}/roles/${roleId}`,
880
- params,
881
- options,
882
- }),
883
- modifyGuildRolePositions: (guildId, params, options) => fetch({
884
- method: "PATCH",
885
- url: `/guilds/${guildId}/roles`,
886
- params,
887
- options,
888
- }),
889
- modifyGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
890
- method: "PATCH",
891
- url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
892
- params,
893
- options,
894
- }),
895
- modifyGuildSticker: (guildId, stickerId, params, options) => fetch({
896
- method: "PATCH",
897
- url: `/guilds/${guildId}/stickers/${stickerId}`,
898
- params,
899
- options,
900
- }),
901
- modifyGuildTemplate: (guildId, templateCode, params, options) => fetch({
902
- method: "PATCH",
903
- url: `/guilds/${guildId}/templates/${templateCode}`,
904
- params,
905
- options,
906
- }),
907
- modifyGuildWelcomeScreen: (guildId, params, options) => fetch({
908
- method: "PATCH",
909
- url: `/guilds/${guildId}/welcome-screen`,
910
- params,
911
- options,
912
- }),
913
- modifyGuildWidget: (guildId, options) => fetch({
914
- method: "PATCH",
915
- url: `/guilds/${guildId}/widget`,
916
- options,
917
- }),
918
- modifyStageInstance: (channelId, params, options) => fetch({
919
- method: "PATCH",
920
- url: `/stage-instances/${channelId}`,
921
- params,
922
- options,
923
- }),
924
- modifyUserVoiceState: (guildId, userId, params, options) => fetch({
925
- method: "PATCH",
926
- url: `/guilds/${guildId}/voice-states/${userId}`,
927
- params,
928
- options,
929
- }),
930
- modifyWebhook: (webhookId, params, options) => fetch({
931
- method: "PATCH",
932
- url: `/webhooks/${webhookId}`,
933
- params,
934
- options,
935
- }),
936
- modifyWebhookWithToken: (webhookId, webhookToken, options) => fetch({
937
- method: "PATCH",
938
- url: `/webhooks/${webhookId}/${webhookToken}`,
939
- options,
940
- }),
941
- pinMessage: (channelId, messageId, options) => fetch({
942
- method: "PUT",
943
- url: `/channels/${channelId}/pins/${messageId}`,
944
- options,
945
- }),
946
- removeGuildBan: (guildId, userId, options) => fetch({
947
- method: "DELETE",
948
- url: `/guilds/${guildId}/bans/${userId}`,
949
- options,
950
- }),
951
- removeGuildMember: (guildId, userId, options) => fetch({
952
- method: "DELETE",
953
- url: `/guilds/${guildId}/members/${userId}`,
954
- options,
955
- }),
956
- removeGuildMemberRole: (guildId, userId, roleId, options) => fetch({
957
- method: "DELETE",
958
- url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
959
- options,
960
- }),
961
- removeThreadMember: (channelId, userId, options) => fetch({
962
- method: "DELETE",
963
- url: `/channels/${channelId}/thread-members/${userId}`,
964
- options,
965
- }),
966
- searchGuildMembers: (guildId, params, options) => fetch({
967
- method: "GET",
968
- url: `/guilds/${guildId}/members/search`,
969
- params,
970
- options,
971
- }),
972
- startThreadFromMessage: (channelId, messageId, params, options) => fetch({
973
- method: "POST",
974
- url: `/channels/${channelId}/messages/${messageId}/threads`,
975
- params,
976
- options,
977
- }),
978
- startThreadInForumChannel: (channelId, params, options) => fetch({
979
- method: "POST",
980
- url: `/channels/${channelId}/threads`,
981
- params,
982
- options,
983
- }),
984
- startThreadWithoutMessage: (channelId, params, options) => fetch({
985
- method: "POST",
986
- url: `/channels/${channelId}/threads`,
987
- params,
988
- options,
989
- }),
990
- syncGuildTemplate: (guildId, templateCode, options) => fetch({
991
- method: "PUT",
992
- url: `/guilds/${guildId}/templates/${templateCode}`,
993
- options,
994
- }),
995
- triggerTypingIndicator: (channelId, options) => fetch({
996
- method: "POST",
997
- url: `/channels/${channelId}/typing`,
998
- options,
999
- }),
1000
- unpinMessage: (channelId, messageId, options) => fetch({
1001
- method: "DELETE",
1002
- url: `/channels/${channelId}/pins/${messageId}`,
1003
- options,
1004
- }),
1005
- updateApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
1006
- method: "PUT",
1007
- url: `/applications/${applicationId}/role-connections/metadata`,
1008
- options,
1009
- }),
1010
- updateUserApplicationRoleConnection: (applicationId, params, options) => fetch({
1011
- method: "PUT",
1012
- url: `/users/@me/applications/${applicationId}/role-connection`,
1013
- params,
1014
- options,
1015
- }),
1016
- };
49
+ exports.ChannelFlag = ChannelFlag;
50
+ function createRoutes(fetch) {
51
+ return {
52
+ addGuildMember: (guildId, userId, params, options) => fetch({
53
+ method: "PUT",
54
+ url: `/guilds/${guildId}/members/${userId}`,
55
+ params,
56
+ options
57
+ }),
58
+ addGuildMemberRole: (guildId, userId, roleId, options) => fetch({
59
+ method: "PUT",
60
+ url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
61
+ options
62
+ }),
63
+ addThreadMember: (channelId, userId, options) => fetch({
64
+ method: "PUT",
65
+ url: `/channels/${channelId}/thread-members/${userId}`,
66
+ options
67
+ }),
68
+ batchEditApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
69
+ method: "PUT",
70
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
71
+ options
72
+ }),
73
+ beginGuildPrune: (guildId, params, options) => fetch({
74
+ method: "POST",
75
+ url: `/guilds/${guildId}/prune`,
76
+ params,
77
+ options
78
+ }),
79
+ bulkDeleteMessages: (channelId, params, options) => fetch({
80
+ method: "POST",
81
+ url: `/channels/${channelId}/messages/bulk-delete`,
82
+ params,
83
+ options
84
+ }),
85
+ bulkOverwriteGlobalApplicationCommands: (applicationId, options) => fetch({
86
+ method: "PUT",
87
+ url: `/applications/${applicationId}/commands`,
88
+ options
89
+ }),
90
+ bulkOverwriteGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
91
+ method: "PUT",
92
+ url: `/applications/${applicationId}/guilds/${guildId}/commands`,
93
+ params,
94
+ options
95
+ }),
96
+ createAutoModerationRule: (guildId, params, options) => fetch({
97
+ method: "POST",
98
+ url: `/guilds/${guildId}/auto-moderation/rules`,
99
+ params,
100
+ options
101
+ }),
102
+ createChannelInvite: (channelId, params, options) => fetch({
103
+ method: "POST",
104
+ url: `/channels/${channelId}/invites`,
105
+ params,
106
+ options
107
+ }),
108
+ createDm: (params, options) => fetch({
109
+ method: "POST",
110
+ url: `/users/@me/channels`,
111
+ params,
112
+ options
113
+ }),
114
+ createFollowupMessage: (applicationId, interactionToken, params, options) => fetch({
115
+ method: "POST",
116
+ url: `/webhooks/${applicationId}/${interactionToken}`,
117
+ params,
118
+ options
119
+ }),
120
+ createGlobalApplicationCommand: (applicationId, params, options) => fetch({
121
+ method: "POST",
122
+ url: `/applications/${applicationId}/commands`,
123
+ params,
124
+ options
125
+ }),
126
+ createGroupDm: (params, options) => fetch({
127
+ method: "POST",
128
+ url: `/users/@me/channels`,
129
+ params,
130
+ options
131
+ }),
132
+ createGuild: (params, options) => fetch({
133
+ method: "POST",
134
+ url: `/guilds`,
135
+ params,
136
+ options
137
+ }),
138
+ createGuildApplicationCommand: (applicationId, guildId, params, options) => fetch({
139
+ method: "POST",
140
+ url: `/applications/${applicationId}/guilds/${guildId}/commands`,
141
+ params,
142
+ options
143
+ }),
144
+ createGuildBan: (guildId, userId, params, options) => fetch({
145
+ method: "PUT",
146
+ url: `/guilds/${guildId}/bans/${userId}`,
147
+ params,
148
+ options
149
+ }),
150
+ createGuildChannel: (guildId, params, options) => fetch({
151
+ method: "POST",
152
+ url: `/guilds/${guildId}/channels`,
153
+ params,
154
+ options
155
+ }),
156
+ createGuildEmoji: (guildId, params, options) => fetch({
157
+ method: "POST",
158
+ url: `/guilds/${guildId}/emojis`,
159
+ params,
160
+ options
161
+ }),
162
+ createGuildFromGuildTemplate: (templateCode, params, options) => fetch({
163
+ method: "POST",
164
+ url: `/guilds/templates/${templateCode}`,
165
+ params,
166
+ options
167
+ }),
168
+ createGuildRole: (guildId, params, options) => fetch({
169
+ method: "POST",
170
+ url: `/guilds/${guildId}/roles`,
171
+ params,
172
+ options
173
+ }),
174
+ createGuildScheduledEvent: (guildId, params, options) => fetch({
175
+ method: "POST",
176
+ url: `/guilds/${guildId}/scheduled-events`,
177
+ params,
178
+ options
179
+ }),
180
+ createGuildSticker: (guildId, params, options) => fetch({
181
+ method: "POST",
182
+ url: `/guilds/${guildId}/stickers`,
183
+ params,
184
+ options
185
+ }),
186
+ createGuildTemplate: (guildId, params, options) => fetch({
187
+ method: "POST",
188
+ url: `/guilds/${guildId}/templates`,
189
+ params,
190
+ options
191
+ }),
192
+ createInteractionResponse: (interactionId, interactionToken, params, options) => fetch({
193
+ method: "POST",
194
+ url: `/interactions/${interactionId}/${interactionToken}/callback`,
195
+ params,
196
+ options
197
+ }),
198
+ createMessage: (channelId, params, options) => fetch({
199
+ method: "POST",
200
+ url: `/channels/${channelId}/messages`,
201
+ params,
202
+ options
203
+ }),
204
+ createReaction: (channelId, messageId, emoji, options) => fetch({
205
+ method: "PUT",
206
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
207
+ options
208
+ }),
209
+ createStageInstance: (params, options) => fetch({
210
+ method: "POST",
211
+ url: `/stage-instances`,
212
+ params,
213
+ options
214
+ }),
215
+ createWebhook: (channelId, params, options) => fetch({
216
+ method: "POST",
217
+ url: `/channels/${channelId}/webhooks`,
218
+ params,
219
+ options
220
+ }),
221
+ crosspostMessage: (channelId, messageId, options) => fetch({
222
+ method: "POST",
223
+ url: `/channels/${channelId}/messages/${messageId}/crosspost`,
224
+ options
225
+ }),
226
+ deleteAllReactions: (channelId, messageId, options) => fetch({
227
+ method: "DELETE",
228
+ url: `/channels/${channelId}/messages/${messageId}/reactions`,
229
+ options
230
+ }),
231
+ deleteAllReactionsForEmoji: (channelId, messageId, emoji, options) => fetch({
232
+ method: "DELETE",
233
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
234
+ options
235
+ }),
236
+ deleteAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
237
+ method: "DELETE",
238
+ url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
239
+ options
240
+ }),
241
+ deleteChannelPermission: (channelId, overwriteId, options) => fetch({
242
+ method: "DELETE",
243
+ url: `/channels/${channelId}/permissions/${overwriteId}`,
244
+ options
245
+ }),
246
+ deletecloseChannel: (channelId, options) => fetch({
247
+ method: "DELETE",
248
+ url: `/channels/${channelId}`,
249
+ options
250
+ }),
251
+ deleteFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
252
+ method: "DELETE",
253
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
254
+ options
255
+ }),
256
+ deleteGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
257
+ method: "DELETE",
258
+ url: `/applications/${applicationId}/commands/${commandId}`,
259
+ options
260
+ }),
261
+ deleteGuild: (guildId, options) => fetch({
262
+ method: "DELETE",
263
+ url: `/guilds/${guildId}`,
264
+ options
265
+ }),
266
+ deleteGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
267
+ method: "DELETE",
268
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
269
+ options
270
+ }),
271
+ deleteGuildEmoji: (guildId, emojiId, options) => fetch({
272
+ method: "DELETE",
273
+ url: `/guilds/${guildId}/emojis/${emojiId}`,
274
+ options
275
+ }),
276
+ deleteGuildIntegration: (guildId, integrationId, options) => fetch({
277
+ method: "DELETE",
278
+ url: `/guilds/${guildId}/integrations/${integrationId}`,
279
+ options
280
+ }),
281
+ deleteGuildRole: (guildId, roleId, options) => fetch({
282
+ method: "DELETE",
283
+ url: `/guilds/${guildId}/roles/${roleId}`,
284
+ options
285
+ }),
286
+ deleteGuildScheduledEvent: (guildId, guildScheduledEventId, options) => fetch({
287
+ method: "DELETE",
288
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
289
+ options
290
+ }),
291
+ deleteGuildSticker: (guildId, stickerId, options) => fetch({
292
+ method: "DELETE",
293
+ url: `/guilds/${guildId}/stickers/${stickerId}`,
294
+ options
295
+ }),
296
+ deleteGuildTemplate: (guildId, templateCode, options) => fetch({
297
+ method: "DELETE",
298
+ url: `/guilds/${guildId}/templates/${templateCode}`,
299
+ options
300
+ }),
301
+ deleteInvite: (inviteCode, options) => fetch({
302
+ method: "DELETE",
303
+ url: `/invites/${inviteCode}`,
304
+ options
305
+ }),
306
+ deleteMessage: (channelId, messageId, options) => fetch({
307
+ method: "DELETE",
308
+ url: `/channels/${channelId}/messages/${messageId}`,
309
+ options
310
+ }),
311
+ deleteOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
312
+ method: "DELETE",
313
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
314
+ options
315
+ }),
316
+ deleteOwnReaction: (channelId, messageId, emoji, options) => fetch({
317
+ method: "DELETE",
318
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
319
+ options
320
+ }),
321
+ deleteStageInstance: (channelId, options) => fetch({
322
+ method: "DELETE",
323
+ url: `/stage-instances/${channelId}`,
324
+ options
325
+ }),
326
+ deleteUserReaction: (channelId, messageId, emoji, userId, options) => fetch({
327
+ method: "DELETE",
328
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/${userId}`,
329
+ options
330
+ }),
331
+ deleteWebhook: (webhookId, options) => fetch({
332
+ method: "DELETE",
333
+ url: `/webhooks/${webhookId}`,
334
+ options
335
+ }),
336
+ deleteWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
337
+ method: "DELETE",
338
+ url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
339
+ params,
340
+ options
341
+ }),
342
+ deleteWebhookWithToken: (webhookId, webhookToken, options) => fetch({
343
+ method: "DELETE",
344
+ url: `/webhooks/${webhookId}/${webhookToken}`,
345
+ options
346
+ }),
347
+ editApplicationCommandPermissions: (applicationId, guildId, commandId, params, options) => fetch({
348
+ method: "PUT",
349
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
350
+ params,
351
+ options
352
+ }),
353
+ editChannelPermissions: (channelId, overwriteId, params, options) => fetch({
354
+ method: "PUT",
355
+ url: `/channels/${channelId}/permissions/${overwriteId}`,
356
+ params,
357
+ options
358
+ }),
359
+ editFollowupMessage: (applicationId, interactionToken, messageId, params, options) => fetch({
360
+ method: "PATCH",
361
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
362
+ params,
363
+ options
364
+ }),
365
+ editGlobalApplicationCommand: (applicationId, commandId, params, options) => fetch({
366
+ method: "PATCH",
367
+ url: `/applications/${applicationId}/commands/${commandId}`,
368
+ params,
369
+ options
370
+ }),
371
+ editGuildApplicationCommand: (applicationId, guildId, commandId, params, options) => fetch({
372
+ method: "PATCH",
373
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
374
+ params,
375
+ options
376
+ }),
377
+ editMessage: (channelId, messageId, params, options) => fetch({
378
+ method: "PATCH",
379
+ url: `/channels/${channelId}/messages/${messageId}`,
380
+ params,
381
+ options
382
+ }),
383
+ editOriginalInteractionResponse: (applicationId, interactionToken, params, options) => fetch({
384
+ method: "PATCH",
385
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
386
+ params,
387
+ options
388
+ }),
389
+ editWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
390
+ method: "PATCH",
391
+ url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
392
+ params,
393
+ options
394
+ }),
395
+ executeGitHubCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
396
+ method: "POST",
397
+ url: `/webhooks/${webhookId}/${webhookToken}/github`,
398
+ options
399
+ }),
400
+ executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
401
+ method: "POST",
402
+ url: `/webhooks/${webhookId}/${webhookToken}/slack`,
403
+ options
404
+ }),
405
+ executeWebhook: (webhookId, webhookToken, params, options) => fetch({
406
+ method: "POST",
407
+ url: `/webhooks/${webhookId}/${webhookToken}`,
408
+ params,
409
+ options
410
+ }),
411
+ followAnnouncementChannel: (channelId, params, options) => fetch({
412
+ method: "POST",
413
+ url: `/channels/${channelId}/followers`,
414
+ params,
415
+ options
416
+ }),
417
+ getApplicationCommandPermissions: (applicationId, guildId, commandId, options) => fetch({
418
+ method: "GET",
419
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
420
+ options
421
+ }),
422
+ getApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
423
+ method: "GET",
424
+ url: `/applications/${applicationId}/role-connections/metadata`,
425
+ options
426
+ }),
427
+ getAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
428
+ method: "GET",
429
+ url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
430
+ options
431
+ }),
432
+ getChannel: (channelId, options) => fetch({
433
+ method: "GET",
434
+ url: `/channels/${channelId}`,
435
+ options
436
+ }),
437
+ getChannelInvites: (channelId, options) => fetch({
438
+ method: "GET",
439
+ url: `/channels/${channelId}/invites`,
440
+ options
441
+ }),
442
+ getChannelMessage: (channelId, messageId, options) => fetch({
443
+ method: "GET",
444
+ url: `/channels/${channelId}/messages/${messageId}`,
445
+ options
446
+ }),
447
+ getChannelMessages: (channelId, params, options) => fetch({
448
+ method: "GET",
449
+ url: `/channels/${channelId}/messages`,
450
+ params,
451
+ options
452
+ }),
453
+ getChannelWebhooks: (channelId, options) => fetch({
454
+ method: "GET",
455
+ url: `/channels/${channelId}/webhooks`,
456
+ options
457
+ }),
458
+ getCurrentAuthorizationInformation: options => fetch({
459
+ method: "GET",
460
+ url: `/oauth2/@me`,
461
+ options
462
+ }),
463
+ getCurrentBotApplicationInformation: options => fetch({
464
+ method: "GET",
465
+ url: `/oauth2/applications/@me`,
466
+ options
467
+ }),
468
+ getCurrentUser: options => fetch({
469
+ method: "GET",
470
+ url: `/users/@me`,
471
+ options
472
+ }),
473
+ getCurrentUserGuildMember: (guildId, options) => fetch({
474
+ method: "GET",
475
+ url: `/users/@me/guilds/${guildId}/member`,
476
+ options
477
+ }),
478
+ getCurrentUserGuilds: (params, options) => fetch({
479
+ method: "GET",
480
+ url: `/users/@me/guilds`,
481
+ params,
482
+ options
483
+ }),
484
+ getFollowupMessage: (applicationId, interactionToken, messageId, params, options) => fetch({
485
+ method: "GET",
486
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
487
+ params,
488
+ options
489
+ }),
490
+ getGateway: options => fetch({
491
+ method: "GET",
492
+ url: `/gateway`,
493
+ options
494
+ }),
495
+ getGatewayBot: options => fetch({
496
+ method: "GET",
497
+ url: `/gateway/bot`,
498
+ options
499
+ }),
500
+ getGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
501
+ method: "GET",
502
+ url: `/applications/${applicationId}/commands/${commandId}`,
503
+ options
504
+ }),
505
+ getGlobalApplicationCommands: (applicationId, params, options) => fetch({
506
+ method: "GET",
507
+ url: `/applications/${applicationId}/commands`,
508
+ params,
509
+ options
510
+ }),
511
+ getGuild: (guildId, params, options) => fetch({
512
+ method: "GET",
513
+ url: `/guilds/${guildId}`,
514
+ params,
515
+ options
516
+ }),
517
+ getGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
518
+ method: "GET",
519
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
520
+ options
521
+ }),
522
+ getGuildApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
523
+ method: "GET",
524
+ url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
525
+ options
526
+ }),
527
+ getGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
528
+ method: "GET",
529
+ url: `/applications/${applicationId}/guilds/${guildId}/commands`,
530
+ params,
531
+ options
532
+ }),
533
+ getGuildAuditLog: (guildId, params, options) => fetch({
534
+ method: "GET",
535
+ url: `/guilds/${guildId}/audit-logs`,
536
+ params,
537
+ options
538
+ }),
539
+ getGuildBan: (guildId, userId, options) => fetch({
540
+ method: "GET",
541
+ url: `/guilds/${guildId}/bans/${userId}`,
542
+ options
543
+ }),
544
+ getGuildBans: (guildId, params, options) => fetch({
545
+ method: "GET",
546
+ url: `/guilds/${guildId}/bans`,
547
+ params,
548
+ options
549
+ }),
550
+ getGuildChannels: (guildId, options) => fetch({
551
+ method: "GET",
552
+ url: `/guilds/${guildId}/channels`,
553
+ options
554
+ }),
555
+ getGuildEmoji: (guildId, emojiId, options) => fetch({
556
+ method: "GET",
557
+ url: `/guilds/${guildId}/emojis/${emojiId}`,
558
+ options
559
+ }),
560
+ getGuildIntegrations: (guildId, options) => fetch({
561
+ method: "GET",
562
+ url: `/guilds/${guildId}/integrations`,
563
+ options
564
+ }),
565
+ getGuildInvites: (guildId, options) => fetch({
566
+ method: "GET",
567
+ url: `/guilds/${guildId}/invites`,
568
+ options
569
+ }),
570
+ getGuildMember: (guildId, userId, options) => fetch({
571
+ method: "GET",
572
+ url: `/guilds/${guildId}/members/${userId}`,
573
+ options
574
+ }),
575
+ getGuildOnboarding: (guildId, options) => fetch({
576
+ method: "GET",
577
+ url: `/guilds/${guildId}/onboarding`,
578
+ options
579
+ }),
580
+ getGuildPreview: (guildId, options) => fetch({
581
+ method: "GET",
582
+ url: `/guilds/${guildId}/preview`,
583
+ options
584
+ }),
585
+ getGuildPruneCount: (guildId, params, options) => fetch({
586
+ method: "GET",
587
+ url: `/guilds/${guildId}/prune`,
588
+ params,
589
+ options
590
+ }),
591
+ getGuildRoles: (guildId, options) => fetch({
592
+ method: "GET",
593
+ url: `/guilds/${guildId}/roles`,
594
+ options
595
+ }),
596
+ getGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
597
+ method: "GET",
598
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
599
+ params,
600
+ options
601
+ }),
602
+ getGuildScheduledEventUsers: (guildId, guildScheduledEventId, params, options) => fetch({
603
+ method: "GET",
604
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
605
+ params,
606
+ options
607
+ }),
608
+ getGuildSticker: (guildId, stickerId, options) => fetch({
609
+ method: "GET",
610
+ url: `/guilds/${guildId}/stickers/${stickerId}`,
611
+ options
612
+ }),
613
+ getGuildTemplate: (templateCode, options) => fetch({
614
+ method: "GET",
615
+ url: `/guilds/templates/${templateCode}`,
616
+ options
617
+ }),
618
+ getGuildTemplates: (guildId, options) => fetch({
619
+ method: "GET",
620
+ url: `/guilds/${guildId}/templates`,
621
+ options
622
+ }),
623
+ getGuildVanityUrl: (guildId, options) => fetch({
624
+ method: "GET",
625
+ url: `/guilds/${guildId}/vanity-url`,
626
+ options
627
+ }),
628
+ getGuildVoiceRegions: (guildId, options) => fetch({
629
+ method: "GET",
630
+ url: `/guilds/${guildId}/regions`,
631
+ options
632
+ }),
633
+ getGuildWebhooks: (guildId, options) => fetch({
634
+ method: "GET",
635
+ url: `/guilds/${guildId}/webhooks`,
636
+ options
637
+ }),
638
+ getGuildWelcomeScreen: (guildId, options) => fetch({
639
+ method: "GET",
640
+ url: `/guilds/${guildId}/welcome-screen`,
641
+ options
642
+ }),
643
+ getGuildWidget: (guildId, options) => fetch({
644
+ method: "GET",
645
+ url: `/guilds/${guildId}/widget.json`,
646
+ options
647
+ }),
648
+ getGuildWidgetImage: (guildId, params, options) => fetch({
649
+ method: "GET",
650
+ url: `/guilds/${guildId}/widget.png`,
651
+ params,
652
+ options
653
+ }),
654
+ getGuildWidgetSettings: (guildId, options) => fetch({
655
+ method: "GET",
656
+ url: `/guilds/${guildId}/widget`,
657
+ options
658
+ }),
659
+ getInvite: (inviteCode, params, options) => fetch({
660
+ method: "GET",
661
+ url: `/invites/${inviteCode}`,
662
+ params,
663
+ options
664
+ }),
665
+ getOriginalInteractionResponse: (applicationId, interactionToken, params, options) => fetch({
666
+ method: "GET",
667
+ url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
668
+ params,
669
+ options
670
+ }),
671
+ getPinnedMessages: (channelId, options) => fetch({
672
+ method: "GET",
673
+ url: `/channels/${channelId}/pins`,
674
+ options
675
+ }),
676
+ getReactions: (channelId, messageId, emoji, params, options) => fetch({
677
+ method: "GET",
678
+ url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
679
+ params,
680
+ options
681
+ }),
682
+ getStageInstance: (channelId, options) => fetch({
683
+ method: "GET",
684
+ url: `/stage-instances/${channelId}`,
685
+ options
686
+ }),
687
+ getSticker: (stickerId, options) => fetch({
688
+ method: "GET",
689
+ url: `/stickers/${stickerId}`,
690
+ options
691
+ }),
692
+ getThreadMember: (channelId, userId, params, options) => fetch({
693
+ method: "GET",
694
+ url: `/channels/${channelId}/thread-members/${userId}`,
695
+ params,
696
+ options
697
+ }),
698
+ getUser: (userId, options) => fetch({
699
+ method: "GET",
700
+ url: `/users/${userId}`,
701
+ options
702
+ }),
703
+ getUserApplicationRoleConnection: (applicationId, options) => fetch({
704
+ method: "GET",
705
+ url: `/users/@me/applications/${applicationId}/role-connection`,
706
+ options
707
+ }),
708
+ getUserConnections: options => fetch({
709
+ method: "GET",
710
+ url: `/users/@me/connections`,
711
+ options
712
+ }),
713
+ getWebhook: (webhookId, options) => fetch({
714
+ method: "GET",
715
+ url: `/webhooks/${webhookId}`,
716
+ options
717
+ }),
718
+ getWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
719
+ method: "GET",
720
+ url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
721
+ params,
722
+ options
723
+ }),
724
+ getWebhookWithToken: (webhookId, webhookToken, options) => fetch({
725
+ method: "GET",
726
+ url: `/webhooks/${webhookId}/${webhookToken}`,
727
+ options
728
+ }),
729
+ groupDmAddRecipient: (channelId, userId, params, options) => fetch({
730
+ method: "PUT",
731
+ url: `/channels/${channelId}/recipients/${userId}`,
732
+ params,
733
+ options
734
+ }),
735
+ groupDmRemoveRecipient: (channelId, userId, options) => fetch({
736
+ method: "DELETE",
737
+ url: `/channels/${channelId}/recipients/${userId}`,
738
+ options
739
+ }),
740
+ joinThread: (channelId, options) => fetch({
741
+ method: "PUT",
742
+ url: `/channels/${channelId}/thread-members/@me`,
743
+ options
744
+ }),
745
+ leaveGuild: (guildId, options) => fetch({
746
+ method: "DELETE",
747
+ url: `/users/@me/guilds/${guildId}`,
748
+ options
749
+ }),
750
+ leaveThread: (channelId, options) => fetch({
751
+ method: "DELETE",
752
+ url: `/channels/${channelId}/thread-members/@me`,
753
+ options
754
+ }),
755
+ listActiveGuildThreads: (guildId, options) => fetch({
756
+ method: "GET",
757
+ url: `/guilds/${guildId}/threads/active`,
758
+ options
759
+ }),
760
+ listAutoModerationRulesForGuild: (guildId, options) => fetch({
761
+ method: "GET",
762
+ url: `/guilds/${guildId}/auto-moderation/rules`,
763
+ options
764
+ }),
765
+ listGuildEmojis: (guildId, options) => fetch({
766
+ method: "GET",
767
+ url: `/guilds/${guildId}/emojis`,
768
+ options
769
+ }),
770
+ listGuildMembers: (guildId, params, options) => fetch({
771
+ method: "GET",
772
+ url: `/guilds/${guildId}/members`,
773
+ params,
774
+ options
775
+ }),
776
+ listGuildStickers: (guildId, options) => fetch({
777
+ method: "GET",
778
+ url: `/guilds/${guildId}/stickers`,
779
+ options
780
+ }),
781
+ listJoinedPrivateArchivedThreads: (channelId, params, options) => fetch({
782
+ method: "GET",
783
+ url: `/channels/${channelId}/users/@me/threads/archived/private`,
784
+ params,
785
+ options
786
+ }),
787
+ listNitroStickerPacks: options => fetch({
788
+ method: "GET",
789
+ url: `/sticker-packs`,
790
+ options
791
+ }),
792
+ listPrivateArchivedThreads: (channelId, params, options) => fetch({
793
+ method: "GET",
794
+ url: `/channels/${channelId}/threads/archived/private`,
795
+ params,
796
+ options
797
+ }),
798
+ listPublicArchivedThreads: (channelId, params, options) => fetch({
799
+ method: "GET",
800
+ url: `/channels/${channelId}/threads/archived/public`,
801
+ params,
802
+ options
803
+ }),
804
+ listScheduledEventsForGuild: (guildId, params, options) => fetch({
805
+ method: "GET",
806
+ url: `/guilds/${guildId}/scheduled-events`,
807
+ params,
808
+ options
809
+ }),
810
+ listThreadMembers: (channelId, params, options) => fetch({
811
+ method: "GET",
812
+ url: `/channels/${channelId}/thread-members`,
813
+ params,
814
+ options
815
+ }),
816
+ listVoiceRegions: options => fetch({
817
+ method: "GET",
818
+ url: `/voice/regions`,
819
+ options
820
+ }),
821
+ modifyAutoModerationRule: (guildId, autoModerationRuleId, params, options) => fetch({
822
+ method: "PATCH",
823
+ url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
824
+ params,
825
+ options
826
+ }),
827
+ modifyChannel: (channelId, params, options) => fetch({
828
+ method: "PATCH",
829
+ url: `/channels/${channelId}`,
830
+ params,
831
+ options
832
+ }),
833
+ modifyCurrentMember: (guildId, params, options) => fetch({
834
+ method: "PATCH",
835
+ url: `/guilds/${guildId}/members/@me`,
836
+ params,
837
+ options
838
+ }),
839
+ modifyCurrentUser: (params, options) => fetch({
840
+ method: "PATCH",
841
+ url: `/users/@me`,
842
+ params,
843
+ options
844
+ }),
845
+ modifyCurrentUserNick: (guildId, params, options) => fetch({
846
+ method: "PATCH",
847
+ url: `/guilds/${guildId}/members/@me/nick`,
848
+ params,
849
+ options
850
+ }),
851
+ modifyCurrentUserVoiceState: (guildId, params, options) => fetch({
852
+ method: "PATCH",
853
+ url: `/guilds/${guildId}/voice-states/@me`,
854
+ params,
855
+ options
856
+ }),
857
+ modifyGuild: (guildId, params, options) => fetch({
858
+ method: "PATCH",
859
+ url: `/guilds/${guildId}`,
860
+ params,
861
+ options
862
+ }),
863
+ modifyGuildChannelPositions: (guildId, params, options) => fetch({
864
+ method: "PATCH",
865
+ url: `/guilds/${guildId}/channels`,
866
+ params,
867
+ options
868
+ }),
869
+ modifyGuildEmoji: (guildId, emojiId, params, options) => fetch({
870
+ method: "PATCH",
871
+ url: `/guilds/${guildId}/emojis/${emojiId}`,
872
+ params,
873
+ options
874
+ }),
875
+ modifyGuildMember: (guildId, userId, params, options) => fetch({
876
+ method: "PATCH",
877
+ url: `/guilds/${guildId}/members/${userId}`,
878
+ params,
879
+ options
880
+ }),
881
+ modifyGuildMfaLevel: (guildId, params, options) => fetch({
882
+ method: "POST",
883
+ url: `/guilds/${guildId}/mfa`,
884
+ params,
885
+ options
886
+ }),
887
+ modifyGuildRole: (guildId, roleId, params, options) => fetch({
888
+ method: "PATCH",
889
+ url: `/guilds/${guildId}/roles/${roleId}`,
890
+ params,
891
+ options
892
+ }),
893
+ modifyGuildRolePositions: (guildId, params, options) => fetch({
894
+ method: "PATCH",
895
+ url: `/guilds/${guildId}/roles`,
896
+ params,
897
+ options
898
+ }),
899
+ modifyGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
900
+ method: "PATCH",
901
+ url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
902
+ params,
903
+ options
904
+ }),
905
+ modifyGuildSticker: (guildId, stickerId, params, options) => fetch({
906
+ method: "PATCH",
907
+ url: `/guilds/${guildId}/stickers/${stickerId}`,
908
+ params,
909
+ options
910
+ }),
911
+ modifyGuildTemplate: (guildId, templateCode, params, options) => fetch({
912
+ method: "PATCH",
913
+ url: `/guilds/${guildId}/templates/${templateCode}`,
914
+ params,
915
+ options
916
+ }),
917
+ modifyGuildWelcomeScreen: (guildId, params, options) => fetch({
918
+ method: "PATCH",
919
+ url: `/guilds/${guildId}/welcome-screen`,
920
+ params,
921
+ options
922
+ }),
923
+ modifyGuildWidget: (guildId, options) => fetch({
924
+ method: "PATCH",
925
+ url: `/guilds/${guildId}/widget`,
926
+ options
927
+ }),
928
+ modifyStageInstance: (channelId, params, options) => fetch({
929
+ method: "PATCH",
930
+ url: `/stage-instances/${channelId}`,
931
+ params,
932
+ options
933
+ }),
934
+ modifyUserVoiceState: (guildId, userId, params, options) => fetch({
935
+ method: "PATCH",
936
+ url: `/guilds/${guildId}/voice-states/${userId}`,
937
+ params,
938
+ options
939
+ }),
940
+ modifyWebhook: (webhookId, params, options) => fetch({
941
+ method: "PATCH",
942
+ url: `/webhooks/${webhookId}`,
943
+ params,
944
+ options
945
+ }),
946
+ modifyWebhookWithToken: (webhookId, webhookToken, options) => fetch({
947
+ method: "PATCH",
948
+ url: `/webhooks/${webhookId}/${webhookToken}`,
949
+ options
950
+ }),
951
+ pinMessage: (channelId, messageId, options) => fetch({
952
+ method: "PUT",
953
+ url: `/channels/${channelId}/pins/${messageId}`,
954
+ options
955
+ }),
956
+ removeGuildBan: (guildId, userId, options) => fetch({
957
+ method: "DELETE",
958
+ url: `/guilds/${guildId}/bans/${userId}`,
959
+ options
960
+ }),
961
+ removeGuildMember: (guildId, userId, options) => fetch({
962
+ method: "DELETE",
963
+ url: `/guilds/${guildId}/members/${userId}`,
964
+ options
965
+ }),
966
+ removeGuildMemberRole: (guildId, userId, roleId, options) => fetch({
967
+ method: "DELETE",
968
+ url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
969
+ options
970
+ }),
971
+ removeThreadMember: (channelId, userId, options) => fetch({
972
+ method: "DELETE",
973
+ url: `/channels/${channelId}/thread-members/${userId}`,
974
+ options
975
+ }),
976
+ searchGuildMembers: (guildId, params, options) => fetch({
977
+ method: "GET",
978
+ url: `/guilds/${guildId}/members/search`,
979
+ params,
980
+ options
981
+ }),
982
+ startThreadFromMessage: (channelId, messageId, params, options) => fetch({
983
+ method: "POST",
984
+ url: `/channels/${channelId}/messages/${messageId}/threads`,
985
+ params,
986
+ options
987
+ }),
988
+ startThreadInForumChannel: (channelId, params, options) => fetch({
989
+ method: "POST",
990
+ url: `/channels/${channelId}/threads`,
991
+ params,
992
+ options
993
+ }),
994
+ startThreadWithoutMessage: (channelId, params, options) => fetch({
995
+ method: "POST",
996
+ url: `/channels/${channelId}/threads`,
997
+ params,
998
+ options
999
+ }),
1000
+ syncGuildTemplate: (guildId, templateCode, options) => fetch({
1001
+ method: "PUT",
1002
+ url: `/guilds/${guildId}/templates/${templateCode}`,
1003
+ options
1004
+ }),
1005
+ triggerTypingIndicator: (channelId, options) => fetch({
1006
+ method: "POST",
1007
+ url: `/channels/${channelId}/typing`,
1008
+ options
1009
+ }),
1010
+ unpinMessage: (channelId, messageId, options) => fetch({
1011
+ method: "DELETE",
1012
+ url: `/channels/${channelId}/pins/${messageId}`,
1013
+ options
1014
+ }),
1015
+ updateApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
1016
+ method: "PUT",
1017
+ url: `/applications/${applicationId}/role-connections/metadata`,
1018
+ options
1019
+ }),
1020
+ updateUserApplicationRoleConnection: (applicationId, params, options) => fetch({
1021
+ method: "PUT",
1022
+ url: `/users/@me/applications/${applicationId}/role-connection`,
1023
+ params,
1024
+ options
1025
+ })
1026
+ };
1017
1027
  }
1018
- export const GatewayIntents = {
1019
- GUILDS: 1 << 0,
1020
- GUILD_MEMBERS: 1 << 1,
1021
- GUILD_MODERATION: 1 << 2,
1022
- GUILD_EMOJIS_AND_STICKERS: 1 << 3,
1023
- GUILD_INTEGRATIONS: 1 << 4,
1024
- GUILD_WEBHOOKS: 1 << 5,
1025
- GUILD_INVITES: 1 << 6,
1026
- GUILD_VOICE_STATES: 1 << 7,
1027
- GUILD_PRESENCES: 1 << 8,
1028
- GUILD_MESSAGES: 1 << 9,
1029
- GUILD_MESSAGE_REACTIONS: 1 << 10,
1030
- GUILD_MESSAGE_TYPING: 1 << 11,
1031
- DIRECT_MESSAGES: 1 << 12,
1032
- DIRECT_MESSAGE_REACTIONS: 1 << 13,
1033
- DIRECT_MESSAGE_TYPING: 1 << 14,
1034
- MESSAGE_CONTENT: 1 << 15,
1035
- GUILD_SCHEDULED_EVENTS: 1 << 16,
1036
- AUTO_MODERATION_CONFIGURATION: 1 << 20,
1037
- AUTO_MODERATION_EXECUTION: 1 << 21,
1028
+ const GatewayIntents = {
1029
+ GUILDS: 1 << 0,
1030
+ GUILD_MEMBERS: 1 << 1,
1031
+ GUILD_MODERATION: 1 << 2,
1032
+ GUILD_EMOJIS_AND_STICKERS: 1 << 3,
1033
+ GUILD_INTEGRATIONS: 1 << 4,
1034
+ GUILD_WEBHOOKS: 1 << 5,
1035
+ GUILD_INVITES: 1 << 6,
1036
+ GUILD_VOICE_STATES: 1 << 7,
1037
+ GUILD_PRESENCES: 1 << 8,
1038
+ GUILD_MESSAGES: 1 << 9,
1039
+ GUILD_MESSAGE_REACTIONS: 1 << 10,
1040
+ GUILD_MESSAGE_TYPING: 1 << 11,
1041
+ DIRECT_MESSAGES: 1 << 12,
1042
+ DIRECT_MESSAGE_REACTIONS: 1 << 13,
1043
+ DIRECT_MESSAGE_TYPING: 1 << 14,
1044
+ MESSAGE_CONTENT: 1 << 15,
1045
+ GUILD_SCHEDULED_EVENTS: 1 << 16,
1046
+ AUTO_MODERATION_CONFIGURATION: 1 << 20,
1047
+ AUTO_MODERATION_EXECUTION: 1 << 21
1038
1048
  };
1039
- export const GuildMemberFlag = {
1040
- /** Member has left and rejoined the guild */
1041
- DID_REJOIN: 1 << 0,
1042
- /** Member has completed onboarding */
1043
- COMPLETED_ONBOARDING: 1 << 1,
1044
- /** Member is exempt from guild verification requirements */
1045
- BYPASSES_VERIFICATION: 1 << 2,
1046
- /** Member has started onboarding */
1047
- STARTED_ONBOARDING: 1 << 3,
1049
+ exports.GatewayIntents = GatewayIntents;
1050
+ const GuildMemberFlag = {
1051
+ /** Member has left and rejoined the guild */
1052
+ DID_REJOIN: 1 << 0,
1053
+ /** Member has completed onboarding */
1054
+ COMPLETED_ONBOARDING: 1 << 1,
1055
+ /** Member is exempt from guild verification requirements */
1056
+ BYPASSES_VERIFICATION: 1 << 2,
1057
+ /** Member has started onboarding */
1058
+ STARTED_ONBOARDING: 1 << 3
1048
1059
  };
1049
- export const MessageFlag = {
1050
- /** this message has been published to subscribed channels (via Channel Following) */
1051
- CROSSPOSTED: 1 << 0,
1052
- /** this message originated from a message in another channel (via Channel Following) */
1053
- IS_CROSSPOST: 1 << 1,
1054
- /** do not include any embeds when serializing this message */
1055
- SUPPRESS_EMBEDS: 1 << 2,
1056
- /** the source message for this crosspost has been deleted (via Channel Following) */
1057
- SOURCE_MESSAGE_DELETED: 1 << 3,
1058
- /** this message came from the urgent message system */
1059
- URGENT: 1 << 4,
1060
- /** this message has an associated thread, with the same id as the message */
1061
- HAS_THREAD: 1 << 5,
1062
- /** this message is only visible to the user who invoked the Interaction */
1063
- EPHEMERAL: 1 << 6,
1064
- /** this message is an Interaction Response and the bot is "thinking" */
1065
- LOADING: 1 << 7,
1066
- /** this message failed to mention some roles and add their members to the thread */
1067
- FAILED_TO_MENTION_SOME_ROLES_IN_THREAD: 1 << 8,
1068
- /** this message will not trigger push and desktop notifications */
1069
- SUPPRESS_NOTIFICATIONS: 1 << 12,
1070
- /** this message is a voice message */
1071
- IS_VOICE_MESSAGE: 1 << 13,
1060
+ exports.GuildMemberFlag = GuildMemberFlag;
1061
+ const MessageFlag = {
1062
+ /** this message has been published to subscribed channels (via Channel Following) */
1063
+ CROSSPOSTED: 1 << 0,
1064
+ /** this message originated from a message in another channel (via Channel Following) */
1065
+ IS_CROSSPOST: 1 << 1,
1066
+ /** do not include any embeds when serializing this message */
1067
+ SUPPRESS_EMBEDS: 1 << 2,
1068
+ /** the source message for this crosspost has been deleted (via Channel Following) */
1069
+ SOURCE_MESSAGE_DELETED: 1 << 3,
1070
+ /** this message came from the urgent message system */
1071
+ URGENT: 1 << 4,
1072
+ /** this message has an associated thread, with the same id as the message */
1073
+ HAS_THREAD: 1 << 5,
1074
+ /** this message is only visible to the user who invoked the Interaction */
1075
+ EPHEMERAL: 1 << 6,
1076
+ /** this message is an Interaction Response and the bot is "thinking" */
1077
+ LOADING: 1 << 7,
1078
+ /** this message failed to mention some roles and add their members to the thread */
1079
+ FAILED_TO_MENTION_SOME_ROLES_IN_THREAD: 1 << 8,
1080
+ /** this message will not trigger push and desktop notifications */
1081
+ SUPPRESS_NOTIFICATIONS: 1 << 12,
1082
+ /** this message is a voice message */
1083
+ IS_VOICE_MESSAGE: 1 << 13
1072
1084
  };
1073
- export const PermissionFlag = {
1074
- /** Allows creation of instant invites */
1075
- CREATE_INSTANT_INVITE: BigInt(1) << BigInt(0),
1076
- /** Allows kicking members */
1077
- KICK_MEMBERS: BigInt(1) << BigInt(1),
1078
- /** Allows banning members */
1079
- BAN_MEMBERS: BigInt(1) << BigInt(2),
1080
- /** Allows all permissions and bypasses channel permission overwrites */
1081
- ADMINISTRATOR: BigInt(1) << BigInt(3),
1082
- /** Allows management and editing of channels */
1083
- MANAGE_CHANNELS: BigInt(1) << BigInt(4),
1084
- /** Allows management and editing of the guild */
1085
- MANAGE_GUILD: BigInt(1) << BigInt(5),
1086
- /** Allows for the addition of reactions to messages */
1087
- ADD_REACTIONS: BigInt(1) << BigInt(6),
1088
- /** Allows for viewing of audit logs */
1089
- VIEW_AUDIT_LOG: BigInt(1) << BigInt(7),
1090
- /** Allows for using priority speaker in a voice channel */
1091
- PRIORITY_SPEAKER: BigInt(1) << BigInt(8),
1092
- /** Allows the user to go live */
1093
- STREAM: BigInt(1) << BigInt(9),
1094
- /** Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels */
1095
- VIEW_CHANNEL: BigInt(1) << BigInt(10),
1096
- /** Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads) */
1097
- SEND_MESSAGES: BigInt(1) << BigInt(11),
1098
- /** Allows for sending of /tts messages */
1099
- SEND_TTS_MESSAGES: BigInt(1) << BigInt(12),
1100
- /** Allows for deletion of other users messages */
1101
- MANAGE_MESSAGES: BigInt(1) << BigInt(13),
1102
- /** Links sent by users with this permission will be auto-embedded */
1103
- EMBED_LINKS: BigInt(1) << BigInt(14),
1104
- /** Allows for uploading images and files */
1105
- ATTACH_FILES: BigInt(1) << BigInt(15),
1106
- /** Allows for reading of message history */
1107
- READ_MESSAGE_HISTORY: BigInt(1) << BigInt(16),
1108
- /** Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel */
1109
- MENTION_EVERYONE: BigInt(1) << BigInt(17),
1110
- /** Allows the usage of custom emojis from other servers */
1111
- USE_EXTERNAL_EMOJIS: BigInt(1) << BigInt(18),
1112
- /** Allows for viewing guild insights */
1113
- VIEW_GUILD_INSIGHTS: BigInt(1) << BigInt(19),
1114
- /** Allows for joining of a voice channel */
1115
- CONNECT: BigInt(1) << BigInt(20),
1116
- /** Allows for speaking in a voice channel */
1117
- SPEAK: BigInt(1) << BigInt(21),
1118
- /** Allows for muting members in a voice channel */
1119
- MUTE_MEMBERS: BigInt(1) << BigInt(22),
1120
- /** Allows for deafening of members in a voice channel */
1121
- DEAFEN_MEMBERS: BigInt(1) << BigInt(23),
1122
- /** Allows for moving of members between voice channels */
1123
- MOVE_MEMBERS: BigInt(1) << BigInt(24),
1124
- /** Allows for using voice-activity-detection in a voice channel */
1125
- USE_VAD: BigInt(1) << BigInt(25),
1126
- /** Allows for modification of own nickname */
1127
- CHANGE_NICKNAME: BigInt(1) << BigInt(26),
1128
- /** Allows for modification of other users nicknames */
1129
- MANAGE_NICKNAMES: BigInt(1) << BigInt(27),
1130
- /** Allows management and editing of roles */
1131
- MANAGE_ROLES: BigInt(1) << BigInt(28),
1132
- /** Allows management and editing of webhooks */
1133
- MANAGE_WEBHOOKS: BigInt(1) << BigInt(29),
1134
- /** Allows management and editing of emojis, stickers, and soundboard sounds */
1135
- MANAGE_GUILD_EXPRESSIONS: BigInt(1) << BigInt(30),
1136
- /** Allows members to use application commands, including slash commands and context menu commands. */
1137
- USE_APPLICATION_COMMANDS: BigInt(1) << BigInt(31),
1138
- /** Allows for requesting to speak in stage channels. (This permission is under active development and may be changed or removed.) */
1139
- REQUEST_TO_SPEAK: BigInt(1) << BigInt(32),
1140
- /** Allows for creating, editing, and deleting scheduled events */
1141
- MANAGE_EVENTS: BigInt(1) << BigInt(33),
1142
- /** Allows for deleting and archiving threads, and viewing all private threads */
1143
- MANAGE_THREADS: BigInt(1) << BigInt(34),
1144
- /** Allows for creating public and announcement threads */
1145
- CREATE_PUBLIC_THREADS: BigInt(1) << BigInt(35),
1146
- /** Allows for creating private threads */
1147
- CREATE_PRIVATE_THREADS: BigInt(1) << BigInt(36),
1148
- /** Allows the usage of custom stickers from other servers */
1149
- USE_EXTERNAL_STICKERS: BigInt(1) << BigInt(37),
1150
- /** Allows for sending messages in threads */
1151
- SEND_MESSAGES_IN_THREADS: BigInt(1) << BigInt(38),
1152
- /** Allows for using Activities (applications with the EMBEDDED flag) in a voice channel */
1153
- USE_EMBEDDED_ACTIVITIES: BigInt(1) << BigInt(39),
1154
- /** Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels */
1155
- MODERATE_MEMBERS: BigInt(1) << BigInt(40),
1156
- /** Allows for viewing role subscription insights */
1157
- VIEW_CREATOR_MONETIZATION_ANALYTICS: BigInt(1) << BigInt(41),
1158
- /** Allows for using soundboard in a voice channel */
1159
- USE_SOUNDBOARD: BigInt(1) << BigInt(42),
1160
- /** Allows the usage of custom soundboard sounds from other servers */
1161
- USE_EXTERNAL_SOUNDS: BigInt(1) << BigInt(45),
1162
- /** Allows sending voice messages */
1163
- SEND_VOICE_MESSAGES: BigInt(1) << BigInt(46),
1085
+ exports.MessageFlag = MessageFlag;
1086
+ const PermissionFlag = {
1087
+ /** Allows creation of instant invites */
1088
+ CREATE_INSTANT_INVITE: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(0),
1089
+ /** Allows kicking members */
1090
+ KICK_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(1),
1091
+ /** Allows banning members */
1092
+ BAN_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(2),
1093
+ /** Allows all permissions and bypasses channel permission overwrites */
1094
+ ADMINISTRATOR: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(3),
1095
+ /** Allows management and editing of channels */
1096
+ MANAGE_CHANNELS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(4),
1097
+ /** Allows management and editing of the guild */
1098
+ MANAGE_GUILD: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(5),
1099
+ /** Allows for the addition of reactions to messages */
1100
+ ADD_REACTIONS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(6),
1101
+ /** Allows for viewing of audit logs */
1102
+ VIEW_AUDIT_LOG: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(7),
1103
+ /** Allows for using priority speaker in a voice channel */
1104
+ PRIORITY_SPEAKER: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(8),
1105
+ /** Allows the user to go live */
1106
+ STREAM: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(9),
1107
+ /** Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels */
1108
+ VIEW_CHANNEL: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(10),
1109
+ /** Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads) */
1110
+ SEND_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(11),
1111
+ /** Allows for sending of /tts messages */
1112
+ SEND_TTS_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(12),
1113
+ /** Allows for deletion of other users messages */
1114
+ MANAGE_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(13),
1115
+ /** Links sent by users with this permission will be auto-embedded */
1116
+ EMBED_LINKS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(14),
1117
+ /** Allows for uploading images and files */
1118
+ ATTACH_FILES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(15),
1119
+ /** Allows for reading of message history */
1120
+ READ_MESSAGE_HISTORY: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(16),
1121
+ /** Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel */
1122
+ MENTION_EVERYONE: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(17),
1123
+ /** Allows the usage of custom emojis from other servers */
1124
+ USE_EXTERNAL_EMOJIS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(18),
1125
+ /** Allows for viewing guild insights */
1126
+ VIEW_GUILD_INSIGHTS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(19),
1127
+ /** Allows for joining of a voice channel */
1128
+ CONNECT: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(20),
1129
+ /** Allows for speaking in a voice channel */
1130
+ SPEAK: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(21),
1131
+ /** Allows for muting members in a voice channel */
1132
+ MUTE_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(22),
1133
+ /** Allows for deafening of members in a voice channel */
1134
+ DEAFEN_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(23),
1135
+ /** Allows for moving of members between voice channels */
1136
+ MOVE_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(24),
1137
+ /** Allows for using voice-activity-detection in a voice channel */
1138
+ USE_VAD: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(25),
1139
+ /** Allows for modification of own nickname */
1140
+ CHANGE_NICKNAME: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(26),
1141
+ /** Allows for modification of other users nicknames */
1142
+ MANAGE_NICKNAMES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(27),
1143
+ /** Allows management and editing of roles */
1144
+ MANAGE_ROLES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(28),
1145
+ /** Allows management and editing of webhooks */
1146
+ MANAGE_WEBHOOKS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(29),
1147
+ /** Allows management and editing of emojis, stickers, and soundboard sounds */
1148
+ MANAGE_GUILD_EXPRESSIONS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(30),
1149
+ /** Allows members to use application commands, including slash commands and context menu commands. */
1150
+ USE_APPLICATION_COMMANDS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(31),
1151
+ /** Allows for requesting to speak in stage channels. (This permission is under active development and may be changed or removed.) */
1152
+ REQUEST_TO_SPEAK: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(32),
1153
+ /** Allows for creating, editing, and deleting scheduled events */
1154
+ MANAGE_EVENTS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(33),
1155
+ /** Allows for deleting and archiving threads, and viewing all private threads */
1156
+ MANAGE_THREADS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(34),
1157
+ /** Allows for creating public and announcement threads */
1158
+ CREATE_PUBLIC_THREADS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(35),
1159
+ /** Allows for creating private threads */
1160
+ CREATE_PRIVATE_THREADS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(36),
1161
+ /** Allows the usage of custom stickers from other servers */
1162
+ USE_EXTERNAL_STICKERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(37),
1163
+ /** Allows for sending messages in threads */
1164
+ SEND_MESSAGES_IN_THREADS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(38),
1165
+ /** Allows for using Activities (applications with the EMBEDDED flag) in a voice channel */
1166
+ USE_EMBEDDED_ACTIVITIES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(39),
1167
+ /** Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels */
1168
+ MODERATE_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(40),
1169
+ /** Allows for viewing role subscription insights */
1170
+ VIEW_CREATOR_MONETIZATION_ANALYTICS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(41),
1171
+ /** Allows for using soundboard in a voice channel */
1172
+ USE_SOUNDBOARD: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(42),
1173
+ /** Allows the usage of custom soundboard sounds from other servers */
1174
+ USE_EXTERNAL_SOUNDS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(45),
1175
+ /** Allows sending voice messages */
1176
+ SEND_VOICE_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(46)
1164
1177
  };
1165
- export const SystemChannelFlag = {
1166
- /** Suppress member join notifications */
1167
- SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
1168
- /** Suppress server boost notifications */
1169
- SUPPRESS_PREMIUM_SUBSCRIPTIONS: 1 << 1,
1170
- /** Suppress server setup tips */
1171
- SUPPRESS_GUILD_REMINDER_NOTIFICATIONS: 1 << 2,
1172
- /** Hide member join sticker reply buttons */
1173
- SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3,
1174
- /** Suppress role subscription purchase and renewal notifications */
1175
- SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS: 1 << 4,
1176
- /** Hide role subscription sticker reply buttons */
1177
- SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5,
1178
+ exports.PermissionFlag = PermissionFlag;
1179
+ const SystemChannelFlag = {
1180
+ /** Suppress member join notifications */
1181
+ SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
1182
+ /** Suppress server boost notifications */
1183
+ SUPPRESS_PREMIUM_SUBSCRIPTIONS: 1 << 1,
1184
+ /** Suppress server setup tips */
1185
+ SUPPRESS_GUILD_REMINDER_NOTIFICATIONS: 1 << 2,
1186
+ /** Hide member join sticker reply buttons */
1187
+ SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3,
1188
+ /** Suppress role subscription purchase and renewal notifications */
1189
+ SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS: 1 << 4,
1190
+ /** Hide role subscription sticker reply buttons */
1191
+ SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5
1178
1192
  };
1179
- export const UserFlag = {
1180
- /** Discord Employee */
1181
- STAFF: 1 << 0,
1182
- /** Partnered Server Owner */
1183
- PARTNER: 1 << 1,
1184
- /** HypeSquad Events Member */
1185
- HYPESQUAD: 1 << 2,
1186
- /** Bug Hunter Level 1 */
1187
- BUG_HUNTER_LEVEL_1: 1 << 3,
1188
- /** House Bravery Member */
1189
- HYPESQUAD_ONLINE_HOUSE_1: 1 << 6,
1190
- /** House Brilliance Member */
1191
- HYPESQUAD_ONLINE_HOUSE_2: 1 << 7,
1192
- /** House Balance Member */
1193
- HYPESQUAD_ONLINE_HOUSE_3: 1 << 8,
1194
- /** Early Nitro Supporter */
1195
- PREMIUM_EARLY_SUPPORTER: 1 << 9,
1196
- /** User is a team */
1197
- TEAM_PSEUDO_USER: 1 << 10,
1198
- /** Bug Hunter Level 2 */
1199
- BUG_HUNTER_LEVEL_2: 1 << 14,
1200
- /** Verified Bot */
1201
- VERIFIED_BOT: 1 << 16,
1202
- /** Early Verified Bot Developer */
1203
- VERIFIED_DEVELOPER: 1 << 17,
1204
- /** Moderator Programs Alumni */
1205
- CERTIFIED_MODERATOR: 1 << 18,
1206
- /** Bot uses only HTTP interactions and is shown in the online member list */
1207
- BOT_HTTP_INTERACTIONS: 1 << 19,
1208
- /** User is an Active Developer */
1209
- ACTIVE_DEVELOPER: 1 << 22,
1193
+ exports.SystemChannelFlag = SystemChannelFlag;
1194
+ const UserFlag = {
1195
+ /** Discord Employee */
1196
+ STAFF: 1 << 0,
1197
+ /** Partnered Server Owner */
1198
+ PARTNER: 1 << 1,
1199
+ /** HypeSquad Events Member */
1200
+ HYPESQUAD: 1 << 2,
1201
+ /** Bug Hunter Level 1 */
1202
+ BUG_HUNTER_LEVEL_1: 1 << 3,
1203
+ /** House Bravery Member */
1204
+ HYPESQUAD_ONLINE_HOUSE_1: 1 << 6,
1205
+ /** House Brilliance Member */
1206
+ HYPESQUAD_ONLINE_HOUSE_2: 1 << 7,
1207
+ /** House Balance Member */
1208
+ HYPESQUAD_ONLINE_HOUSE_3: 1 << 8,
1209
+ /** Early Nitro Supporter */
1210
+ PREMIUM_EARLY_SUPPORTER: 1 << 9,
1211
+ /** User is a team */
1212
+ TEAM_PSEUDO_USER: 1 << 10,
1213
+ /** Bug Hunter Level 2 */
1214
+ BUG_HUNTER_LEVEL_2: 1 << 14,
1215
+ /** Verified Bot */
1216
+ VERIFIED_BOT: 1 << 16,
1217
+ /** Early Verified Bot Developer */
1218
+ VERIFIED_DEVELOPER: 1 << 17,
1219
+ /** Moderator Programs Alumni */
1220
+ CERTIFIED_MODERATOR: 1 << 18,
1221
+ /** Bot uses only HTTP interactions and is shown in the online member list */
1222
+ BOT_HTTP_INTERACTIONS: 1 << 19,
1223
+ /** User is an Active Developer */
1224
+ ACTIVE_DEVELOPER: 1 << 22
1210
1225
  };
1226
+ exports.UserFlag = UserFlag;
1211
1227
  //# sourceMappingURL=types.js.map