dfx 0.127.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/Cache/memory.d.ts +1 -1
  2. package/Cache/memory.d.ts.map +1 -1
  3. package/Cache/memory.js +4 -4
  4. package/Cache/memory.js.map +1 -1
  5. package/Cache/memoryTTL.d.ts +1 -1
  6. package/Cache/memoryTTL.d.ts.map +1 -1
  7. package/Cache/memoryTTL.js +6 -6
  8. package/Cache/memoryTTL.js.map +1 -1
  9. package/Cache/prelude.d.ts +6 -6
  10. package/Cache/prelude.d.ts.map +1 -1
  11. package/Cache/prelude.js +4 -4
  12. package/Cache/prelude.js.map +1 -1
  13. package/Cache.d.ts +9 -10
  14. package/Cache.d.ts.map +1 -1
  15. package/Cache.js +20 -19
  16. package/Cache.js.map +1 -1
  17. package/DiscordConfig.d.ts +8 -8
  18. package/DiscordConfig.d.ts.map +1 -1
  19. package/DiscordConfig.js +8 -7
  20. package/DiscordConfig.js.map +1 -1
  21. package/DiscordGateway/DiscordWS.d.ts +12 -12
  22. package/DiscordGateway/DiscordWS.d.ts.map +1 -1
  23. package/DiscordGateway/DiscordWS.js +30 -17
  24. package/DiscordGateway/DiscordWS.js.map +1 -1
  25. package/DiscordGateway/Messaging.d.ts +204 -10
  26. package/DiscordGateway/Messaging.d.ts.map +1 -1
  27. package/DiscordGateway/Messaging.js +10 -7
  28. package/DiscordGateway/Messaging.js.map +1 -1
  29. package/DiscordGateway/Shard/StateStore.d.ts +4 -4
  30. package/DiscordGateway/Shard/StateStore.d.ts.map +1 -1
  31. package/DiscordGateway/Shard/StateStore.js +7 -6
  32. package/DiscordGateway/Shard/StateStore.js.map +1 -1
  33. package/DiscordGateway/Shard/heartbeats.d.ts +5 -5
  34. package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
  35. package/DiscordGateway/Shard/heartbeats.js +15 -10
  36. package/DiscordGateway/Shard/heartbeats.js.map +1 -1
  37. package/DiscordGateway/Shard/identify.d.ts +2 -2
  38. package/DiscordGateway/Shard/identify.d.ts.map +1 -1
  39. package/DiscordGateway/Shard/identify.js +2 -2
  40. package/DiscordGateway/Shard/identify.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 +1 -1
  44. package/DiscordGateway/Shard/sendEvents.js.map +1 -1
  45. package/DiscordGateway/Shard/utils.d.ts +1 -1
  46. package/DiscordGateway/Shard/utils.d.ts.map +1 -1
  47. package/DiscordGateway/Shard.d.ts +16 -15
  48. package/DiscordGateway/Shard.d.ts.map +1 -1
  49. package/DiscordGateway/Shard.js +27 -21
  50. package/DiscordGateway/Shard.js.map +1 -1
  51. package/DiscordGateway/ShardStore.d.ts +4 -3
  52. package/DiscordGateway/ShardStore.d.ts.map +1 -1
  53. package/DiscordGateway/ShardStore.js +3 -2
  54. package/DiscordGateway/ShardStore.js.map +1 -1
  55. package/DiscordGateway/Sharder.d.ts +9 -8
  56. package/DiscordGateway/Sharder.d.ts.map +1 -1
  57. package/DiscordGateway/Sharder.js +19 -17
  58. package/DiscordGateway/Sharder.js.map +1 -1
  59. package/DiscordGateway.d.ts +13 -12
  60. package/DiscordGateway.d.ts.map +1 -1
  61. package/DiscordGateway.js +4 -4
  62. package/DiscordGateway.js.map +1 -1
  63. package/DiscordREST/Generated.d.ts +402 -240
  64. package/DiscordREST/Generated.d.ts.map +1 -1
  65. package/DiscordREST/Generated.js +193 -126
  66. package/DiscordREST/Generated.js.map +1 -1
  67. package/DiscordREST/utils.d.ts +1 -1
  68. package/DiscordREST/utils.d.ts.map +1 -1
  69. package/DiscordREST/utils.js +4 -3
  70. package/DiscordREST/utils.js.map +1 -1
  71. package/DiscordREST.d.ts +10 -11
  72. package/DiscordREST.d.ts.map +1 -1
  73. package/DiscordREST.js +23 -27
  74. package/DiscordREST.js.map +1 -1
  75. package/Helpers/flags.d.ts.map +1 -1
  76. package/Helpers/flags.js +10 -1
  77. package/Helpers/flags.js.map +1 -1
  78. package/Helpers/intents.d.ts.map +1 -1
  79. package/Helpers/intents.js +2 -2
  80. package/Helpers/intents.js.map +1 -1
  81. package/Helpers/interactions.d.ts +2 -2
  82. package/Helpers/interactions.d.ts.map +1 -1
  83. package/Helpers/interactions.js +12 -12
  84. package/Helpers/interactions.js.map +1 -1
  85. package/Helpers/members.d.ts +2 -2
  86. package/Helpers/members.d.ts.map +1 -1
  87. package/Helpers/members.js +1 -1
  88. package/Helpers/members.js.map +1 -1
  89. package/Helpers/permissions.d.ts +1 -1
  90. package/Helpers/permissions.d.ts.map +1 -1
  91. package/Helpers/permissions.js +4 -4
  92. package/Helpers/permissions.js.map +1 -1
  93. package/Helpers/ui.d.ts +9 -9
  94. package/Helpers/ui.d.ts.map +1 -1
  95. package/Helpers/ui.js +15 -15
  96. package/Helpers/ui.js.map +1 -1
  97. package/Interactions/builder.d.ts +6 -6
  98. package/Interactions/builder.d.ts.map +1 -1
  99. package/Interactions/builder.js +7 -7
  100. package/Interactions/builder.js.map +1 -1
  101. package/Interactions/commandHelper.d.ts +3 -19
  102. package/Interactions/commandHelper.d.ts.map +1 -1
  103. package/Interactions/commandHelper.js +11 -7
  104. package/Interactions/commandHelper.js.map +1 -1
  105. package/Interactions/context.d.ts +30 -31
  106. package/Interactions/context.d.ts.map +1 -1
  107. package/Interactions/context.js +23 -18
  108. package/Interactions/context.js.map +1 -1
  109. package/Interactions/definitions.d.ts +7 -8
  110. package/Interactions/definitions.d.ts.map +1 -1
  111. package/Interactions/gateway.d.ts +11 -12
  112. package/Interactions/gateway.d.ts.map +1 -1
  113. package/Interactions/gateway.js +22 -20
  114. package/Interactions/gateway.js.map +1 -1
  115. package/Interactions/handlers.d.ts +3 -3
  116. package/Interactions/handlers.d.ts.map +1 -1
  117. package/Interactions/handlers.js +5 -4
  118. package/Interactions/handlers.js.map +1 -1
  119. package/Interactions/index.d.ts +5 -4
  120. package/Interactions/index.d.ts.map +1 -1
  121. package/Interactions/index.js +4 -4
  122. package/Interactions/index.js.map +1 -1
  123. package/Interactions/utils.d.ts +4 -4
  124. package/Interactions/utils.d.ts.map +1 -1
  125. package/Interactions/utils.js +1 -1
  126. package/Interactions/utils.js.map +1 -1
  127. package/Interactions/webhook.d.ts +9 -11
  128. package/Interactions/webhook.d.ts.map +1 -1
  129. package/Interactions/webhook.js +16 -16
  130. package/Interactions/webhook.js.map +1 -1
  131. package/RateLimit/memory.d.ts +1 -1
  132. package/RateLimit/memory.d.ts.map +1 -1
  133. package/RateLimit/memory.js +2 -2
  134. package/RateLimit/memory.js.map +1 -1
  135. package/RateLimit.d.ts +7 -7
  136. package/RateLimit.d.ts.map +1 -1
  137. package/RateLimit.js +7 -5
  138. package/RateLimit.js.map +1 -1
  139. package/gateway.d.ts +14 -14
  140. package/gateway.d.ts.map +1 -1
  141. package/gateway.js +10 -10
  142. package/gateway.js.map +1 -1
  143. package/index.d.ts +14 -14
  144. package/index.d.ts.map +1 -1
  145. package/index.js +12 -12
  146. package/index.js.map +1 -1
  147. package/mjs/Cache/memory.mjs +4 -4
  148. package/mjs/Cache/memory.mjs.map +1 -1
  149. package/mjs/Cache/memoryTTL.mjs +6 -6
  150. package/mjs/Cache/memoryTTL.mjs.map +1 -1
  151. package/mjs/Cache/prelude.mjs +4 -4
  152. package/mjs/Cache/prelude.mjs.map +1 -1
  153. package/mjs/Cache.mjs +20 -19
  154. package/mjs/Cache.mjs.map +1 -1
  155. package/mjs/DiscordConfig.mjs +7 -7
  156. package/mjs/DiscordConfig.mjs.map +1 -1
  157. package/mjs/DiscordGateway/DiscordWS.mjs +28 -17
  158. package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -1
  159. package/mjs/DiscordGateway/Messaging.mjs +9 -7
  160. package/mjs/DiscordGateway/Messaging.mjs.map +1 -1
  161. package/mjs/DiscordGateway/Shard/StateStore.mjs +7 -6
  162. package/mjs/DiscordGateway/Shard/StateStore.mjs.map +1 -1
  163. package/mjs/DiscordGateway/Shard/heartbeats.mjs +15 -10
  164. package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +1 -1
  165. package/mjs/DiscordGateway/Shard/identify.mjs +2 -2
  166. package/mjs/DiscordGateway/Shard/identify.mjs.map +1 -1
  167. package/mjs/DiscordGateway/Shard/sendEvents.mjs +1 -1
  168. package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +1 -1
  169. package/mjs/DiscordGateway/Shard.mjs +26 -21
  170. package/mjs/DiscordGateway/Shard.mjs.map +1 -1
  171. package/mjs/DiscordGateway/ShardStore.mjs +2 -2
  172. package/mjs/DiscordGateway/ShardStore.mjs.map +1 -1
  173. package/mjs/DiscordGateway/Sharder.mjs +18 -17
  174. package/mjs/DiscordGateway/Sharder.mjs.map +1 -1
  175. package/mjs/DiscordGateway.mjs +4 -4
  176. package/mjs/DiscordGateway.mjs.map +1 -1
  177. package/mjs/DiscordREST/Generated.mjs +192 -125
  178. package/mjs/DiscordREST/Generated.mjs.map +1 -1
  179. package/mjs/DiscordREST/utils.mjs +4 -3
  180. package/mjs/DiscordREST/utils.mjs.map +1 -1
  181. package/mjs/DiscordREST.mjs +22 -27
  182. package/mjs/DiscordREST.mjs.map +1 -1
  183. package/mjs/Helpers/flags.mjs +10 -1
  184. package/mjs/Helpers/flags.mjs.map +1 -1
  185. package/mjs/Helpers/intents.mjs +2 -2
  186. package/mjs/Helpers/intents.mjs.map +1 -1
  187. package/mjs/Helpers/interactions.mjs +12 -12
  188. package/mjs/Helpers/interactions.mjs.map +1 -1
  189. package/mjs/Helpers/members.mjs +1 -1
  190. package/mjs/Helpers/members.mjs.map +1 -1
  191. package/mjs/Helpers/permissions.mjs +4 -4
  192. package/mjs/Helpers/permissions.mjs.map +1 -1
  193. package/mjs/Helpers/ui.mjs +15 -15
  194. package/mjs/Helpers/ui.mjs.map +1 -1
  195. package/mjs/Interactions/builder.mjs +7 -7
  196. package/mjs/Interactions/builder.mjs.map +1 -1
  197. package/mjs/Interactions/commandHelper.mjs +11 -7
  198. package/mjs/Interactions/commandHelper.mjs.map +1 -1
  199. package/mjs/Interactions/context.mjs +17 -18
  200. package/mjs/Interactions/context.mjs.map +1 -1
  201. package/mjs/Interactions/gateway.mjs +21 -20
  202. package/mjs/Interactions/gateway.mjs.map +1 -1
  203. package/mjs/Interactions/handlers.mjs +5 -4
  204. package/mjs/Interactions/handlers.mjs.map +1 -1
  205. package/mjs/Interactions/index.mjs +4 -4
  206. package/mjs/Interactions/index.mjs.map +1 -1
  207. package/mjs/Interactions/utils.mjs +1 -1
  208. package/mjs/Interactions/utils.mjs.map +1 -1
  209. package/mjs/Interactions/webhook.mjs +15 -16
  210. package/mjs/Interactions/webhook.mjs.map +1 -1
  211. package/mjs/RateLimit/memory.mjs +2 -2
  212. package/mjs/RateLimit/memory.mjs.map +1 -1
  213. package/mjs/RateLimit.mjs +5 -5
  214. package/mjs/RateLimit.mjs.map +1 -1
  215. package/mjs/gateway.mjs +14 -14
  216. package/mjs/gateway.mjs.map +1 -1
  217. package/mjs/index.mjs +14 -14
  218. package/mjs/index.mjs.map +1 -1
  219. package/mjs/types.mjs +2 -2
  220. package/mjs/types.mjs.map +1 -1
  221. package/mjs/utils/Effect.mjs +34 -8
  222. package/mjs/utils/Effect.mjs.map +1 -1
  223. package/mjs/version.mjs +1 -1
  224. package/mjs/version.mjs.map +1 -1
  225. package/mjs/webhooks.mjs +3 -3
  226. package/mjs/webhooks.mjs.map +1 -1
  227. package/package.json +4 -5
  228. package/src/Cache/memory.ts +5 -5
  229. package/src/Cache/memoryTTL.ts +7 -7
  230. package/src/Cache/prelude.ts +10 -8
  231. package/src/Cache.ts +31 -35
  232. package/src/DiscordConfig.ts +13 -17
  233. package/src/DiscordGateway/DiscordWS.ts +58 -32
  234. package/src/DiscordGateway/Messaging.ts +13 -15
  235. package/src/DiscordGateway/Shard/StateStore.ts +30 -25
  236. package/src/DiscordGateway/Shard/heartbeats.ts +25 -28
  237. package/src/DiscordGateway/Shard/identify.ts +5 -4
  238. package/src/DiscordGateway/Shard/sendEvents.ts +1 -1
  239. package/src/DiscordGateway/Shard/utils.ts +1 -1
  240. package/src/DiscordGateway/Shard.ts +39 -35
  241. package/src/DiscordGateway/ShardStore.ts +6 -7
  242. package/src/DiscordGateway/Sharder.ts +31 -29
  243. package/src/DiscordGateway.ts +15 -14
  244. package/src/DiscordREST/Generated.ts +683 -378
  245. package/src/DiscordREST/utils.ts +6 -3
  246. package/src/DiscordREST.ts +37 -41
  247. package/src/Helpers/flags.ts +10 -5
  248. package/src/Helpers/intents.ts +2 -2
  249. package/src/Helpers/interactions.ts +16 -14
  250. package/src/Helpers/members.ts +3 -3
  251. package/src/Helpers/permissions.ts +5 -5
  252. package/src/Helpers/ui.ts +16 -16
  253. package/src/Interactions/builder.ts +10 -10
  254. package/src/Interactions/commandHelper.ts +18 -29
  255. package/src/Interactions/context.ts +51 -65
  256. package/src/Interactions/definitions.ts +3 -3
  257. package/src/Interactions/gateway.ts +33 -45
  258. package/src/Interactions/handlers.ts +8 -5
  259. package/src/Interactions/index.ts +5 -5
  260. package/src/Interactions/utils.ts +6 -6
  261. package/src/Interactions/webhook.ts +31 -38
  262. package/src/RateLimit/memory.ts +3 -3
  263. package/src/RateLimit.ts +18 -15
  264. package/src/gateway.ts +21 -21
  265. package/src/index.ts +17 -17
  266. package/src/types.ts +18 -16
  267. package/src/utils/Effect.ts +38 -27
  268. package/src/version.ts +1 -1
  269. package/src/webhooks.ts +7 -7
  270. package/tsconfig.base.json +12 -6
  271. package/tsconfig.examples.json +0 -1
  272. package/types.d.ts +4 -3
  273. package/types.d.ts.map +1 -1
  274. package/types.js +3 -3
  275. package/types.js.map +1 -1
  276. package/utils/Effect.d.ts.map +1 -1
  277. package/utils/Effect.js +33 -7
  278. package/utils/Effect.js.map +1 -1
  279. package/version.d.ts +1 -1
  280. package/version.d.ts.map +1 -1
  281. package/version.js +1 -1
  282. package/version.js.map +1 -1
  283. package/webhooks.d.ts +5 -5
  284. package/webhooks.d.ts.map +1 -1
  285. package/webhooks.js +3 -3
  286. package/webhooks.js.map +1 -1
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.make = exports.WidgetImageStyles = exports.WebhookTypes = exports.VideoQualityModes = exports.VerificationLevels = exports.UserNotificationSettings = exports.ThreadSortingMode = exports.ThreadSortOrder = exports.ThreadSearchTagSetting = exports.ThreadAutoArchiveDuration = exports.TextInputStyleTypes = exports.TeamMembershipStates = exports.StickerTypes = exports.StickerFormatTypes = exports.StageInstancesPrivacyLevels = exports.SortingOrder = exports.SnowflakeSelectDefaultValueTypes = exports.ReactionTypes = exports.PremiumTypes = exports.PremiumGuildTiers = exports.OnboardingPromptType = exports.OAuth2Scopes = exports.NewMemberActionType = exports.MetadataItemTypes = exports.MessageType = exports.MessageShareCustomUserThemeBaseTheme = exports.MessageComponentTypes = exports.MessageComponentSeparatorSpacingSize = exports.InviteTypes = exports.InviteTargetTypes = exports.InteractionTypes = exports.InteractionContextType = exports.InteractionCallbackTypes = exports.IntegrationTypes = exports.IntegrationExpireGracePeriodTypes = exports.IntegrationExpireBehaviorTypes = exports.GuildScheduledEventStatuses = exports.GuildScheduledEventEntityTypes = exports.GuildOnboardingMode = exports.GuildNSFWContentLevel = exports.GuildMFALevel = exports.GuildFeatures = exports.GuildExplicitContentFilterTypes = exports.ForumLayout = exports.EntitlementTypes = exports.EntitlementTenantFulfillmentStatusResponse = exports.EmbeddedActivityLocationKind = exports.DiscordRestError = exports.ConnectedAccountVisibility = exports.ConnectedAccountProviders = exports.ChannelTypes = exports.ChannelPermissionOverwrites = exports.ButtonStyleTypes = exports.AvailableLocalesEnum = exports.AutomodTriggerType = exports.AutomodKeywordPresetType = exports.AutomodEventType = exports.AutomodActionType = exports.AuditLogActionTypes = exports.ApplicationIntegrationType = exports.ApplicationIdentityProviderAuthType = exports.ApplicationExplicitContentFilterTypes = exports.ApplicationCommandType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.AllowedMentionTypes = exports.AfkTimeouts = void 0;
7
- var HttpClientError = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@effect/platform/HttpClientError"));
8
- var HttpClientRequest = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@effect/platform/HttpClientRequest"));
9
- var HttpClientResponse = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@effect/platform/HttpClientResponse"));
6
+ exports.make = exports.WidgetImageStyles = exports.WebhookTypes = exports.VideoQualityModes = exports.VerificationLevels = exports.UserNotificationSettings = exports.ThreadSortingMode = exports.ThreadSortOrder = exports.ThreadSearchTagSetting = exports.ThreadAutoArchiveDuration = exports.TextInputStyleTypes = exports.TeamMembershipStates = exports.TargetUsersJobStatusTypes = exports.StickerTypes = exports.StickerFormatTypes = exports.StageInstancesPrivacyLevels = exports.SortingOrder = exports.SnowflakeSelectDefaultValueTypes = exports.ReactionTypes = exports.PremiumTypes = exports.PremiumGuildTiers = exports.OnboardingPromptType = exports.OAuth2Scopes = exports.NewMemberActionType = exports.MetadataItemTypes = exports.MessageType = exports.MessageShareCustomUserThemeBaseTheme = exports.MessageComponentTypes = exports.MessageComponentSeparatorSpacingSize = exports.InviteTypes = exports.InviteTargetTypes = exports.InteractionTypes = exports.InteractionContextType = exports.InteractionCallbackTypes = exports.IntegrationTypes = exports.IntegrationExpireGracePeriodTypes = exports.IntegrationExpireBehaviorTypes = exports.GuildScheduledEventStatuses = exports.GuildScheduledEventEntityTypes = exports.GuildOnboardingMode = exports.GuildNSFWContentLevel = exports.GuildMFALevel = exports.GuildFeatures = exports.GuildExplicitContentFilterTypes = exports.ForumLayout = exports.EntitlementTypes = exports.EntitlementTenantFulfillmentStatusResponse = exports.EmbeddedActivityLocationKind = exports.DiscordRestError = exports.ConnectedAccountVisibility = exports.ConnectedAccountProviders = exports.ChannelTypes = exports.ChannelPermissionOverwrites = exports.ButtonStyleTypes = exports.AvailableLocalesEnum = exports.AutomodTriggerType = exports.AutomodKeywordPresetType = exports.AutomodEventType = exports.AutomodActionType = exports.AuditLogActionTypes = exports.ApplicationIntegrationType = exports.ApplicationIdentityProviderAuthType = exports.ApplicationExplicitContentFilterTypes = exports.ApplicationCommandType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.AllowedMentionTypes = exports.AfkTimeouts = void 0;
7
+ var HttpClientError = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/unstable/http/HttpClientError"));
8
+ var HttpClientRequest = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/unstable/http/HttpClientRequest"));
9
+ var HttpClientResponse = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/unstable/http/HttpClientResponse"));
10
10
  var Data = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/Data"));
11
11
  var Effect = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/Effect"));
12
12
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -715,7 +715,19 @@ const MessageComponentTypes = exports.MessageComponentTypes = {
715
715
  /**
716
716
  * File upload component
717
717
  */
718
- FILE_UPLOAD: 19
718
+ FILE_UPLOAD: 19,
719
+ /**
720
+ * Radio group component
721
+ */
722
+ RADIO_GROUP: 21,
723
+ /**
724
+ * Checkbox group component
725
+ */
726
+ CHECKBOX_GROUP: 22,
727
+ /**
728
+ * Checkbox component
729
+ */
730
+ CHECKBOX: 23
719
731
  };
720
732
  const ButtonStyleTypes = exports.ButtonStyleTypes = {
721
733
  PRIMARY: 1,
@@ -786,7 +798,11 @@ const InteractionTypes = exports.InteractionTypes = {
786
798
  /**
787
799
  * Sent when a user submits a modal previously sent by your application
788
800
  */
789
- MODAL_SUBMIT: 5
801
+ MODAL_SUBMIT: 5,
802
+ /**
803
+ * Sent when Discord is checking if a user can purchase a Social Layer SKU
804
+ */
805
+ SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6
790
806
  };
791
807
  const MessageShareCustomUserThemeBaseTheme = exports.MessageShareCustomUserThemeBaseTheme = {
792
808
  /**
@@ -1286,7 +1302,26 @@ const InteractionCallbackTypes = exports.InteractionCallbackTypes = {
1286
1302
  UPDATE_MESSAGE: 7,
1287
1303
  APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8,
1288
1304
  MODAL: 9,
1289
- LAUNCH_ACTIVITY: 12
1305
+ LAUNCH_ACTIVITY: 12,
1306
+ SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13
1307
+ };
1308
+ const TargetUsersJobStatusTypes = exports.TargetUsersJobStatusTypes = {
1309
+ /**
1310
+ * The default value.
1311
+ */
1312
+ UNSPECIFIED: 0,
1313
+ /**
1314
+ * The job is still being processed.
1315
+ */
1316
+ PROCESSING: 1,
1317
+ /**
1318
+ * The job has been completed successfully.
1319
+ */
1320
+ COMPLETED: 2,
1321
+ /**
1322
+ * The job has failed, see error_message field for more details.
1323
+ */
1324
+ FAILED: 3
1290
1325
  };
1291
1326
  const ApplicationIdentityProviderAuthType = exports.ApplicationIdentityProviderAuthType = {
1292
1327
  OIDC: "OIDC",
@@ -1357,11 +1392,12 @@ const ConnectedAccountVisibility = exports.ConnectedAccountVisibility = {
1357
1392
  EVERYONE: 1
1358
1393
  };
1359
1394
  const make = (httpClient, options = {}) => {
1360
- const unexpectedStatus = response => Effect.flatMap(Effect.orElseSucceed(response.json, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.ResponseError({
1361
- request: response.request,
1362
- response,
1363
- reason: "StatusCode",
1364
- description: typeof description === "string" ? description : JSON.stringify(description)
1395
+ const unexpectedStatus = response => Effect.flatMap(Effect.orElseSucceed(response.json, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.HttpClientError({
1396
+ reason: new HttpClientError.StatusCodeError({
1397
+ request: response.request,
1398
+ response,
1399
+ description: typeof description === "string" ? description : JSON.stringify(description)
1400
+ })
1365
1401
  })));
1366
1402
  const withResponse = options.transformClient ? f => request => Effect.flatMap(Effect.flatMap(options.transformClient(httpClient), client => client.execute(request)), f) : f => request => Effect.flatMap(httpClient.execute(request), f);
1367
1403
  const decodeSuccess = response => response.json;
@@ -1390,7 +1426,7 @@ const make = (httpClient, options = {}) => {
1390
1426
  "429": "RatelimitedResponse",
1391
1427
  "4xx": "ErrorResponse"
1392
1428
  })),
1393
- updateMyApplication: options => HttpClientRequest.patch(`/applications/@me`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1429
+ updateMyApplication: options => HttpClientRequest.patch(`/applications/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1394
1430
  "429": "RatelimitedResponse",
1395
1431
  "4xx": "ErrorResponse"
1396
1432
  })),
@@ -1398,7 +1434,7 @@ const make = (httpClient, options = {}) => {
1398
1434
  "429": "RatelimitedResponse",
1399
1435
  "4xx": "ErrorResponse"
1400
1436
  })),
1401
- updateApplication: (applicationId, options) => HttpClientRequest.patch(`/applications/${applicationId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1437
+ updateApplication: (applicationId, options) => HttpClientRequest.patch(`/applications/${applicationId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1402
1438
  "429": "RatelimitedResponse",
1403
1439
  "4xx": "ErrorResponse"
1404
1440
  })),
@@ -1416,11 +1452,11 @@ const make = (httpClient, options = {}) => {
1416
1452
  "429": "RatelimitedResponse",
1417
1453
  "4xx": "ErrorResponse"
1418
1454
  })),
1419
- bulkSetApplicationCommands: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1455
+ bulkSetApplicationCommands: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1420
1456
  "429": "RatelimitedResponse",
1421
1457
  "4xx": "ErrorResponse"
1422
1458
  })),
1423
- createApplicationCommand: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["200", "201"], {
1459
+ createApplicationCommand: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
1424
1460
  "429": "RatelimitedResponse",
1425
1461
  "4xx": "ErrorResponse"
1426
1462
  })),
@@ -1428,11 +1464,11 @@ const make = (httpClient, options = {}) => {
1428
1464
  "429": "RatelimitedResponse",
1429
1465
  "4xx": "ErrorResponse"
1430
1466
  })),
1431
- deleteApplicationCommand: (applicationId, commandId) => HttpClientRequest.del(`/applications/${applicationId}/commands/${commandId}`).pipe(onRequest([], {
1467
+ deleteApplicationCommand: (applicationId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/commands/${commandId}`).pipe(onRequest([], {
1432
1468
  "429": "RatelimitedResponse",
1433
1469
  "4xx": "ErrorResponse"
1434
1470
  })),
1435
- updateApplicationCommand: (applicationId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/commands/${commandId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1471
+ updateApplicationCommand: (applicationId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1436
1472
  "429": "RatelimitedResponse",
1437
1473
  "4xx": "ErrorResponse"
1438
1474
  })),
@@ -1440,7 +1476,7 @@ const make = (httpClient, options = {}) => {
1440
1476
  "429": "RatelimitedResponse",
1441
1477
  "4xx": "ErrorResponse"
1442
1478
  })),
1443
- createApplicationEmoji: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1479
+ createApplicationEmoji: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1444
1480
  "429": "RatelimitedResponse",
1445
1481
  "4xx": "ErrorResponse"
1446
1482
  })),
@@ -1448,11 +1484,11 @@ const make = (httpClient, options = {}) => {
1448
1484
  "429": "RatelimitedResponse",
1449
1485
  "4xx": "ErrorResponse"
1450
1486
  })),
1451
- deleteApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.del(`/applications/${applicationId}/emojis/${emojiId}`).pipe(onRequest([], {
1487
+ deleteApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.delete(`/applications/${applicationId}/emojis/${emojiId}`).pipe(onRequest([], {
1452
1488
  "429": "RatelimitedResponse",
1453
1489
  "4xx": "ErrorResponse"
1454
1490
  })),
1455
- updateApplicationEmoji: (applicationId, emojiId, options) => HttpClientRequest.patch(`/applications/${applicationId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1491
+ updateApplicationEmoji: (applicationId, emojiId, options) => HttpClientRequest.patch(`/applications/${applicationId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1456
1492
  "429": "RatelimitedResponse",
1457
1493
  "4xx": "ErrorResponse"
1458
1494
  })),
@@ -1470,7 +1506,7 @@ const make = (httpClient, options = {}) => {
1470
1506
  "429": "RatelimitedResponse",
1471
1507
  "4xx": "ErrorResponse"
1472
1508
  })),
1473
- createEntitlement: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1509
+ createEntitlement: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1474
1510
  "429": "RatelimitedResponse",
1475
1511
  "4xx": "ErrorResponse"
1476
1512
  })),
@@ -1478,7 +1514,7 @@ const make = (httpClient, options = {}) => {
1478
1514
  "429": "RatelimitedResponse",
1479
1515
  "4xx": "ErrorResponse"
1480
1516
  })),
1481
- deleteEntitlement: (applicationId, entitlementId) => HttpClientRequest.del(`/applications/${applicationId}/entitlements/${entitlementId}`).pipe(onRequest([], {
1517
+ deleteEntitlement: (applicationId, entitlementId) => HttpClientRequest.delete(`/applications/${applicationId}/entitlements/${entitlementId}`).pipe(onRequest([], {
1482
1518
  "429": "RatelimitedResponse",
1483
1519
  "4xx": "ErrorResponse"
1484
1520
  })),
@@ -1492,11 +1528,11 @@ const make = (httpClient, options = {}) => {
1492
1528
  "429": "RatelimitedResponse",
1493
1529
  "4xx": "ErrorResponse"
1494
1530
  })),
1495
- bulkSetGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1531
+ bulkSetGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1496
1532
  "429": "RatelimitedResponse",
1497
1533
  "4xx": "ErrorResponse"
1498
1534
  })),
1499
- createGuildApplicationCommand: (applicationId, guildId, options) => HttpClientRequest.post(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["200", "201"], {
1535
+ createGuildApplicationCommand: (applicationId, guildId, options) => HttpClientRequest.post(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
1500
1536
  "429": "RatelimitedResponse",
1501
1537
  "4xx": "ErrorResponse"
1502
1538
  })),
@@ -1508,11 +1544,11 @@ const make = (httpClient, options = {}) => {
1508
1544
  "429": "RatelimitedResponse",
1509
1545
  "4xx": "ErrorResponse"
1510
1546
  })),
1511
- deleteGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.del(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(onRequest([], {
1547
+ deleteGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(onRequest([], {
1512
1548
  "429": "RatelimitedResponse",
1513
1549
  "4xx": "ErrorResponse"
1514
1550
  })),
1515
- updateGuildApplicationCommand: (applicationId, guildId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1551
+ updateGuildApplicationCommand: (applicationId, guildId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1516
1552
  "429": "RatelimitedResponse",
1517
1553
  "4xx": "ErrorResponse"
1518
1554
  })),
@@ -1520,7 +1556,7 @@ const make = (httpClient, options = {}) => {
1520
1556
  "429": "RatelimitedResponse",
1521
1557
  "4xx": "ErrorResponse"
1522
1558
  })),
1523
- setGuildApplicationCommandPermissions: (applicationId, guildId, commandId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1559
+ setGuildApplicationCommandPermissions: (applicationId, guildId, commandId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1524
1560
  "429": "RatelimitedResponse",
1525
1561
  "4xx": "ErrorResponse"
1526
1562
  })),
@@ -1528,7 +1564,7 @@ const make = (httpClient, options = {}) => {
1528
1564
  "429": "RatelimitedResponse",
1529
1565
  "4xx": "ErrorResponse"
1530
1566
  })),
1531
- updateApplicationRoleConnectionsMetadata: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/role-connections/metadata`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1567
+ updateApplicationRoleConnectionsMetadata: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/role-connections/metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1532
1568
  "429": "RatelimitedResponse",
1533
1569
  "4xx": "ErrorResponse"
1534
1570
  })),
@@ -1536,15 +1572,15 @@ const make = (httpClient, options = {}) => {
1536
1572
  "429": "RatelimitedResponse",
1537
1573
  "4xx": "ErrorResponse"
1538
1574
  })),
1539
- deleteChannel: channelId => HttpClientRequest.del(`/channels/${channelId}`).pipe(onRequest(["2xx"], {
1575
+ deleteChannel: channelId => HttpClientRequest.delete(`/channels/${channelId}`).pipe(onRequest(["2xx"], {
1540
1576
  "429": "RatelimitedResponse",
1541
1577
  "4xx": "ErrorResponse"
1542
1578
  })),
1543
- updateChannel: (channelId, options) => HttpClientRequest.patch(`/channels/${channelId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1579
+ updateChannel: (channelId, options) => HttpClientRequest.patch(`/channels/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1544
1580
  "429": "RatelimitedResponse",
1545
1581
  "4xx": "ErrorResponse"
1546
1582
  })),
1547
- followChannel: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1583
+ followChannel: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1548
1584
  "429": "RatelimitedResponse",
1549
1585
  "4xx": "ErrorResponse"
1550
1586
  })),
@@ -1552,7 +1588,7 @@ const make = (httpClient, options = {}) => {
1552
1588
  "429": "RatelimitedResponse",
1553
1589
  "4xx": "ErrorResponse"
1554
1590
  })),
1555
- createChannelInvite: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1591
+ createChannelInvite: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1556
1592
  "429": "RatelimitedResponse",
1557
1593
  "4xx": "ErrorResponse"
1558
1594
  })),
@@ -1565,11 +1601,11 @@ const make = (httpClient, options = {}) => {
1565
1601
  "429": "RatelimitedResponse",
1566
1602
  "4xx": "ErrorResponse"
1567
1603
  })),
1568
- createMessage: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1604
+ createMessage: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1569
1605
  "429": "RatelimitedResponse",
1570
1606
  "4xx": "ErrorResponse"
1571
1607
  })),
1572
- bulkDeleteMessages: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/bulk-delete`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
1608
+ bulkDeleteMessages: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/bulk-delete`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
1573
1609
  "429": "RatelimitedResponse",
1574
1610
  "4xx": "ErrorResponse"
1575
1611
  })),
@@ -1584,7 +1620,7 @@ const make = (httpClient, options = {}) => {
1584
1620
  "429": "RatelimitedResponse",
1585
1621
  "4xx": "ErrorResponse"
1586
1622
  })),
1587
- deletePin: (channelId, messageId) => HttpClientRequest.del(`/channels/${channelId}/messages/pins/${messageId}`).pipe(onRequest([], {
1623
+ deletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/pins/${messageId}`).pipe(onRequest([], {
1588
1624
  "429": "RatelimitedResponse",
1589
1625
  "4xx": "ErrorResponse"
1590
1626
  })),
@@ -1592,11 +1628,11 @@ const make = (httpClient, options = {}) => {
1592
1628
  "429": "RatelimitedResponse",
1593
1629
  "4xx": "ErrorResponse"
1594
1630
  })),
1595
- deleteMessage: (channelId, messageId) => HttpClientRequest.del(`/channels/${channelId}/messages/${messageId}`).pipe(onRequest([], {
1631
+ deleteMessage: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}`).pipe(onRequest([], {
1596
1632
  "429": "RatelimitedResponse",
1597
1633
  "4xx": "ErrorResponse"
1598
1634
  })),
1599
- updateMessage: (channelId, messageId, options) => HttpClientRequest.patch(`/channels/${channelId}/messages/${messageId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1635
+ updateMessage: (channelId, messageId, options) => HttpClientRequest.patch(`/channels/${channelId}/messages/${messageId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1600
1636
  "429": "RatelimitedResponse",
1601
1637
  "4xx": "ErrorResponse"
1602
1638
  })),
@@ -1604,7 +1640,7 @@ const make = (httpClient, options = {}) => {
1604
1640
  "429": "RatelimitedResponse",
1605
1641
  "4xx": "ErrorResponse"
1606
1642
  })),
1607
- deleteAllMessageReactions: (channelId, messageId) => HttpClientRequest.del(`/channels/${channelId}/messages/${messageId}/reactions`).pipe(onRequest([], {
1643
+ deleteAllMessageReactions: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions`).pipe(onRequest([], {
1608
1644
  "429": "RatelimitedResponse",
1609
1645
  "4xx": "ErrorResponse"
1610
1646
  })),
@@ -1616,7 +1652,7 @@ const make = (httpClient, options = {}) => {
1616
1652
  "429": "RatelimitedResponse",
1617
1653
  "4xx": "ErrorResponse"
1618
1654
  })),
1619
- deleteAllMessageReactionsByEmoji: (channelId, messageId, emojiName) => HttpClientRequest.del(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}`).pipe(onRequest([], {
1655
+ deleteAllMessageReactionsByEmoji: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}`).pipe(onRequest([], {
1620
1656
  "429": "RatelimitedResponse",
1621
1657
  "4xx": "ErrorResponse"
1622
1658
  })),
@@ -1624,23 +1660,23 @@ const make = (httpClient, options = {}) => {
1624
1660
  "429": "RatelimitedResponse",
1625
1661
  "4xx": "ErrorResponse"
1626
1662
  })),
1627
- deleteMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.del(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/@me`).pipe(onRequest([], {
1663
+ deleteMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/@me`).pipe(onRequest([], {
1628
1664
  "429": "RatelimitedResponse",
1629
1665
  "4xx": "ErrorResponse"
1630
1666
  })),
1631
- deleteUserMessageReaction: (channelId, messageId, emojiName, userId) => HttpClientRequest.del(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/${userId}`).pipe(onRequest([], {
1667
+ deleteUserMessageReaction: (channelId, messageId, emojiName, userId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/${userId}`).pipe(onRequest([], {
1632
1668
  "429": "RatelimitedResponse",
1633
1669
  "4xx": "ErrorResponse"
1634
1670
  })),
1635
- createThreadFromMessage: (channelId, messageId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/threads`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1671
+ createThreadFromMessage: (channelId, messageId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1636
1672
  "429": "RatelimitedResponse",
1637
1673
  "4xx": "ErrorResponse"
1638
1674
  })),
1639
- setChannelPermissionOverwrite: (channelId, overwriteId, options) => HttpClientRequest.put(`/channels/${channelId}/permissions/${overwriteId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
1675
+ setChannelPermissionOverwrite: (channelId, overwriteId, options) => HttpClientRequest.put(`/channels/${channelId}/permissions/${overwriteId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
1640
1676
  "429": "RatelimitedResponse",
1641
1677
  "4xx": "ErrorResponse"
1642
1678
  })),
1643
- deleteChannelPermissionOverwrite: (channelId, overwriteId) => HttpClientRequest.del(`/channels/${channelId}/permissions/${overwriteId}`).pipe(onRequest([], {
1679
+ deleteChannelPermissionOverwrite: (channelId, overwriteId) => HttpClientRequest.delete(`/channels/${channelId}/permissions/${overwriteId}`).pipe(onRequest([], {
1644
1680
  "429": "RatelimitedResponse",
1645
1681
  "4xx": "ErrorResponse"
1646
1682
  })),
@@ -1652,7 +1688,7 @@ const make = (httpClient, options = {}) => {
1652
1688
  "429": "RatelimitedResponse",
1653
1689
  "4xx": "ErrorResponse"
1654
1690
  })),
1655
- deprecatedDeletePin: (channelId, messageId) => HttpClientRequest.del(`/channels/${channelId}/pins/${messageId}`).pipe(onRequest([], {
1691
+ deprecatedDeletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/pins/${messageId}`).pipe(onRequest([], {
1656
1692
  "429": "RatelimitedResponse",
1657
1693
  "4xx": "ErrorResponse"
1658
1694
  })),
@@ -1667,15 +1703,15 @@ const make = (httpClient, options = {}) => {
1667
1703
  "429": "RatelimitedResponse",
1668
1704
  "4xx": "ErrorResponse"
1669
1705
  })),
1670
- addGroupDmUser: (channelId, userId, options) => HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1706
+ addGroupDmUser: (channelId, userId, options) => HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1671
1707
  "429": "RatelimitedResponse",
1672
1708
  "4xx": "ErrorResponse"
1673
1709
  })),
1674
- deleteGroupDmUser: (channelId, userId) => HttpClientRequest.del(`/channels/${channelId}/recipients/${userId}`).pipe(onRequest([], {
1710
+ deleteGroupDmUser: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/recipients/${userId}`).pipe(onRequest([], {
1675
1711
  "429": "RatelimitedResponse",
1676
1712
  "4xx": "ErrorResponse"
1677
1713
  })),
1678
- sendSoundboardSound: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/send-soundboard-sound`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
1714
+ sendSoundboardSound: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/send-soundboard-sound`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
1679
1715
  "429": "RatelimitedResponse",
1680
1716
  "4xx": "ErrorResponse"
1681
1717
  })),
@@ -1691,7 +1727,7 @@ const make = (httpClient, options = {}) => {
1691
1727
  "429": "RatelimitedResponse",
1692
1728
  "4xx": "ErrorResponse"
1693
1729
  })),
1694
- leaveThread: channelId => HttpClientRequest.del(`/channels/${channelId}/thread-members/@me`).pipe(onRequest([], {
1730
+ leaveThread: channelId => HttpClientRequest.delete(`/channels/${channelId}/thread-members/@me`).pipe(onRequest([], {
1695
1731
  "429": "RatelimitedResponse",
1696
1732
  "4xx": "ErrorResponse"
1697
1733
  })),
@@ -1705,11 +1741,11 @@ const make = (httpClient, options = {}) => {
1705
1741
  "429": "RatelimitedResponse",
1706
1742
  "4xx": "ErrorResponse"
1707
1743
  })),
1708
- deleteThreadMember: (channelId, userId) => HttpClientRequest.del(`/channels/${channelId}/thread-members/${userId}`).pipe(onRequest([], {
1744
+ deleteThreadMember: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/thread-members/${userId}`).pipe(onRequest([], {
1709
1745
  "429": "RatelimitedResponse",
1710
1746
  "4xx": "ErrorResponse"
1711
1747
  })),
1712
- createThread: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1748
+ createThread: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1713
1749
  "429": "RatelimitedResponse",
1714
1750
  "4xx": "ErrorResponse"
1715
1751
  })),
@@ -1758,7 +1794,7 @@ const make = (httpClient, options = {}) => {
1758
1794
  "429": "RatelimitedResponse",
1759
1795
  "4xx": "ErrorResponse"
1760
1796
  })),
1761
- createWebhook: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1797
+ createWebhook: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1762
1798
  "429": "RatelimitedResponse",
1763
1799
  "4xx": "ErrorResponse"
1764
1800
  })),
@@ -1780,7 +1816,7 @@ const make = (httpClient, options = {}) => {
1780
1816
  "429": "RatelimitedResponse",
1781
1817
  "4xx": "ErrorResponse"
1782
1818
  })),
1783
- updateGuild: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1819
+ updateGuild: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1784
1820
  "429": "RatelimitedResponse",
1785
1821
  "4xx": "ErrorResponse"
1786
1822
  })),
@@ -1799,7 +1835,7 @@ const make = (httpClient, options = {}) => {
1799
1835
  "429": "RatelimitedResponse",
1800
1836
  "4xx": "ErrorResponse"
1801
1837
  })),
1802
- createAutoModerationRule: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1838
+ createAutoModerationRule: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1803
1839
  "429": "RatelimitedResponse",
1804
1840
  "4xx": "ErrorResponse"
1805
1841
  })),
@@ -1807,11 +1843,11 @@ const make = (httpClient, options = {}) => {
1807
1843
  "429": "RatelimitedResponse",
1808
1844
  "4xx": "ErrorResponse"
1809
1845
  })),
1810
- deleteAutoModerationRule: (guildId, ruleId) => HttpClientRequest.del(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(onRequest([], {
1846
+ deleteAutoModerationRule: (guildId, ruleId) => HttpClientRequest.delete(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(onRequest([], {
1811
1847
  "429": "RatelimitedResponse",
1812
1848
  "4xx": "ErrorResponse"
1813
1849
  })),
1814
- updateAutoModerationRule: (guildId, ruleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1850
+ updateAutoModerationRule: (guildId, ruleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1815
1851
  "429": "RatelimitedResponse",
1816
1852
  "4xx": "ErrorResponse"
1817
1853
  })),
@@ -1827,15 +1863,15 @@ const make = (httpClient, options = {}) => {
1827
1863
  "429": "RatelimitedResponse",
1828
1864
  "4xx": "ErrorResponse"
1829
1865
  })),
1830
- banUserFromGuild: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
1866
+ banUserFromGuild: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
1831
1867
  "429": "RatelimitedResponse",
1832
1868
  "4xx": "ErrorResponse"
1833
1869
  })),
1834
- unbanUserFromGuild: (guildId, userId, options) => HttpClientRequest.del(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
1870
+ unbanUserFromGuild: (guildId, userId, options) => HttpClientRequest.delete(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
1835
1871
  "429": "RatelimitedResponse",
1836
1872
  "4xx": "ErrorResponse"
1837
1873
  })),
1838
- bulkBanUsersFromGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1874
+ bulkBanUsersFromGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1839
1875
  "429": "RatelimitedResponse",
1840
1876
  "4xx": "ErrorResponse"
1841
1877
  })),
@@ -1843,11 +1879,11 @@ const make = (httpClient, options = {}) => {
1843
1879
  "429": "RatelimitedResponse",
1844
1880
  "4xx": "ErrorResponse"
1845
1881
  })),
1846
- createGuildChannel: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1882
+ createGuildChannel: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1847
1883
  "429": "RatelimitedResponse",
1848
1884
  "4xx": "ErrorResponse"
1849
1885
  })),
1850
- bulkUpdateGuildChannels: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
1886
+ bulkUpdateGuildChannels: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
1851
1887
  "429": "RatelimitedResponse",
1852
1888
  "4xx": "ErrorResponse"
1853
1889
  })),
@@ -1855,7 +1891,7 @@ const make = (httpClient, options = {}) => {
1855
1891
  "429": "RatelimitedResponse",
1856
1892
  "4xx": "ErrorResponse"
1857
1893
  })),
1858
- createGuildEmoji: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1894
+ createGuildEmoji: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1859
1895
  "429": "RatelimitedResponse",
1860
1896
  "4xx": "ErrorResponse"
1861
1897
  })),
@@ -1863,11 +1899,11 @@ const make = (httpClient, options = {}) => {
1863
1899
  "429": "RatelimitedResponse",
1864
1900
  "4xx": "ErrorResponse"
1865
1901
  })),
1866
- deleteGuildEmoji: (guildId, emojiId) => HttpClientRequest.del(`/guilds/${guildId}/emojis/${emojiId}`).pipe(onRequest([], {
1902
+ deleteGuildEmoji: (guildId, emojiId) => HttpClientRequest.delete(`/guilds/${guildId}/emojis/${emojiId}`).pipe(onRequest([], {
1867
1903
  "429": "RatelimitedResponse",
1868
1904
  "4xx": "ErrorResponse"
1869
1905
  })),
1870
- updateGuildEmoji: (guildId, emojiId, options) => HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1906
+ updateGuildEmoji: (guildId, emojiId, options) => HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1871
1907
  "429": "RatelimitedResponse",
1872
1908
  "4xx": "ErrorResponse"
1873
1909
  })),
@@ -1875,7 +1911,7 @@ const make = (httpClient, options = {}) => {
1875
1911
  "429": "RatelimitedResponse",
1876
1912
  "4xx": "ErrorResponse"
1877
1913
  })),
1878
- deleteGuildIntegration: (guildId, integrationId) => HttpClientRequest.del(`/guilds/${guildId}/integrations/${integrationId}`).pipe(onRequest([], {
1914
+ deleteGuildIntegration: (guildId, integrationId) => HttpClientRequest.delete(`/guilds/${guildId}/integrations/${integrationId}`).pipe(onRequest([], {
1879
1915
  "429": "RatelimitedResponse",
1880
1916
  "4xx": "ErrorResponse"
1881
1917
  })),
@@ -1890,7 +1926,7 @@ const make = (httpClient, options = {}) => {
1890
1926
  "429": "RatelimitedResponse",
1891
1927
  "4xx": "ErrorResponse"
1892
1928
  })),
1893
- updateMyGuildMember: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1929
+ updateMyGuildMember: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1894
1930
  "429": "RatelimitedResponse",
1895
1931
  "4xx": "ErrorResponse"
1896
1932
  })),
@@ -1905,15 +1941,15 @@ const make = (httpClient, options = {}) => {
1905
1941
  "429": "RatelimitedResponse",
1906
1942
  "4xx": "ErrorResponse"
1907
1943
  })),
1908
- addGuildMember: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1944
+ addGuildMember: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1909
1945
  "429": "RatelimitedResponse",
1910
1946
  "4xx": "ErrorResponse"
1911
1947
  })),
1912
- deleteGuildMember: (guildId, userId) => HttpClientRequest.del(`/guilds/${guildId}/members/${userId}`).pipe(onRequest([], {
1948
+ deleteGuildMember: (guildId, userId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}`).pipe(onRequest([], {
1913
1949
  "429": "RatelimitedResponse",
1914
1950
  "4xx": "ErrorResponse"
1915
1951
  })),
1916
- updateGuildMember: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1952
+ updateGuildMember: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1917
1953
  "429": "RatelimitedResponse",
1918
1954
  "4xx": "ErrorResponse"
1919
1955
  })),
@@ -1921,7 +1957,7 @@ const make = (httpClient, options = {}) => {
1921
1957
  "429": "RatelimitedResponse",
1922
1958
  "4xx": "ErrorResponse"
1923
1959
  })),
1924
- deleteGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.del(`/guilds/${guildId}/members/${userId}/roles/${roleId}`).pipe(onRequest([], {
1960
+ deleteGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}/roles/${roleId}`).pipe(onRequest([], {
1925
1961
  "429": "RatelimitedResponse",
1926
1962
  "4xx": "ErrorResponse"
1927
1963
  })),
@@ -1933,7 +1969,7 @@ const make = (httpClient, options = {}) => {
1933
1969
  "429": "RatelimitedResponse",
1934
1970
  "4xx": "ErrorResponse"
1935
1971
  })),
1936
- putGuildsOnboarding: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1972
+ putGuildsOnboarding: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1937
1973
  "429": "RatelimitedResponse",
1938
1974
  "4xx": "ErrorResponse"
1939
1975
  })),
@@ -1948,7 +1984,7 @@ const make = (httpClient, options = {}) => {
1948
1984
  "429": "RatelimitedResponse",
1949
1985
  "4xx": "ErrorResponse"
1950
1986
  })),
1951
- pruneGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1987
+ pruneGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1952
1988
  "429": "RatelimitedResponse",
1953
1989
  "4xx": "ErrorResponse"
1954
1990
  })),
@@ -1960,11 +1996,15 @@ const make = (httpClient, options = {}) => {
1960
1996
  "429": "RatelimitedResponse",
1961
1997
  "4xx": "ErrorResponse"
1962
1998
  })),
1963
- createGuildRole: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
1999
+ createGuildRole: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2000
+ "429": "RatelimitedResponse",
2001
+ "4xx": "ErrorResponse"
2002
+ })),
2003
+ bulkUpdateGuildRoles: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1964
2004
  "429": "RatelimitedResponse",
1965
2005
  "4xx": "ErrorResponse"
1966
2006
  })),
1967
- bulkUpdateGuildRoles: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2007
+ guildRoleMemberCounts: guildId => HttpClientRequest.get(`/guilds/${guildId}/roles/member-counts`).pipe(onRequest(["2xx"], {
1968
2008
  "429": "RatelimitedResponse",
1969
2009
  "4xx": "ErrorResponse"
1970
2010
  })),
@@ -1972,11 +2012,11 @@ const make = (httpClient, options = {}) => {
1972
2012
  "429": "RatelimitedResponse",
1973
2013
  "4xx": "ErrorResponse"
1974
2014
  })),
1975
- deleteGuildRole: (guildId, roleId) => HttpClientRequest.del(`/guilds/${guildId}/roles/${roleId}`).pipe(onRequest([], {
2015
+ deleteGuildRole: (guildId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/roles/${roleId}`).pipe(onRequest([], {
1976
2016
  "429": "RatelimitedResponse",
1977
2017
  "4xx": "ErrorResponse"
1978
2018
  })),
1979
- updateGuildRole: (guildId, roleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2019
+ updateGuildRole: (guildId, roleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1980
2020
  "429": "RatelimitedResponse",
1981
2021
  "4xx": "ErrorResponse"
1982
2022
  })),
@@ -1986,7 +2026,7 @@ const make = (httpClient, options = {}) => {
1986
2026
  "429": "RatelimitedResponse",
1987
2027
  "4xx": "ErrorResponse"
1988
2028
  })),
1989
- createGuildScheduledEvent: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2029
+ createGuildScheduledEvent: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
1990
2030
  "429": "RatelimitedResponse",
1991
2031
  "4xx": "ErrorResponse"
1992
2032
  })),
@@ -1996,11 +2036,11 @@ const make = (httpClient, options = {}) => {
1996
2036
  "429": "RatelimitedResponse",
1997
2037
  "4xx": "ErrorResponse"
1998
2038
  })),
1999
- deleteGuildScheduledEvent: (guildId, guildScheduledEventId) => HttpClientRequest.del(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(onRequest([], {
2039
+ deleteGuildScheduledEvent: (guildId, guildScheduledEventId) => HttpClientRequest.delete(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(onRequest([], {
2000
2040
  "429": "RatelimitedResponse",
2001
2041
  "4xx": "ErrorResponse"
2002
2042
  })),
2003
- updateGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.patch(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2043
+ updateGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.patch(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2004
2044
  "429": "RatelimitedResponse",
2005
2045
  "4xx": "ErrorResponse"
2006
2046
  })),
@@ -2017,7 +2057,7 @@ const make = (httpClient, options = {}) => {
2017
2057
  "429": "RatelimitedResponse",
2018
2058
  "4xx": "ErrorResponse"
2019
2059
  })),
2020
- createGuildSoundboardSound: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2060
+ createGuildSoundboardSound: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2021
2061
  "429": "RatelimitedResponse",
2022
2062
  "4xx": "ErrorResponse"
2023
2063
  })),
@@ -2025,11 +2065,11 @@ const make = (httpClient, options = {}) => {
2025
2065
  "429": "RatelimitedResponse",
2026
2066
  "4xx": "ErrorResponse"
2027
2067
  })),
2028
- deleteGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.del(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(onRequest([], {
2068
+ deleteGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.delete(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(onRequest([], {
2029
2069
  "429": "RatelimitedResponse",
2030
2070
  "4xx": "ErrorResponse"
2031
2071
  })),
2032
- updateGuildSoundboardSound: (guildId, soundId, options) => HttpClientRequest.patch(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2072
+ updateGuildSoundboardSound: (guildId, soundId, options) => HttpClientRequest.patch(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2033
2073
  "429": "RatelimitedResponse",
2034
2074
  "4xx": "ErrorResponse"
2035
2075
  })),
@@ -2045,11 +2085,11 @@ const make = (httpClient, options = {}) => {
2045
2085
  "429": "RatelimitedResponse",
2046
2086
  "4xx": "ErrorResponse"
2047
2087
  })),
2048
- deleteGuildSticker: (guildId, stickerId) => HttpClientRequest.del(`/guilds/${guildId}/stickers/${stickerId}`).pipe(onRequest([], {
2088
+ deleteGuildSticker: (guildId, stickerId) => HttpClientRequest.delete(`/guilds/${guildId}/stickers/${stickerId}`).pipe(onRequest([], {
2049
2089
  "429": "RatelimitedResponse",
2050
2090
  "4xx": "ErrorResponse"
2051
2091
  })),
2052
- updateGuildSticker: (guildId, stickerId, options) => HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2092
+ updateGuildSticker: (guildId, stickerId, options) => HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2053
2093
  "429": "RatelimitedResponse",
2054
2094
  "4xx": "ErrorResponse"
2055
2095
  })),
@@ -2057,7 +2097,7 @@ const make = (httpClient, options = {}) => {
2057
2097
  "429": "RatelimitedResponse",
2058
2098
  "4xx": "ErrorResponse"
2059
2099
  })),
2060
- createGuildTemplate: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2100
+ createGuildTemplate: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2061
2101
  "429": "RatelimitedResponse",
2062
2102
  "4xx": "ErrorResponse"
2063
2103
  })),
@@ -2065,11 +2105,11 @@ const make = (httpClient, options = {}) => {
2065
2105
  "429": "RatelimitedResponse",
2066
2106
  "4xx": "ErrorResponse"
2067
2107
  })),
2068
- deleteGuildTemplate: (guildId, code) => HttpClientRequest.del(`/guilds/${guildId}/templates/${code}`).pipe(onRequest(["2xx"], {
2108
+ deleteGuildTemplate: (guildId, code) => HttpClientRequest.delete(`/guilds/${guildId}/templates/${code}`).pipe(onRequest(["2xx"], {
2069
2109
  "429": "RatelimitedResponse",
2070
2110
  "4xx": "ErrorResponse"
2071
2111
  })),
2072
- updateGuildTemplate: (guildId, code, options) => HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2112
+ updateGuildTemplate: (guildId, code, options) => HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2073
2113
  "429": "RatelimitedResponse",
2074
2114
  "4xx": "ErrorResponse"
2075
2115
  })),
@@ -2085,7 +2125,7 @@ const make = (httpClient, options = {}) => {
2085
2125
  "429": "RatelimitedResponse",
2086
2126
  "4xx": "ErrorResponse"
2087
2127
  })),
2088
- updateSelfVoiceState: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
2128
+ updateSelfVoiceState: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
2089
2129
  "429": "RatelimitedResponse",
2090
2130
  "4xx": "ErrorResponse"
2091
2131
  })),
@@ -2093,7 +2133,7 @@ const make = (httpClient, options = {}) => {
2093
2133
  "429": "RatelimitedResponse",
2094
2134
  "4xx": "ErrorResponse"
2095
2135
  })),
2096
- updateVoiceState: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
2136
+ updateVoiceState: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
2097
2137
  "429": "RatelimitedResponse",
2098
2138
  "4xx": "ErrorResponse"
2099
2139
  })),
@@ -2105,7 +2145,7 @@ const make = (httpClient, options = {}) => {
2105
2145
  "429": "RatelimitedResponse",
2106
2146
  "4xx": "ErrorResponse"
2107
2147
  })),
2108
- updateGuildWelcomeScreen: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2148
+ updateGuildWelcomeScreen: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2109
2149
  "429": "RatelimitedResponse",
2110
2150
  "4xx": "ErrorResponse"
2111
2151
  })),
@@ -2113,7 +2153,7 @@ const make = (httpClient, options = {}) => {
2113
2153
  "429": "RatelimitedResponse",
2114
2154
  "4xx": "ErrorResponse"
2115
2155
  })),
2116
- updateGuildWidgetSettings: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2156
+ updateGuildWidgetSettings: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2117
2157
  "429": "RatelimitedResponse",
2118
2158
  "4xx": "ErrorResponse"
2119
2159
  })),
@@ -2129,7 +2169,7 @@ const make = (httpClient, options = {}) => {
2129
2169
  })),
2130
2170
  createInteractionResponse: (interactionId, interactionToken, options) => HttpClientRequest.post(`/interactions/${interactionId}/${interactionToken}/callback`).pipe(HttpClientRequest.setUrlParams({
2131
2171
  with_response: options.params?.["with_response"]
2132
- }), HttpClientRequest.bodyUnsafeJson(options.payload), onRequest(["2xx"], {
2172
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2133
2173
  "429": "RatelimitedResponse",
2134
2174
  "4xx": "ErrorResponse"
2135
2175
  })),
@@ -2140,15 +2180,27 @@ const make = (httpClient, options = {}) => {
2140
2180
  "429": "RatelimitedResponse",
2141
2181
  "4xx": "ErrorResponse"
2142
2182
  })),
2143
- inviteRevoke: code => HttpClientRequest.del(`/invites/${code}`).pipe(onRequest(["2xx"], {
2183
+ inviteRevoke: code => HttpClientRequest.delete(`/invites/${code}`).pipe(onRequest(["2xx"], {
2144
2184
  "429": "RatelimitedResponse",
2145
2185
  "4xx": "ErrorResponse"
2146
2186
  })),
2147
- createOrJoinLobby: options => HttpClientRequest.put(`/lobbies`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2187
+ getInviteTargetUsers: code => HttpClientRequest.get(`/invites/${code}/target-users`).pipe(onRequest([], {
2148
2188
  "429": "RatelimitedResponse",
2149
2189
  "4xx": "ErrorResponse"
2150
2190
  })),
2151
- createLobby: options => HttpClientRequest.post(`/lobbies`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2191
+ updateInviteTargetUsers: (code, options) => HttpClientRequest.put(`/invites/${code}/target-users`).pipe(HttpClientRequest.bodyFormDataRecord(options), onRequest([], {
2192
+ "429": "RatelimitedResponse",
2193
+ "4xx": "ErrorResponse"
2194
+ })),
2195
+ getInviteTargetUsersJobStatus: code => HttpClientRequest.get(`/invites/${code}/target-users/job-status`).pipe(onRequest(["2xx"], {
2196
+ "429": "RatelimitedResponse",
2197
+ "4xx": "ErrorResponse"
2198
+ })),
2199
+ createOrJoinLobby: options => HttpClientRequest.put(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2200
+ "429": "RatelimitedResponse",
2201
+ "4xx": "ErrorResponse"
2202
+ })),
2203
+ createLobby: options => HttpClientRequest.post(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2152
2204
  "429": "RatelimitedResponse",
2153
2205
  "4xx": "ErrorResponse"
2154
2206
  })),
@@ -2156,15 +2208,15 @@ const make = (httpClient, options = {}) => {
2156
2208
  "429": "RatelimitedResponse",
2157
2209
  "4xx": "ErrorResponse"
2158
2210
  })),
2159
- editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2211
+ editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2160
2212
  "429": "RatelimitedResponse",
2161
2213
  "4xx": "ErrorResponse"
2162
2214
  })),
2163
- editLobbyChannelLink: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2215
+ editLobbyChannelLink: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2164
2216
  "429": "RatelimitedResponse",
2165
2217
  "4xx": "ErrorResponse"
2166
2218
  })),
2167
- leaveLobby: lobbyId => HttpClientRequest.del(`/lobbies/${lobbyId}/members/@me`).pipe(onRequest([], {
2219
+ leaveLobby: lobbyId => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/@me`).pipe(onRequest([], {
2168
2220
  "429": "RatelimitedResponse",
2169
2221
  "4xx": "ErrorResponse"
2170
2222
  })),
@@ -2172,15 +2224,15 @@ const make = (httpClient, options = {}) => {
2172
2224
  "429": "RatelimitedResponse",
2173
2225
  "4xx": "ErrorResponse"
2174
2226
  })),
2175
- bulkUpdateLobbyMembers: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2227
+ bulkUpdateLobbyMembers: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2176
2228
  "429": "RatelimitedResponse",
2177
2229
  "4xx": "ErrorResponse"
2178
2230
  })),
2179
- addLobbyMember: (lobbyId, userId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2231
+ addLobbyMember: (lobbyId, userId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2180
2232
  "429": "RatelimitedResponse",
2181
2233
  "4xx": "ErrorResponse"
2182
2234
  })),
2183
- deleteLobbyMember: (lobbyId, userId) => HttpClientRequest.del(`/lobbies/${lobbyId}/members/${userId}`).pipe(onRequest([], {
2235
+ deleteLobbyMember: (lobbyId, userId) => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/${userId}`).pipe(onRequest([], {
2184
2236
  "429": "RatelimitedResponse",
2185
2237
  "4xx": "ErrorResponse"
2186
2238
  })),
@@ -2194,7 +2246,11 @@ const make = (httpClient, options = {}) => {
2194
2246
  "429": "RatelimitedResponse",
2195
2247
  "4xx": "ErrorResponse"
2196
2248
  })),
2197
- createLobbyMessage: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2249
+ createLobbyMessage: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2250
+ "429": "RatelimitedResponse",
2251
+ "4xx": "ErrorResponse"
2252
+ })),
2253
+ updateLobbyMessageExternalModerationMetadata: (lobbyId, messageId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
2198
2254
  "429": "RatelimitedResponse",
2199
2255
  "4xx": "ErrorResponse"
2200
2256
  })),
@@ -2214,19 +2270,23 @@ const make = (httpClient, options = {}) => {
2214
2270
  "429": "RatelimitedResponse",
2215
2271
  "4xx": "ErrorResponse"
2216
2272
  })),
2217
- partnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
2273
+ updateUserMessageExternalModerationMetadata: (userId1, userId2, messageId, options) => HttpClientRequest.put(`/partner-sdk/dms/${userId1}/${userId2}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
2274
+ "429": "RatelimitedResponse",
2275
+ "4xx": "ErrorResponse"
2276
+ })),
2277
+ partnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
2218
2278
  "429": "RatelimitedResponse",
2219
2279
  "4xx": "ErrorResponse"
2220
2280
  })),
2221
- botPartnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge/bot`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest([], {
2281
+ botPartnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
2222
2282
  "429": "RatelimitedResponse",
2223
2283
  "4xx": "ErrorResponse"
2224
2284
  })),
2225
- partnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2285
+ partnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2226
2286
  "429": "RatelimitedResponse",
2227
2287
  "4xx": "ErrorResponse"
2228
2288
  })),
2229
- botPartnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2289
+ botPartnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2230
2290
  "429": "RatelimitedResponse",
2231
2291
  "4xx": "ErrorResponse"
2232
2292
  })),
@@ -2234,7 +2294,7 @@ const make = (httpClient, options = {}) => {
2234
2294
  "429": "RatelimitedResponse",
2235
2295
  "4xx": "ErrorResponse"
2236
2296
  })),
2237
- createStageInstance: options => HttpClientRequest.post(`/stage-instances`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2297
+ createStageInstance: options => HttpClientRequest.post(`/stage-instances`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2238
2298
  "429": "RatelimitedResponse",
2239
2299
  "4xx": "ErrorResponse"
2240
2300
  })),
@@ -2242,11 +2302,11 @@ const make = (httpClient, options = {}) => {
2242
2302
  "429": "RatelimitedResponse",
2243
2303
  "4xx": "ErrorResponse"
2244
2304
  })),
2245
- deleteStageInstance: channelId => HttpClientRequest.del(`/stage-instances/${channelId}`).pipe(onRequest([], {
2305
+ deleteStageInstance: channelId => HttpClientRequest.delete(`/stage-instances/${channelId}`).pipe(onRequest([], {
2246
2306
  "429": "RatelimitedResponse",
2247
2307
  "4xx": "ErrorResponse"
2248
2308
  })),
2249
- updateStageInstance: (channelId, options) => HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2309
+ updateStageInstance: (channelId, options) => HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2250
2310
  "429": "RatelimitedResponse",
2251
2311
  "4xx": "ErrorResponse"
2252
2312
  })),
@@ -2266,7 +2326,14 @@ const make = (httpClient, options = {}) => {
2266
2326
  "429": "RatelimitedResponse",
2267
2327
  "4xx": "ErrorResponse"
2268
2328
  })),
2269
- updateMyUser: options => HttpClientRequest.patch(`/users/@me`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2329
+ updateMyUser: options => HttpClientRequest.patch(`/users/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2330
+ "429": "RatelimitedResponse",
2331
+ "4xx": "ErrorResponse"
2332
+ })),
2333
+ getCurrentUserApplicationEntitlements: (applicationId, options) => HttpClientRequest.get(`/users/@me/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.setUrlParams({
2334
+ sku_ids: options?.["sku_ids"],
2335
+ exclude_consumed: options?.["exclude_consumed"]
2336
+ }), onRequest(["2xx"], {
2270
2337
  "429": "RatelimitedResponse",
2271
2338
  "4xx": "ErrorResponse"
2272
2339
  })),
@@ -2274,15 +2341,15 @@ const make = (httpClient, options = {}) => {
2274
2341
  "429": "RatelimitedResponse",
2275
2342
  "4xx": "ErrorResponse"
2276
2343
  })),
2277
- updateApplicationUserRoleConnection: (applicationId, options) => HttpClientRequest.put(`/users/@me/applications/${applicationId}/role-connection`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2344
+ updateApplicationUserRoleConnection: (applicationId, options) => HttpClientRequest.put(`/users/@me/applications/${applicationId}/role-connection`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2278
2345
  "429": "RatelimitedResponse",
2279
2346
  "4xx": "ErrorResponse"
2280
2347
  })),
2281
- deleteApplicationUserRoleConnection: applicationId => HttpClientRequest.del(`/users/@me/applications/${applicationId}/role-connection`).pipe(onRequest([], {
2348
+ deleteApplicationUserRoleConnection: applicationId => HttpClientRequest.delete(`/users/@me/applications/${applicationId}/role-connection`).pipe(onRequest([], {
2282
2349
  "429": "RatelimitedResponse",
2283
2350
  "4xx": "ErrorResponse"
2284
2351
  })),
2285
- createDm: options => HttpClientRequest.post(`/users/@me/channels`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2352
+ createDm: options => HttpClientRequest.post(`/users/@me/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2286
2353
  "429": "RatelimitedResponse",
2287
2354
  "4xx": "ErrorResponse"
2288
2355
  })),
@@ -2299,7 +2366,7 @@ const make = (httpClient, options = {}) => {
2299
2366
  "429": "RatelimitedResponse",
2300
2367
  "4xx": "ErrorResponse"
2301
2368
  })),
2302
- leaveGuild: guildId => HttpClientRequest.del(`/users/@me/guilds/${guildId}`).pipe(onRequest([], {
2369
+ leaveGuild: guildId => HttpClientRequest.delete(`/users/@me/guilds/${guildId}`).pipe(onRequest([], {
2303
2370
  "429": "RatelimitedResponse",
2304
2371
  "4xx": "ErrorResponse"
2305
2372
  })),
@@ -2319,11 +2386,11 @@ const make = (httpClient, options = {}) => {
2319
2386
  "429": "RatelimitedResponse",
2320
2387
  "4xx": "ErrorResponse"
2321
2388
  })),
2322
- deleteWebhook: webhookId => HttpClientRequest.del(`/webhooks/${webhookId}`).pipe(onRequest([], {
2389
+ deleteWebhook: webhookId => HttpClientRequest.delete(`/webhooks/${webhookId}`).pipe(onRequest([], {
2323
2390
  "429": "RatelimitedResponse",
2324
2391
  "4xx": "ErrorResponse"
2325
2392
  })),
2326
- updateWebhook: (webhookId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2393
+ updateWebhook: (webhookId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2327
2394
  "429": "RatelimitedResponse",
2328
2395
  "4xx": "ErrorResponse"
2329
2396
  })),
@@ -2335,22 +2402,22 @@ const make = (httpClient, options = {}) => {
2335
2402
  wait: options.params?.["wait"],
2336
2403
  thread_id: options.params?.["thread_id"],
2337
2404
  with_components: options.params?.["with_components"]
2338
- }), HttpClientRequest.bodyUnsafeJson(options.payload), onRequest(["2xx"], {
2405
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2339
2406
  "429": "RatelimitedResponse",
2340
2407
  "4xx": "ErrorResponse"
2341
2408
  })),
2342
- deleteWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.del(`/webhooks/${webhookId}/${webhookToken}`).pipe(onRequest([], {
2409
+ deleteWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}`).pipe(onRequest([], {
2343
2410
  "429": "RatelimitedResponse",
2344
2411
  "4xx": "ErrorResponse"
2345
2412
  })),
2346
- updateWebhookByToken: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.bodyUnsafeJson(options), onRequest(["2xx"], {
2413
+ updateWebhookByToken: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
2347
2414
  "429": "RatelimitedResponse",
2348
2415
  "4xx": "ErrorResponse"
2349
2416
  })),
2350
2417
  executeGithubCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/github`).pipe(HttpClientRequest.setUrlParams({
2351
2418
  wait: options.params?.["wait"],
2352
2419
  thread_id: options.params?.["thread_id"]
2353
- }), HttpClientRequest.bodyUnsafeJson(options.payload), onRequest([], {
2420
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest([], {
2354
2421
  "429": "RatelimitedResponse",
2355
2422
  "4xx": "ErrorResponse"
2356
2423
  })),
@@ -2360,7 +2427,7 @@ const make = (httpClient, options = {}) => {
2360
2427
  "429": "RatelimitedResponse",
2361
2428
  "4xx": "ErrorResponse"
2362
2429
  })),
2363
- deleteOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.del(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
2430
+ deleteOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
2364
2431
  thread_id: options?.["thread_id"]
2365
2432
  }), onRequest([], {
2366
2433
  "429": "RatelimitedResponse",
@@ -2369,7 +2436,7 @@ const make = (httpClient, options = {}) => {
2369
2436
  updateOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
2370
2437
  thread_id: options.params?.["thread_id"],
2371
2438
  with_components: options.params?.["with_components"]
2372
- }), HttpClientRequest.bodyUnsafeJson(options.payload), onRequest(["2xx"], {
2439
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2373
2440
  "429": "RatelimitedResponse",
2374
2441
  "4xx": "ErrorResponse"
2375
2442
  })),
@@ -2379,7 +2446,7 @@ const make = (httpClient, options = {}) => {
2379
2446
  "429": "RatelimitedResponse",
2380
2447
  "4xx": "ErrorResponse"
2381
2448
  })),
2382
- deleteWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.del(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
2449
+ deleteWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
2383
2450
  thread_id: options?.["thread_id"]
2384
2451
  }), onRequest([], {
2385
2452
  "429": "RatelimitedResponse",
@@ -2388,14 +2455,14 @@ const make = (httpClient, options = {}) => {
2388
2455
  updateWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
2389
2456
  thread_id: options.params?.["thread_id"],
2390
2457
  with_components: options.params?.["with_components"]
2391
- }), HttpClientRequest.bodyUnsafeJson(options.payload), onRequest(["2xx"], {
2458
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2392
2459
  "429": "RatelimitedResponse",
2393
2460
  "4xx": "ErrorResponse"
2394
2461
  })),
2395
2462
  executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/slack`).pipe(HttpClientRequest.setUrlParams({
2396
2463
  wait: options.params?.["wait"],
2397
2464
  thread_id: options.params?.["thread_id"]
2398
- }), HttpClientRequest.bodyUnsafeJson(options.payload), onRequest(["2xx"], {
2465
+ }), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
2399
2466
  "429": "RatelimitedResponse",
2400
2467
  "4xx": "ErrorResponse"
2401
2468
  }))