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
@@ -1,8 +1,8 @@
1
- /* eslint-disable */
2
- import type * as HttpClient from "@effect/platform/HttpClient"
3
- import * as HttpClientError from "@effect/platform/HttpClientError"
4
- import * as HttpClientRequest from "@effect/platform/HttpClientRequest"
5
- import * as HttpClientResponse from "@effect/platform/HttpClientResponse"
1
+ // oxlint-disable no-shadow
2
+ import type * as HttpClient from "effect/unstable/http/HttpClient"
3
+ import * as HttpClientError from "effect/unstable/http/HttpClientError"
4
+ import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest"
5
+ import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse"
6
6
  import * as Data from "effect/Data"
7
7
  import * as Effect from "effect/Effect"
8
8
 
@@ -14,33 +14,33 @@ export type Int53Type = number
14
14
 
15
15
  export interface UserAvatarDecorationResponse {
16
16
  readonly asset: string
17
- readonly sku_id?: SnowflakeType | null | undefined
17
+ readonly sku_id: SnowflakeType | null
18
18
  }
19
19
 
20
20
  export type NameplatePalette = string
21
21
 
22
22
  export interface UserNameplateResponse {
23
- readonly sku_id?: SnowflakeType | null | undefined
23
+ readonly sku_id: SnowflakeType | null
24
24
  readonly asset: string
25
25
  readonly label: string
26
26
  readonly palette: NameplatePalette
27
27
  }
28
28
 
29
29
  export interface UserCollectiblesResponse {
30
- readonly nameplate?: UserNameplateResponse | null | undefined
30
+ readonly nameplate: UserNameplateResponse | null
31
31
  }
32
32
 
33
33
  export interface UserPrimaryGuildResponse {
34
- readonly identity_guild_id?: SnowflakeType | null | undefined
35
- readonly identity_enabled?: boolean | null | undefined
36
- readonly tag?: string | null | undefined
37
- readonly badge?: string | null | undefined
34
+ readonly identity_guild_id: SnowflakeType | null
35
+ readonly identity_enabled: boolean | null
36
+ readonly tag: string | null
37
+ readonly badge: string | null
38
38
  }
39
39
 
40
40
  export interface UserResponse {
41
41
  readonly id: SnowflakeType
42
42
  readonly username: string
43
- readonly avatar?: string | null | undefined
43
+ readonly avatar: string | null
44
44
  readonly discriminator: string
45
45
  readonly public_flags: number
46
46
  readonly flags: Int53Type
@@ -48,13 +48,13 @@ export interface UserResponse {
48
48
  readonly system?: boolean | undefined
49
49
  readonly banner?: string | null | undefined
50
50
  readonly accent_color?: number | null | undefined
51
- readonly global_name?: string | null | undefined
51
+ readonly global_name: string | null
52
52
  readonly avatar_decoration_data?:
53
53
  | UserAvatarDecorationResponse
54
54
  | null
55
55
  | undefined
56
56
  readonly collectibles?: UserCollectiblesResponse | null | undefined
57
- readonly primary_guild?: UserPrimaryGuildResponse | null | undefined
57
+ readonly primary_guild: UserPrimaryGuildResponse | null
58
58
  }
59
59
 
60
60
  export const OAuth2Scopes = {
@@ -237,7 +237,7 @@ export interface TeamMemberResponse {
237
237
 
238
238
  export interface TeamResponse {
239
239
  readonly id: SnowflakeType
240
- readonly icon?: string | null | undefined
240
+ readonly icon: string | null
241
241
  readonly name: string
242
242
  readonly owner_user_id: SnowflakeType
243
243
  readonly members: ReadonlyArray<TeamMemberResponse>
@@ -246,9 +246,9 @@ export interface TeamResponse {
246
246
  export interface PrivateApplicationResponse {
247
247
  readonly id: SnowflakeType
248
248
  readonly name: string
249
- readonly icon?: string | null | undefined
249
+ readonly icon: string | null
250
250
  readonly description: string
251
- readonly type?: ApplicationTypes | null | undefined
251
+ readonly type: ApplicationTypes | null
252
252
  readonly cover_image?: string | undefined
253
253
  readonly primary_sku_id?: SnowflakeType | undefined
254
254
  readonly bot?: UserResponse | undefined
@@ -267,18 +267,18 @@ export interface PrivateApplicationResponse {
267
267
  readonly max_participants?: number | null | undefined
268
268
  readonly tags?: ReadonlyArray<string> | undefined
269
269
  readonly redirect_uris: ReadonlyArray<string>
270
- readonly interactions_endpoint_url?: string | null | undefined
271
- readonly role_connections_verification_url?: string | null | undefined
270
+ readonly interactions_endpoint_url: string | null
271
+ readonly role_connections_verification_url: string | null
272
272
  readonly owner: UserResponse
273
- readonly approximate_guild_count?: number | null | undefined
273
+ readonly approximate_guild_count: number | null
274
274
  readonly approximate_user_install_count: number
275
275
  readonly approximate_user_authorization_count: number
276
276
  readonly explicit_content_filter: ApplicationExplicitContentFilterTypes
277
- readonly team?: TeamResponse | null | undefined
277
+ readonly team: TeamResponse | null
278
278
  }
279
279
 
280
280
  /**
281
- * A single error, either for an API response or a specific field.
281
+ * Ratelimit error object returned by the Discord API
282
282
  */
283
283
  export interface RatelimitedResponse {
284
284
  /**
@@ -323,7 +323,7 @@ export interface InnerErrors {
323
323
  export type ErrorDetails = Record<string, unknown> | InnerErrors
324
324
 
325
325
  /**
326
- * A single error, either for an API response or a specific field.
326
+ * Errors object returned by the Discord API
327
327
  */
328
328
  export interface ErrorResponse {
329
329
  readonly errors?: ErrorDetails | undefined
@@ -416,9 +416,9 @@ export interface UploadApplicationAttachmentRequest {
416
416
  export interface ApplicationResponse {
417
417
  readonly id: SnowflakeType
418
418
  readonly name: string
419
- readonly icon?: string | null | undefined
419
+ readonly icon: string | null
420
420
  readonly description: string
421
- readonly type?: ApplicationTypes | null | undefined
421
+ readonly type: ApplicationTypes | null
422
422
  readonly cover_image?: string | undefined
423
423
  readonly primary_sku_id?: SnowflakeType | undefined
424
424
  readonly bot?: UserResponse | undefined
@@ -831,7 +831,7 @@ export interface ApplicationCommandResponse {
831
831
  readonly id: SnowflakeType
832
832
  readonly application_id: SnowflakeType
833
833
  readonly version: SnowflakeType
834
- readonly default_member_permissions?: string | null | undefined
834
+ readonly default_member_permissions: string | null
835
835
  readonly type: ApplicationCommandType
836
836
  readonly name: string
837
837
  readonly name_localized?: string | undefined
@@ -1245,6 +1245,7 @@ export interface EntitlementResponse {
1245
1245
  | undefined
1246
1246
  readonly consumed?: boolean | null | undefined
1247
1247
  readonly gifter_user_id?: SnowflakeType | null | undefined
1248
+ readonly parent_id?: SnowflakeType | null | undefined
1248
1249
  }
1249
1250
 
1250
1251
  export type GetEntitlements200 = ReadonlyArray<null | EntitlementResponse>
@@ -1438,8 +1439,8 @@ export interface ForumTagResponse {
1438
1439
  readonly id: SnowflakeType
1439
1440
  readonly name: string
1440
1441
  readonly moderated: boolean
1441
- readonly emoji_id?: SnowflakeType | null | undefined
1442
- readonly emoji_name?: string | null | undefined
1442
+ readonly emoji_id: SnowflakeType | null
1443
+ readonly emoji_name: string | null
1443
1444
  }
1444
1445
 
1445
1446
  export interface DefaultReactionEmojiResponse {
@@ -1540,8 +1541,8 @@ export interface PrivateGroupChannelResponse {
1540
1541
  readonly flags: number
1541
1542
  readonly last_pin_timestamp?: string | null | undefined
1542
1543
  readonly recipients: ReadonlyArray<UserResponse>
1543
- readonly name?: string | null | undefined
1544
- readonly icon?: string | null | undefined
1544
+ readonly name: string | null
1545
+ readonly icon: string | null
1545
1546
  readonly owner_id: SnowflakeType
1546
1547
  readonly managed?: boolean | undefined
1547
1548
  readonly application_id?: SnowflakeType | undefined
@@ -1549,7 +1550,7 @@ export interface PrivateGroupChannelResponse {
1549
1550
 
1550
1551
  export interface ThreadMetadataResponse {
1551
1552
  readonly archived: boolean
1552
- readonly archive_timestamp?: string | null | undefined
1553
+ readonly archive_timestamp: string | null
1553
1554
  readonly auto_archive_duration: ThreadAutoArchiveDuration
1554
1555
  readonly locked: boolean
1555
1556
  readonly create_timestamp?: string | undefined
@@ -1557,18 +1558,18 @@ export interface ThreadMetadataResponse {
1557
1558
  }
1558
1559
 
1559
1560
  export interface GuildMemberResponse {
1560
- readonly avatar?: string | null | undefined
1561
+ readonly avatar: string | null
1561
1562
  readonly avatar_decoration_data?:
1562
1563
  | UserAvatarDecorationResponse
1563
1564
  | null
1564
1565
  | undefined
1565
- readonly banner?: string | null | undefined
1566
- readonly communication_disabled_until?: string | null | undefined
1566
+ readonly banner: string | null
1567
+ readonly communication_disabled_until: string | null
1567
1568
  readonly flags: number
1568
1569
  readonly joined_at: string
1569
- readonly nick?: string | null | undefined
1570
+ readonly nick: string | null
1570
1571
  readonly pending: boolean
1571
- readonly premium_since?: string | null | undefined
1572
+ readonly premium_since: string | null
1572
1573
  readonly roles: ReadonlyArray<SnowflakeType>
1573
1574
  readonly collectibles?: UserCollectiblesResponse | null | undefined
1574
1575
  readonly user: UserResponse
@@ -1734,7 +1735,7 @@ export interface InviteChannelRecipientResponse {
1734
1735
  export interface InviteChannelResponse {
1735
1736
  readonly id: SnowflakeType
1736
1737
  readonly type: ChannelTypes
1737
- readonly name?: string | null | undefined
1738
+ readonly name: string | null
1738
1739
  readonly icon?: string | undefined
1739
1740
  readonly recipients?:
1740
1741
  | ReadonlyArray<InviteChannelRecipientResponse>
@@ -1747,9 +1748,9 @@ export interface FriendInviteResponse {
1747
1748
  readonly inviter?: UserResponse | undefined
1748
1749
  readonly max_age?: number | undefined
1749
1750
  readonly created_at?: string | undefined
1750
- readonly expires_at?: string | null | undefined
1751
+ readonly expires_at: string | null
1751
1752
  readonly friends_count?: number | undefined
1752
- readonly channel?: InviteChannelResponse | null | undefined
1753
+ readonly channel: InviteChannelResponse | null
1753
1754
  readonly is_contact?: boolean | undefined
1754
1755
  readonly uses?: number | undefined
1755
1756
  readonly max_uses?: number | undefined
@@ -1762,7 +1763,7 @@ export interface GroupDMInviteResponse {
1762
1763
  readonly inviter?: UserResponse | undefined
1763
1764
  readonly max_age?: number | undefined
1764
1765
  readonly created_at?: string | undefined
1765
- readonly expires_at?: string | null | undefined
1766
+ readonly expires_at: string | null
1766
1767
  readonly channel: InviteChannelResponse
1767
1768
  readonly approximate_member_count?: number | null | undefined
1768
1769
  }
@@ -1917,15 +1918,15 @@ export type GuildNSFWContentLevel =
1917
1918
  export interface InviteGuildResponse {
1918
1919
  readonly id: SnowflakeType
1919
1920
  readonly name: string
1920
- readonly splash?: string | null | undefined
1921
- readonly banner?: string | null | undefined
1922
- readonly description?: string | null | undefined
1923
- readonly icon?: string | null | undefined
1921
+ readonly splash: string | null
1922
+ readonly banner: string | null
1923
+ readonly description: string | null
1924
+ readonly icon: string | null
1924
1925
  readonly features: ReadonlyArray<GuildFeatures>
1925
- readonly verification_level?: VerificationLevels | null | undefined
1926
- readonly vanity_url_code?: string | null | undefined
1927
- readonly nsfw_level?: GuildNSFWContentLevel | null | undefined
1928
- readonly nsfw?: boolean | null | undefined
1926
+ readonly verification_level: VerificationLevels | null
1927
+ readonly vanity_url_code: string | null
1928
+ readonly nsfw_level: GuildNSFWContentLevel | null
1929
+ readonly nsfw: boolean | null
1929
1930
  readonly premium_subscription_count: number
1930
1931
  }
1931
1932
 
@@ -1940,9 +1941,9 @@ export type InviteTargetTypes =
1940
1941
  export interface InviteApplicationResponse {
1941
1942
  readonly id: SnowflakeType
1942
1943
  readonly name: string
1943
- readonly icon?: string | null | undefined
1944
+ readonly icon: string | null
1944
1945
  readonly description: string
1945
- readonly type?: ApplicationTypes | null | undefined
1946
+ readonly type: ApplicationTypes | null
1946
1947
  readonly cover_image?: string | undefined
1947
1948
  readonly primary_sku_id?: SnowflakeType | undefined
1948
1949
  readonly bot?: UserResponse | undefined
@@ -1993,28 +1994,45 @@ export interface ScheduledEventResponse {
1993
1994
  readonly id: SnowflakeType
1994
1995
  readonly guild_id: SnowflakeType
1995
1996
  readonly name: string
1996
- readonly description?: string | null | undefined
1997
- readonly channel_id?: SnowflakeType | null | undefined
1998
- readonly creator_id?: SnowflakeType | null | undefined
1997
+ readonly description: string | null
1998
+ readonly channel_id: SnowflakeType | null
1999
+ readonly creator_id: SnowflakeType | null
1999
2000
  readonly creator?: UserResponse | undefined
2000
- readonly image?: string | null | undefined
2001
+ readonly image: string | null
2001
2002
  readonly scheduled_start_time: string
2002
- readonly scheduled_end_time?: string | null | undefined
2003
+ readonly scheduled_end_time: string | null
2003
2004
  readonly status: GuildScheduledEventStatuses
2004
2005
  readonly entity_type: GuildScheduledEventEntityTypes
2005
- readonly entity_id?: SnowflakeType | null | undefined
2006
+ readonly entity_id: SnowflakeType | null
2006
2007
  readonly user_count?: number | undefined
2007
2008
  readonly privacy_level: GuildScheduledEventPrivacyLevels
2008
2009
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
2009
2010
  }
2010
2011
 
2012
+ export interface GuildRoleColorsResponse {
2013
+ readonly primary_color: number
2014
+ readonly secondary_color: number | null
2015
+ readonly tertiary_color: number | null
2016
+ }
2017
+
2018
+ export interface InviteGuildRoleResponse {
2019
+ readonly id: SnowflakeType
2020
+ readonly name: string
2021
+ readonly position: number
2022
+ readonly color: number
2023
+ readonly colors: GuildRoleColorsResponse
2024
+ readonly icon: string | null
2025
+ readonly unicode_emoji: string | null
2026
+ readonly permissions?: string | undefined
2027
+ }
2028
+
2011
2029
  export interface GuildInviteResponse {
2012
2030
  readonly type: 0
2013
2031
  readonly code: string
2014
2032
  readonly inviter?: UserResponse | undefined
2015
2033
  readonly max_age?: number | undefined
2016
2034
  readonly created_at?: string | undefined
2017
- readonly expires_at?: string | null | undefined
2035
+ readonly expires_at: string | null
2018
2036
  readonly is_contact?: boolean | undefined
2019
2037
  readonly flags?: number | undefined
2020
2038
  readonly guild: InviteGuildResponse
@@ -2030,6 +2048,7 @@ export interface GuildInviteResponse {
2030
2048
  readonly approximate_member_count?: number | null | undefined
2031
2049
  readonly approximate_presence_count?: number | null | undefined
2032
2050
  readonly is_nickname_changeable?: boolean | undefined
2051
+ readonly roles?: ReadonlyArray<InviteGuildRoleResponse> | null | undefined
2033
2052
  }
2034
2053
 
2035
2054
  export type ListChannelInvites200 = ReadonlyArray<
@@ -2261,6 +2280,18 @@ export const MessageComponentTypes = {
2261
2280
  * File upload component
2262
2281
  */
2263
2282
  FILE_UPLOAD: 19,
2283
+ /**
2284
+ * Radio group component
2285
+ */
2286
+ RADIO_GROUP: 21,
2287
+ /**
2288
+ * Checkbox group component
2289
+ */
2290
+ CHECKBOX_GROUP: 22,
2291
+ /**
2292
+ * Checkbox component
2293
+ */
2294
+ CHECKBOX: 23,
2264
2295
  } as const
2265
2296
  export type MessageComponentTypes =
2266
2297
  (typeof MessageComponentTypes)[keyof typeof MessageComponentTypes]
@@ -2312,8 +2343,8 @@ export interface ChannelSelectComponentResponse {
2312
2343
  readonly id: number
2313
2344
  readonly custom_id: string
2314
2345
  readonly placeholder?: string | undefined
2315
- readonly min_values?: number | null | undefined
2316
- readonly max_values?: number | null | undefined
2346
+ readonly min_values: number | null
2347
+ readonly max_values: number | null
2317
2348
  readonly disabled?: boolean | undefined
2318
2349
  readonly channel_types?: ReadonlyArray<ChannelTypes> | undefined
2319
2350
  readonly default_values?:
@@ -2336,8 +2367,8 @@ export interface MentionableSelectComponentResponse {
2336
2367
  readonly id: number
2337
2368
  readonly custom_id: string
2338
2369
  readonly placeholder?: string | undefined
2339
- readonly min_values?: number | null | undefined
2340
- readonly max_values?: number | null | undefined
2370
+ readonly min_values: number | null
2371
+ readonly max_values: number | null
2341
2372
  readonly disabled?: boolean | undefined
2342
2373
  readonly default_values?:
2343
2374
  | ReadonlyArray<
@@ -2351,8 +2382,8 @@ export interface RoleSelectComponentResponse {
2351
2382
  readonly id: number
2352
2383
  readonly custom_id: string
2353
2384
  readonly placeholder?: string | undefined
2354
- readonly min_values?: number | null | undefined
2355
- readonly max_values?: number | null | undefined
2385
+ readonly min_values: number | null
2386
+ readonly max_values: number | null
2356
2387
  readonly disabled?: boolean | undefined
2357
2388
  readonly default_values?:
2358
2389
  | ReadonlyArray<RoleSelectDefaultValueResponse>
@@ -2372,8 +2403,8 @@ export interface StringSelectComponentResponse {
2372
2403
  readonly id: number
2373
2404
  readonly custom_id: string
2374
2405
  readonly placeholder?: string | undefined
2375
- readonly min_values?: number | null | undefined
2376
- readonly max_values?: number | null | undefined
2406
+ readonly min_values: number | null
2407
+ readonly max_values: number | null
2377
2408
  readonly disabled?: boolean | undefined
2378
2409
  readonly options: ReadonlyArray<StringSelectOptionResponse>
2379
2410
  }
@@ -2396,12 +2427,12 @@ export interface TextInputComponentResponse {
2396
2427
  readonly id: number
2397
2428
  readonly custom_id: string
2398
2429
  readonly style: TextInputStyleTypes
2399
- readonly label?: string | null | undefined
2430
+ readonly label: string | null
2400
2431
  readonly value?: string | undefined
2401
2432
  readonly placeholder?: string | undefined
2402
2433
  readonly required?: boolean | undefined
2403
- readonly min_length?: number | null | undefined
2404
- readonly max_length?: number | null | undefined
2434
+ readonly min_length: number | null
2435
+ readonly max_length: number | null
2405
2436
  }
2406
2437
 
2407
2438
  export interface UserSelectComponentResponse {
@@ -2409,8 +2440,8 @@ export interface UserSelectComponentResponse {
2409
2440
  readonly id: number
2410
2441
  readonly custom_id: string
2411
2442
  readonly placeholder?: string | undefined
2412
- readonly min_values?: number | null | undefined
2413
- readonly max_values?: number | null | undefined
2443
+ readonly min_values: number | null
2444
+ readonly max_values: number | null
2414
2445
  readonly disabled?: boolean | undefined
2415
2446
  readonly default_values?:
2416
2447
  | ReadonlyArray<UserSelectDefaultValueResponse>
@@ -2445,14 +2476,14 @@ export interface FileComponentResponse {
2445
2476
  readonly type: 13
2446
2477
  readonly id: number
2447
2478
  readonly file: UnfurledMediaResponse
2448
- readonly name?: string | null | undefined
2449
- readonly size?: number | null | undefined
2479
+ readonly name: string | null
2480
+ readonly size: number | null
2450
2481
  readonly spoiler: boolean
2451
2482
  }
2452
2483
 
2453
2484
  export interface MediaGalleryItemResponse {
2454
2485
  readonly media: UnfurledMediaResponse
2455
- readonly description?: string | null | undefined
2486
+ readonly description: string | null
2456
2487
  readonly spoiler: boolean
2457
2488
  }
2458
2489
 
@@ -2472,7 +2503,7 @@ export interface ThumbnailComponentResponse {
2472
2503
  readonly type: 11
2473
2504
  readonly id: number
2474
2505
  readonly media: UnfurledMediaResponse
2475
- readonly description?: string | null | undefined
2506
+ readonly description: string | null
2476
2507
  readonly spoiler: boolean
2477
2508
  }
2478
2509
 
@@ -2506,7 +2537,7 @@ export interface SeparatorComponentResponse {
2506
2537
  export interface ContainerComponentResponse {
2507
2538
  readonly type: 17
2508
2539
  readonly id: number
2509
- readonly accent_color?: number | null | undefined
2540
+ readonly accent_color: number | null
2510
2541
  readonly components: ReadonlyArray<
2511
2542
  | ActionRowComponentResponse
2512
2543
  | FileComponentResponse
@@ -2544,8 +2575,8 @@ export interface GuildStickerResponse {
2544
2575
  readonly name: string
2545
2576
  readonly tags: string
2546
2577
  readonly type: 2
2547
- readonly format_type?: StickerFormatTypes | null | undefined
2548
- readonly description?: string | null | undefined
2578
+ readonly format_type: StickerFormatTypes | null
2579
+ readonly description: string | null
2549
2580
  readonly available: boolean
2550
2581
  readonly guild_id: SnowflakeType
2551
2582
  readonly user?: UserResponse | undefined
@@ -2556,8 +2587,8 @@ export interface StandardStickerResponse {
2556
2587
  readonly name: string
2557
2588
  readonly tags: string
2558
2589
  readonly type: 1
2559
- readonly format_type?: StickerFormatTypes | null | undefined
2560
- readonly description?: string | null | undefined
2590
+ readonly format_type: StickerFormatTypes | null
2591
+ readonly description: string | null
2561
2592
  readonly pack_id: SnowflakeType
2562
2593
  readonly sort_value: number
2563
2594
  }
@@ -2578,9 +2609,9 @@ export interface MessageActivityResponse {}
2578
2609
  export interface BasicApplicationResponse {
2579
2610
  readonly id: SnowflakeType
2580
2611
  readonly name: string
2581
- readonly icon?: string | null | undefined
2612
+ readonly icon: string | null
2582
2613
  readonly description: string
2583
- readonly type?: ApplicationTypes | null | undefined
2614
+ readonly type: ApplicationTypes | null
2584
2615
  readonly cover_image?: string | undefined
2585
2616
  readonly primary_sku_id?: SnowflakeType | undefined
2586
2617
  readonly bot?: UserResponse | undefined
@@ -2607,6 +2638,10 @@ export const InteractionTypes = {
2607
2638
  * Sent when a user submits a modal previously sent by your application
2608
2639
  */
2609
2640
  MODAL_SUBMIT: 5,
2641
+ /**
2642
+ * Sent when Discord is checking if a user can purchase a Social Layer SKU
2643
+ */
2644
+ SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6,
2610
2645
  } as const
2611
2646
  export type InteractionTypes =
2612
2647
  (typeof InteractionTypes)[keyof typeof InteractionTypes]
@@ -2662,8 +2697,8 @@ export interface ResolvedObjectsResponse {
2662
2697
  }
2663
2698
 
2664
2699
  export interface MessageReactionEmojiResponse {
2665
- readonly id?: SnowflakeType | null | undefined
2666
- readonly name?: string | null | undefined
2700
+ readonly id: SnowflakeType | null
2701
+ readonly name: string | null
2667
2702
  readonly animated?: boolean | undefined
2668
2703
  }
2669
2704
 
@@ -2769,7 +2804,7 @@ export interface MinimalContentMessageResponse {
2769
2804
  readonly attachments: ReadonlyArray<MessageAttachmentResponse>
2770
2805
  readonly embeds: ReadonlyArray<MessageEmbedResponse>
2771
2806
  readonly timestamp: string
2772
- readonly edited_timestamp?: string | null | undefined
2807
+ readonly edited_timestamp: string | null
2773
2808
  readonly flags: number
2774
2809
  readonly components: ReadonlyArray<
2775
2810
  | ActionRowComponentResponse
@@ -2812,7 +2847,7 @@ export interface BasicMessageResponse {
2812
2847
  readonly attachments: ReadonlyArray<MessageAttachmentResponse>
2813
2848
  readonly embeds: ReadonlyArray<MessageEmbedResponse>
2814
2849
  readonly timestamp: string
2815
- readonly edited_timestamp?: string | null | undefined
2850
+ readonly edited_timestamp: string | null
2816
2851
  readonly flags: number
2817
2852
  readonly components: ReadonlyArray<
2818
2853
  | ActionRowComponentResponse
@@ -2871,7 +2906,7 @@ export interface MessageResponse {
2871
2906
  readonly attachments: ReadonlyArray<MessageAttachmentResponse>
2872
2907
  readonly embeds: ReadonlyArray<MessageEmbedResponse>
2873
2908
  readonly timestamp: string
2874
- readonly edited_timestamp?: string | null | undefined
2909
+ readonly edited_timestamp: string | null
2875
2910
  readonly flags: number
2876
2911
  readonly components: ReadonlyArray<
2877
2912
  | ActionRowComponentResponse
@@ -3267,8 +3302,6 @@ export interface CustomClientThemeShareRequest {
3267
3302
  readonly base_theme?: MessageShareCustomUserThemeBaseTheme | null | undefined
3268
3303
  }
3269
3304
 
3270
- export interface ConfettiPotionCreateRequest {}
3271
-
3272
3305
  export interface MessageReferenceRequest {
3273
3306
  readonly guild_id?: SnowflakeType | null | undefined
3274
3307
  readonly channel_id?: SnowflakeType | null | undefined
@@ -3304,7 +3337,6 @@ export interface MessageCreateRequest {
3304
3337
  | CustomClientThemeShareRequest
3305
3338
  | null
3306
3339
  | undefined
3307
- readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
3308
3340
  readonly message_reference?: MessageReferenceRequest | null | undefined
3309
3341
  readonly nonce?: number | string | null | undefined
3310
3342
  readonly enforce_nonce?: boolean | null | undefined
@@ -3450,7 +3482,6 @@ export interface BaseCreateMessageCreateRequest {
3450
3482
  | CustomClientThemeShareRequest
3451
3483
  | null
3452
3484
  | undefined
3453
- readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
3454
3485
  }
3455
3486
 
3456
3487
  export interface CreateForumThreadRequest {
@@ -3575,9 +3606,9 @@ export const WebhookTypes = {
3575
3606
  export type WebhookTypes = (typeof WebhookTypes)[keyof typeof WebhookTypes]
3576
3607
 
3577
3608
  export interface ApplicationIncomingWebhookResponse {
3578
- readonly application_id?: SnowflakeType | null | undefined
3579
- readonly avatar?: string | null | undefined
3580
- readonly channel_id?: SnowflakeType | null | undefined
3609
+ readonly application_id: SnowflakeType | null
3610
+ readonly avatar: string | null
3611
+ readonly channel_id: SnowflakeType | null
3581
3612
  readonly guild_id?: SnowflakeType | null | undefined
3582
3613
  readonly id: SnowflakeType
3583
3614
  readonly name: string
@@ -3587,7 +3618,7 @@ export interface ApplicationIncomingWebhookResponse {
3587
3618
 
3588
3619
  export interface WebhookSourceGuildResponse {
3589
3620
  readonly id: SnowflakeType
3590
- readonly icon?: string | null | undefined
3621
+ readonly icon: string | null
3591
3622
  readonly name: string
3592
3623
  }
3593
3624
 
@@ -3597,9 +3628,9 @@ export interface WebhookSourceChannelResponse {
3597
3628
  }
3598
3629
 
3599
3630
  export interface ChannelFollowerWebhookResponse {
3600
- readonly application_id?: SnowflakeType | null | undefined
3601
- readonly avatar?: string | null | undefined
3602
- readonly channel_id?: SnowflakeType | null | undefined
3631
+ readonly application_id: SnowflakeType | null
3632
+ readonly avatar: string | null
3633
+ readonly channel_id: SnowflakeType | null
3603
3634
  readonly guild_id?: SnowflakeType | null | undefined
3604
3635
  readonly id: SnowflakeType
3605
3636
  readonly name: string
@@ -3610,9 +3641,9 @@ export interface ChannelFollowerWebhookResponse {
3610
3641
  }
3611
3642
 
3612
3643
  export interface GuildIncomingWebhookResponse {
3613
- readonly application_id?: SnowflakeType | null | undefined
3614
- readonly avatar?: string | null | undefined
3615
- readonly channel_id?: SnowflakeType | null | undefined
3644
+ readonly application_id: SnowflakeType | null
3645
+ readonly avatar: string | null
3646
+ readonly channel_id: SnowflakeType | null
3616
3647
  readonly guild_id?: SnowflakeType | null | undefined
3617
3648
  readonly id: SnowflakeType
3618
3649
  readonly name: string
@@ -3832,8 +3863,8 @@ export type AfkTimeouts = (typeof AfkTimeouts)[keyof typeof AfkTimeouts]
3832
3863
 
3833
3864
  export interface GuildTemplateRoleColorsResponse {
3834
3865
  readonly primary_color: number
3835
- readonly secondary_color?: number | null | undefined
3836
- readonly tertiary_color?: number | null | undefined
3866
+ readonly secondary_color: number | null
3867
+ readonly tertiary_color: number | null
3837
3868
  }
3838
3869
 
3839
3870
  export interface GuildTemplateRoleResponse {
@@ -3841,67 +3872,58 @@ export interface GuildTemplateRoleResponse {
3841
3872
  readonly name: string
3842
3873
  readonly permissions: string
3843
3874
  readonly color: number
3844
- readonly colors?: GuildTemplateRoleColorsResponse | null | undefined
3875
+ readonly colors: GuildTemplateRoleColorsResponse | null
3845
3876
  readonly hoist: boolean
3846
3877
  readonly mentionable: boolean
3847
- readonly icon?: string | null | undefined
3848
- readonly unicode_emoji?: string | null | undefined
3878
+ readonly icon: string | null
3879
+ readonly unicode_emoji: string | null
3849
3880
  }
3850
3881
 
3851
3882
  export interface GuildTemplateChannelTags {
3852
- readonly id?: number | null | undefined
3883
+ readonly id: number | null
3853
3884
  readonly name: string
3854
- readonly emoji_id?: SnowflakeType | null | undefined
3855
- readonly emoji_name?: string | null | undefined
3856
- readonly moderated?: boolean | null | undefined
3885
+ readonly emoji_id: SnowflakeType | null
3886
+ readonly emoji_name: string | null
3887
+ readonly moderated: boolean | null
3857
3888
  }
3858
3889
 
3859
3890
  export interface IconEmojiResponse {}
3860
3891
 
3861
3892
  export interface GuildTemplateChannelResponse {
3862
- readonly id?: number | null | undefined
3893
+ readonly id: number | null
3863
3894
  readonly type: 0 | 2 | 4 | 15
3864
- readonly name?: string | null | undefined
3865
- readonly position?: number | null | undefined
3866
- readonly topic?: string | null | undefined
3895
+ readonly name: string | null
3896
+ readonly position: number | null
3897
+ readonly topic: string | null
3867
3898
  readonly bitrate: number
3868
3899
  readonly user_limit: number
3869
3900
  readonly nsfw: boolean
3870
3901
  readonly rate_limit_per_user: number
3871
- readonly parent_id?: SnowflakeType | null | undefined
3872
- readonly default_auto_archive_duration?:
3873
- | ThreadAutoArchiveDuration
3874
- | null
3875
- | undefined
3902
+ readonly parent_id: SnowflakeType | null
3903
+ readonly default_auto_archive_duration: ThreadAutoArchiveDuration | null
3876
3904
  readonly permission_overwrites: ReadonlyArray<null | ChannelPermissionOverwriteResponse>
3877
- readonly available_tags?:
3878
- | ReadonlyArray<GuildTemplateChannelTags>
3879
- | null
3880
- | undefined
3905
+ readonly available_tags: ReadonlyArray<GuildTemplateChannelTags> | null
3881
3906
  readonly template: string
3882
- readonly default_reaction_emoji?:
3883
- | DefaultReactionEmojiResponse
3884
- | null
3885
- | undefined
3886
- readonly default_thread_rate_limit_per_user?: number | null | undefined
3887
- readonly default_sort_order?: ThreadSortOrder | null | undefined
3888
- readonly default_forum_layout?: ForumLayout | null | undefined
3889
- readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
3890
- readonly icon_emoji?: IconEmojiResponse | null | undefined
3891
- readonly theme_color?: number | null | undefined
3907
+ readonly default_reaction_emoji: DefaultReactionEmojiResponse | null
3908
+ readonly default_thread_rate_limit_per_user: number | null
3909
+ readonly default_sort_order: ThreadSortOrder | null
3910
+ readonly default_forum_layout: ForumLayout | null
3911
+ readonly default_tag_setting: ThreadSearchTagSetting | null
3912
+ readonly icon_emoji: IconEmojiResponse | null
3913
+ readonly theme_color: number | null
3892
3914
  }
3893
3915
 
3894
3916
  export interface GuildTemplateSnapshotResponse {
3895
3917
  readonly name: string
3896
- readonly description?: string | null | undefined
3897
- readonly region?: string | null | undefined
3918
+ readonly description: string | null
3919
+ readonly region: string | null
3898
3920
  readonly verification_level: VerificationLevels
3899
3921
  readonly default_message_notifications: UserNotificationSettings
3900
3922
  readonly explicit_content_filter: GuildExplicitContentFilterTypes
3901
3923
  readonly preferred_locale: AvailableLocalesEnum
3902
- readonly afk_channel_id?: SnowflakeType | null | undefined
3924
+ readonly afk_channel_id: SnowflakeType | null
3903
3925
  readonly afk_timeout: AfkTimeouts
3904
- readonly system_channel_id?: SnowflakeType | null | undefined
3926
+ readonly system_channel_id: SnowflakeType | null
3905
3927
  readonly system_channel_flags: number
3906
3928
  readonly roles: ReadonlyArray<GuildTemplateRoleResponse>
3907
3929
  readonly channels: ReadonlyArray<GuildTemplateChannelResponse>
@@ -3910,27 +3932,21 @@ export interface GuildTemplateSnapshotResponse {
3910
3932
  export interface GuildTemplateResponse {
3911
3933
  readonly code: string
3912
3934
  readonly name: string
3913
- readonly description?: string | null | undefined
3935
+ readonly description: string | null
3914
3936
  readonly usage_count: number
3915
3937
  readonly creator_id: SnowflakeType
3916
- readonly creator?: UserResponse | null | undefined
3938
+ readonly creator: UserResponse | null
3917
3939
  readonly created_at: string
3918
3940
  readonly updated_at: string
3919
3941
  readonly source_guild_id: SnowflakeType
3920
3942
  readonly serialized_source_guild: GuildTemplateSnapshotResponse
3921
- readonly is_dirty?: boolean | null | undefined
3943
+ readonly is_dirty: boolean | null
3922
3944
  }
3923
3945
 
3924
3946
  export interface GetGuildParams {
3925
3947
  readonly with_counts?: boolean | undefined
3926
3948
  }
3927
3949
 
3928
- export interface GuildRoleColorsResponse {
3929
- readonly primary_color: number
3930
- readonly secondary_color?: number | null | undefined
3931
- readonly tertiary_color?: number | null | undefined
3932
- }
3933
-
3934
3950
  export interface GuildRoleTagsResponse {
3935
3951
  readonly premium_subscriber?: null | undefined
3936
3952
  readonly bot_id?: SnowflakeType | undefined
@@ -3943,7 +3959,7 @@ export interface GuildRoleTagsResponse {
3943
3959
  export interface GuildRoleResponse {
3944
3960
  readonly id: SnowflakeType
3945
3961
  readonly name: string
3946
- readonly description?: string | null | undefined
3962
+ readonly description: string | null
3947
3963
  readonly permissions: string
3948
3964
  readonly position: number
3949
3965
  readonly color: number
@@ -3951,8 +3967,8 @@ export interface GuildRoleResponse {
3951
3967
  readonly hoist: boolean
3952
3968
  readonly managed: boolean
3953
3969
  readonly mentionable: boolean
3954
- readonly icon?: string | null | undefined
3955
- readonly unicode_emoji?: string | null | undefined
3970
+ readonly icon: string | null
3971
+ readonly unicode_emoji: string | null
3956
3972
  readonly tags?: GuildRoleTagsResponse | undefined
3957
3973
  readonly flags: number
3958
3974
  }
@@ -3993,39 +4009,43 @@ export type PremiumGuildTiers =
3993
4009
  export interface GuildWithCountsResponse {
3994
4010
  readonly id: SnowflakeType
3995
4011
  readonly name: string
3996
- readonly icon?: string | null | undefined
3997
- readonly description?: string | null | undefined
3998
- readonly home_header?: string | null | undefined
3999
- readonly splash?: string | null | undefined
4000
- readonly discovery_splash?: string | null | undefined
4012
+ readonly icon: string | null
4013
+ readonly description: string | null
4014
+ readonly home_header: string | null
4015
+ readonly splash: string | null
4016
+ readonly discovery_splash: string | null
4001
4017
  readonly features: ReadonlyArray<GuildFeatures>
4002
- readonly banner?: string | null | undefined
4018
+ readonly banner: string | null
4003
4019
  readonly owner_id: SnowflakeType
4004
- readonly application_id?: SnowflakeType | null | undefined
4020
+ readonly application_id: SnowflakeType | null
4005
4021
  readonly region: string
4006
- readonly afk_channel_id?: SnowflakeType | null | undefined
4022
+ readonly afk_channel_id: SnowflakeType | null
4007
4023
  readonly afk_timeout: AfkTimeouts
4008
- readonly system_channel_id?: SnowflakeType | null | undefined
4024
+ readonly system_channel_id: SnowflakeType | null
4009
4025
  readonly system_channel_flags: number
4010
4026
  readonly widget_enabled: boolean
4011
- readonly widget_channel_id?: SnowflakeType | null | undefined
4027
+ readonly widget_channel_id: SnowflakeType | null
4012
4028
  readonly verification_level: VerificationLevels
4013
4029
  readonly roles: ReadonlyArray<GuildRoleResponse>
4014
4030
  readonly default_message_notifications: UserNotificationSettings
4015
4031
  readonly mfa_level: GuildMFALevel
4016
4032
  readonly explicit_content_filter: GuildExplicitContentFilterTypes
4017
- readonly max_presences?: number | null | undefined
4033
+ readonly max_presences: number | null
4018
4034
  readonly max_members: number
4019
4035
  readonly max_stage_video_channel_users: number
4020
4036
  readonly max_video_channel_users: number
4021
- readonly vanity_url_code?: string | null | undefined
4037
+ readonly vanity_url_code: string | null
4022
4038
  readonly premium_tier: PremiumGuildTiers
4023
4039
  readonly premium_subscription_count: number
4024
4040
  readonly preferred_locale: AvailableLocalesEnum
4025
- readonly rules_channel_id?: SnowflakeType | null | undefined
4026
- readonly safety_alerts_channel_id?: SnowflakeType | null | undefined
4027
- readonly public_updates_channel_id?: SnowflakeType | null | undefined
4041
+ readonly rules_channel_id: SnowflakeType | null
4042
+ readonly safety_alerts_channel_id: SnowflakeType | null
4043
+ readonly public_updates_channel_id: SnowflakeType | null
4028
4044
  readonly premium_progress_bar_enabled: boolean
4045
+ readonly premium_progress_bar_enabled_user_updated_at?:
4046
+ | string
4047
+ | null
4048
+ | undefined
4029
4049
  readonly nsfw: boolean
4030
4050
  readonly nsfw_level: GuildNSFWContentLevel
4031
4051
  readonly emojis: ReadonlyArray<EmojiResponse>
@@ -4067,39 +4087,43 @@ export interface GuildPatchRequestPartial {
4067
4087
  export interface GuildResponse {
4068
4088
  readonly id: SnowflakeType
4069
4089
  readonly name: string
4070
- readonly icon?: string | null | undefined
4071
- readonly description?: string | null | undefined
4072
- readonly home_header?: string | null | undefined
4073
- readonly splash?: string | null | undefined
4074
- readonly discovery_splash?: string | null | undefined
4090
+ readonly icon: string | null
4091
+ readonly description: string | null
4092
+ readonly home_header: string | null
4093
+ readonly splash: string | null
4094
+ readonly discovery_splash: string | null
4075
4095
  readonly features: ReadonlyArray<GuildFeatures>
4076
- readonly banner?: string | null | undefined
4096
+ readonly banner: string | null
4077
4097
  readonly owner_id: SnowflakeType
4078
- readonly application_id?: SnowflakeType | null | undefined
4098
+ readonly application_id: SnowflakeType | null
4079
4099
  readonly region: string
4080
- readonly afk_channel_id?: SnowflakeType | null | undefined
4100
+ readonly afk_channel_id: SnowflakeType | null
4081
4101
  readonly afk_timeout: AfkTimeouts
4082
- readonly system_channel_id?: SnowflakeType | null | undefined
4102
+ readonly system_channel_id: SnowflakeType | null
4083
4103
  readonly system_channel_flags: number
4084
4104
  readonly widget_enabled: boolean
4085
- readonly widget_channel_id?: SnowflakeType | null | undefined
4105
+ readonly widget_channel_id: SnowflakeType | null
4086
4106
  readonly verification_level: VerificationLevels
4087
4107
  readonly roles: ReadonlyArray<GuildRoleResponse>
4088
4108
  readonly default_message_notifications: UserNotificationSettings
4089
4109
  readonly mfa_level: GuildMFALevel
4090
4110
  readonly explicit_content_filter: GuildExplicitContentFilterTypes
4091
- readonly max_presences?: number | null | undefined
4111
+ readonly max_presences: number | null
4092
4112
  readonly max_members: number
4093
4113
  readonly max_stage_video_channel_users: number
4094
4114
  readonly max_video_channel_users: number
4095
- readonly vanity_url_code?: string | null | undefined
4115
+ readonly vanity_url_code: string | null
4096
4116
  readonly premium_tier: PremiumGuildTiers
4097
4117
  readonly premium_subscription_count: number
4098
4118
  readonly preferred_locale: AvailableLocalesEnum
4099
- readonly rules_channel_id?: SnowflakeType | null | undefined
4100
- readonly safety_alerts_channel_id?: SnowflakeType | null | undefined
4101
- readonly public_updates_channel_id?: SnowflakeType | null | undefined
4119
+ readonly rules_channel_id: SnowflakeType | null
4120
+ readonly safety_alerts_channel_id: SnowflakeType | null
4121
+ readonly public_updates_channel_id: SnowflakeType | null
4102
4122
  readonly premium_progress_bar_enabled: boolean
4123
+ readonly premium_progress_bar_enabled_user_updated_at?:
4124
+ | string
4125
+ | null
4126
+ | undefined
4103
4127
  readonly nsfw: boolean
4104
4128
  readonly nsfw_level: GuildNSFWContentLevel
4105
4129
  readonly emojis: ReadonlyArray<EmojiResponse>
@@ -4194,14 +4218,14 @@ export interface ListGuildAuditLogEntriesParams {
4194
4218
  }
4195
4219
 
4196
4220
  export interface AuditLogObjectChangeResponse {
4197
- readonly key?: string | null | undefined
4221
+ readonly key: string | null
4198
4222
  }
4199
4223
 
4200
4224
  export interface AuditLogEntryResponse {
4201
4225
  readonly id: SnowflakeType
4202
4226
  readonly action_type: AuditLogActionTypes
4203
- readonly user_id?: SnowflakeType | null | undefined
4204
- readonly target_id?: SnowflakeType | null | undefined
4227
+ readonly user_id: SnowflakeType | null
4228
+ readonly target_id: SnowflakeType | null
4205
4229
  readonly changes?: ReadonlyArray<AuditLogObjectChangeResponse> | undefined
4206
4230
  readonly options?: Record<string, unknown> | undefined
4207
4231
  readonly reason?: string | undefined
@@ -4218,13 +4242,13 @@ export type IntegrationTypes =
4218
4242
 
4219
4243
  export interface AccountResponse {
4220
4244
  readonly id: string
4221
- readonly name?: string | null | undefined
4245
+ readonly name: string | null
4222
4246
  }
4223
4247
 
4224
4248
  export interface PartialDiscordIntegrationResponse {
4225
4249
  readonly id: SnowflakeType
4226
4250
  readonly type: "discord"
4227
- readonly name?: string | null | undefined
4251
+ readonly name: string | null
4228
4252
  readonly account: AccountResponse
4229
4253
  readonly application_id: SnowflakeType
4230
4254
  }
@@ -4232,14 +4256,14 @@ export interface PartialDiscordIntegrationResponse {
4232
4256
  export interface PartialExternalConnectionIntegrationResponse {
4233
4257
  readonly id: SnowflakeType
4234
4258
  readonly type: "twitch" | "youtube"
4235
- readonly name?: string | null | undefined
4259
+ readonly name: string | null
4236
4260
  readonly account: AccountResponse
4237
4261
  }
4238
4262
 
4239
4263
  export interface PartialGuildSubscriptionIntegrationResponse {
4240
4264
  readonly id: SnowflakeType
4241
4265
  readonly type: "guild_subscription"
4242
- readonly name?: string | null | undefined
4266
+ readonly name: string | null
4243
4267
  readonly account: AccountResponse
4244
4268
  }
4245
4269
 
@@ -4251,16 +4275,16 @@ export interface ExternalScheduledEventResponse {
4251
4275
  readonly id: SnowflakeType
4252
4276
  readonly guild_id: SnowflakeType
4253
4277
  readonly name: string
4254
- readonly description?: string | null | undefined
4255
- readonly channel_id?: SnowflakeType | null | undefined
4256
- readonly creator_id?: SnowflakeType | null | undefined
4278
+ readonly description: string | null
4279
+ readonly channel_id: SnowflakeType | null
4280
+ readonly creator_id: SnowflakeType | null
4257
4281
  readonly creator?: UserResponse | undefined
4258
- readonly image?: string | null | undefined
4282
+ readonly image: string | null
4259
4283
  readonly scheduled_start_time: string
4260
- readonly scheduled_end_time?: string | null | undefined
4284
+ readonly scheduled_end_time: string | null
4261
4285
  readonly status: GuildScheduledEventStatuses
4262
4286
  readonly entity_type: 3
4263
- readonly entity_id?: SnowflakeType | null | undefined
4287
+ readonly entity_id: SnowflakeType | null
4264
4288
  readonly user_count?: number | undefined
4265
4289
  readonly privacy_level: GuildScheduledEventPrivacyLevels
4266
4290
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
@@ -4273,23 +4297,20 @@ export interface StageScheduledEventResponse {
4273
4297
  readonly id: SnowflakeType
4274
4298
  readonly guild_id: SnowflakeType
4275
4299
  readonly name: string
4276
- readonly description?: string | null | undefined
4277
- readonly channel_id?: SnowflakeType | null | undefined
4278
- readonly creator_id?: SnowflakeType | null | undefined
4300
+ readonly description: string | null
4301
+ readonly channel_id: SnowflakeType | null
4302
+ readonly creator_id: SnowflakeType | null
4279
4303
  readonly creator?: UserResponse | undefined
4280
- readonly image?: string | null | undefined
4304
+ readonly image: string | null
4281
4305
  readonly scheduled_start_time: string
4282
- readonly scheduled_end_time?: string | null | undefined
4306
+ readonly scheduled_end_time: string | null
4283
4307
  readonly status: GuildScheduledEventStatuses
4284
4308
  readonly entity_type: 1
4285
- readonly entity_id?: SnowflakeType | null | undefined
4309
+ readonly entity_id: SnowflakeType | null
4286
4310
  readonly user_count?: number | undefined
4287
4311
  readonly privacy_level: GuildScheduledEventPrivacyLevels
4288
4312
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
4289
- readonly entity_metadata?:
4290
- | EntityMetadataStageInstanceResponse
4291
- | null
4292
- | undefined
4313
+ readonly entity_metadata: EntityMetadataStageInstanceResponse | null
4293
4314
  }
4294
4315
 
4295
4316
  export interface EntityMetadataVoiceResponse {}
@@ -4298,20 +4319,20 @@ export interface VoiceScheduledEventResponse {
4298
4319
  readonly id: SnowflakeType
4299
4320
  readonly guild_id: SnowflakeType
4300
4321
  readonly name: string
4301
- readonly description?: string | null | undefined
4302
- readonly channel_id?: SnowflakeType | null | undefined
4303
- readonly creator_id?: SnowflakeType | null | undefined
4322
+ readonly description: string | null
4323
+ readonly channel_id: SnowflakeType | null
4324
+ readonly creator_id: SnowflakeType | null
4304
4325
  readonly creator?: UserResponse | undefined
4305
- readonly image?: string | null | undefined
4326
+ readonly image: string | null
4306
4327
  readonly scheduled_start_time: string
4307
- readonly scheduled_end_time?: string | null | undefined
4328
+ readonly scheduled_end_time: string | null
4308
4329
  readonly status: GuildScheduledEventStatuses
4309
4330
  readonly entity_type: 2
4310
- readonly entity_id?: SnowflakeType | null | undefined
4331
+ readonly entity_id: SnowflakeType | null
4311
4332
  readonly user_count?: number | undefined
4312
4333
  readonly privacy_level: GuildScheduledEventPrivacyLevels
4313
4334
  readonly user_rsvp?: ScheduledEventUserResponse | null | undefined
4314
- readonly entity_metadata?: EntityMetadataVoiceResponse | null | undefined
4335
+ readonly entity_metadata: EntityMetadataVoiceResponse | null
4315
4336
  }
4316
4337
 
4317
4338
  export const AutomodEventType = {
@@ -4823,7 +4844,7 @@ export interface ListGuildBansParams {
4823
4844
 
4824
4845
  export interface GuildBanResponse {
4825
4846
  readonly user: UserResponse
4826
- readonly reason?: string | null | undefined
4847
+ readonly reason: string | null
4827
4848
  }
4828
4849
 
4829
4850
  export type ListGuildBans200 = ReadonlyArray<GuildBanResponse>
@@ -4916,9 +4937,9 @@ export interface UpdateGuildEmojiRequest {
4916
4937
  export interface IntegrationApplicationResponse {
4917
4938
  readonly id: SnowflakeType
4918
4939
  readonly name: string
4919
- readonly icon?: string | null | undefined
4940
+ readonly icon: string | null
4920
4941
  readonly description: string
4921
- readonly type?: ApplicationTypes | null | undefined
4942
+ readonly type: ApplicationTypes | null
4922
4943
  readonly cover_image?: string | undefined
4923
4944
  readonly primary_sku_id?: SnowflakeType | undefined
4924
4945
  readonly bot?: UserResponse | undefined
@@ -4926,7 +4947,7 @@ export interface IntegrationApplicationResponse {
4926
4947
 
4927
4948
  export interface DiscordIntegrationResponse {
4928
4949
  readonly type: "discord"
4929
- readonly name?: string | null | undefined
4950
+ readonly name: string | null
4930
4951
  readonly account: AccountResponse
4931
4952
  readonly enabled: boolean
4932
4953
  readonly id: SnowflakeType
@@ -4977,7 +4998,7 @@ export type IntegrationExpireGracePeriodTypes =
4977
4998
 
4978
4999
  export interface ExternalConnectionIntegrationResponse {
4979
5000
  readonly type: "twitch" | "youtube"
4980
- readonly name?: string | null | undefined
5001
+ readonly name: string | null
4981
5002
  readonly account: AccountResponse
4982
5003
  readonly enabled: boolean
4983
5004
  readonly id: string
@@ -4994,7 +5015,7 @@ export interface ExternalConnectionIntegrationResponse {
4994
5015
 
4995
5016
  export interface GuildSubscriptionIntegrationResponse {
4996
5017
  readonly type: "guild_subscription"
4997
- readonly name?: string | null | undefined
5018
+ readonly name: string | null
4998
5019
  readonly account: AccountResponse
4999
5020
  readonly enabled: boolean
5000
5021
  readonly id: SnowflakeType
@@ -5019,21 +5040,24 @@ export type ListGuildMembers200 = ReadonlyArray<GuildMemberResponse>
5019
5040
 
5020
5041
  export interface UpdateMyGuildMemberRequest {
5021
5042
  readonly nick?: string | null | undefined
5043
+ readonly avatar?: string | null | undefined
5044
+ readonly bio?: string | null | undefined
5045
+ readonly banner?: string | null | undefined
5022
5046
  }
5023
5047
 
5024
5048
  export interface PrivateGuildMemberResponse {
5025
- readonly avatar?: string | null | undefined
5049
+ readonly avatar: string | null
5026
5050
  readonly avatar_decoration_data?:
5027
5051
  | UserAvatarDecorationResponse
5028
5052
  | null
5029
5053
  | undefined
5030
- readonly banner?: string | null | undefined
5031
- readonly communication_disabled_until?: string | null | undefined
5054
+ readonly banner: string | null
5055
+ readonly communication_disabled_until: string | null
5032
5056
  readonly flags: number
5033
5057
  readonly joined_at: string
5034
- readonly nick?: string | null | undefined
5058
+ readonly nick: string | null
5035
5059
  readonly pending: boolean
5036
- readonly premium_since?: string | null | undefined
5060
+ readonly premium_since: string | null
5037
5061
  readonly roles: ReadonlyArray<SnowflakeType>
5038
5062
  readonly collectibles?: UserCollectiblesResponse | null | undefined
5039
5063
  readonly user: UserResponse
@@ -5081,8 +5105,8 @@ export type NewMemberActionType =
5081
5105
  (typeof NewMemberActionType)[keyof typeof NewMemberActionType]
5082
5106
 
5083
5107
  export interface SettingsEmojiResponse {
5084
- readonly id?: SnowflakeType | null | undefined
5085
- readonly name?: string | null | undefined
5108
+ readonly id: SnowflakeType | null
5109
+ readonly name: string | null
5086
5110
  readonly animated: boolean
5087
5111
  }
5088
5112
 
@@ -5204,11 +5228,11 @@ export interface GuildOnboardingResponse {
5204
5228
  export interface GuildPreviewResponse {
5205
5229
  readonly id: SnowflakeType
5206
5230
  readonly name: string
5207
- readonly icon?: string | null | undefined
5208
- readonly description?: string | null | undefined
5209
- readonly home_header?: string | null | undefined
5210
- readonly splash?: string | null | undefined
5211
- readonly discovery_splash?: string | null | undefined
5231
+ readonly icon: string | null
5232
+ readonly description: string | null
5233
+ readonly home_header: string | null
5234
+ readonly splash: string | null
5235
+ readonly discovery_splash: string | null
5212
5236
  readonly features: ReadonlyArray<GuildFeatures>
5213
5237
  readonly approximate_member_count: number
5214
5238
  readonly approximate_presence_count: number
@@ -5225,7 +5249,7 @@ export interface PreviewPruneGuildParams {
5225
5249
  }
5226
5250
 
5227
5251
  export interface GuildPruneResponse {
5228
- readonly pruned?: number | null | undefined
5252
+ readonly pruned: number | null
5229
5253
  }
5230
5254
 
5231
5255
  export interface PruneGuildRequest {
@@ -5250,10 +5274,17 @@ export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>
5250
5274
 
5251
5275
  export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>
5252
5276
 
5277
+ export interface RoleColors {
5278
+ readonly primary_color?: number | null | undefined
5279
+ readonly secondary_color?: number | null | undefined
5280
+ readonly tertiary_color?: number | null | undefined
5281
+ }
5282
+
5253
5283
  export interface CreateRoleRequest {
5254
5284
  readonly name?: string | null | undefined
5255
5285
  readonly permissions?: number | null | undefined
5256
5286
  readonly color?: number | null | undefined
5287
+ readonly colors?: RoleColors | null | undefined
5257
5288
  readonly hoist?: boolean | null | undefined
5258
5289
  readonly mentionable?: boolean | null | undefined
5259
5290
  readonly icon?: string | null | undefined
@@ -5270,10 +5301,13 @@ export type BulkUpdateGuildRolesRequest =
5270
5301
 
5271
5302
  export type BulkUpdateGuildRoles200 = ReadonlyArray<GuildRoleResponse>
5272
5303
 
5304
+ export type GuildRoleMemberCounts200 = Record<string, unknown>
5305
+
5273
5306
  export interface UpdateRoleRequestPartial {
5274
5307
  readonly name?: string | null | undefined
5275
5308
  readonly permissions?: number | null | undefined
5276
5309
  readonly color?: number | null | undefined
5310
+ readonly colors?: RoleColors | null | undefined
5277
5311
  readonly hoist?: boolean | null | undefined
5278
5312
  readonly mentionable?: boolean | null | undefined
5279
5313
  readonly icon?: string | null | undefined
@@ -5416,8 +5450,8 @@ export interface SoundboardSoundResponse {
5416
5450
  readonly name: string
5417
5451
  readonly sound_id: SnowflakeType
5418
5452
  readonly volume: number
5419
- readonly emoji_id?: SnowflakeType | null | undefined
5420
- readonly emoji_name?: string | null | undefined
5453
+ readonly emoji_id: SnowflakeType | null
5454
+ readonly emoji_name: string | null
5421
5455
  readonly guild_id?: SnowflakeType | undefined
5422
5456
  readonly available: boolean
5423
5457
  readonly user?: UserResponse | undefined
@@ -5475,20 +5509,20 @@ export interface VanityURLErrorResponse {
5475
5509
  }
5476
5510
 
5477
5511
  export interface VanityURLResponse {
5478
- readonly code?: string | null | undefined
5512
+ readonly code: string | null
5479
5513
  readonly uses: number
5480
5514
  readonly error?: VanityURLErrorResponse | null | undefined
5481
5515
  }
5482
5516
 
5483
5517
  export interface VoiceStateResponse {
5484
- readonly channel_id?: SnowflakeType | null | undefined
5518
+ readonly channel_id: SnowflakeType | null
5485
5519
  readonly deaf: boolean
5486
- readonly guild_id?: SnowflakeType | null | undefined
5520
+ readonly guild_id: SnowflakeType | null
5487
5521
  readonly member?: GuildMemberResponse | undefined
5488
5522
  readonly mute: boolean
5489
- readonly request_to_speak_timestamp?: string | null | undefined
5523
+ readonly request_to_speak_timestamp: string | null
5490
5524
  readonly suppress: boolean
5491
- readonly self_stream?: boolean | null | undefined
5525
+ readonly self_stream: boolean | null
5492
5526
  readonly self_deaf: boolean
5493
5527
  readonly self_mute: boolean
5494
5528
  readonly self_video: boolean
@@ -5516,12 +5550,12 @@ export type GetGuildWebhooks200 = ReadonlyArray<
5516
5550
  export interface GuildWelcomeScreenChannelResponse {
5517
5551
  readonly channel_id: SnowflakeType
5518
5552
  readonly description: string
5519
- readonly emoji_id?: SnowflakeType | null | undefined
5520
- readonly emoji_name?: string | null | undefined
5553
+ readonly emoji_id: SnowflakeType | null
5554
+ readonly emoji_name: string | null
5521
5555
  }
5522
5556
 
5523
5557
  export interface GuildWelcomeScreenResponse {
5524
- readonly description?: string | null | undefined
5558
+ readonly description: string | null
5525
5559
  readonly welcome_channels: ReadonlyArray<GuildWelcomeScreenChannelResponse>
5526
5560
  }
5527
5561
 
@@ -5543,7 +5577,7 @@ export interface WelcomeScreenPatchRequestPartial {
5543
5577
 
5544
5578
  export interface WidgetSettingsResponse {
5545
5579
  readonly enabled: boolean
5546
- readonly channel_id?: SnowflakeType | null | undefined
5580
+ readonly channel_id: SnowflakeType | null
5547
5581
  }
5548
5582
 
5549
5583
  export interface UpdateGuildWidgetSettingsRequest {
@@ -5567,7 +5601,7 @@ export interface WidgetMember {
5567
5601
  readonly id: string
5568
5602
  readonly username: string
5569
5603
  readonly discriminator: WidgetUserDiscriminator
5570
- readonly avatar?: null | undefined
5604
+ readonly avatar: null
5571
5605
  readonly status: string
5572
5606
  readonly avatar_url: string
5573
5607
  readonly activity?: WidgetActivity | undefined
@@ -5582,7 +5616,7 @@ export interface WidgetMember {
5582
5616
  export interface WidgetResponse {
5583
5617
  readonly id: SnowflakeType
5584
5618
  readonly name: string
5585
- readonly instant_invite?: string | null | undefined
5619
+ readonly instant_invite: string | null
5586
5620
  readonly channels: ReadonlyArray<WidgetChannel>
5587
5621
  readonly members: ReadonlyArray<WidgetMember>
5588
5622
  readonly presence_count: number
@@ -5630,6 +5664,7 @@ export const InteractionCallbackTypes = {
5630
5664
  APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8,
5631
5665
  MODAL: 9,
5632
5666
  LAUNCH_ACTIVITY: 12,
5667
+ SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13,
5633
5668
  } as const
5634
5669
  export type InteractionCallbackTypes =
5635
5670
  (typeof InteractionCallbackTypes)[keyof typeof InteractionCallbackTypes]
@@ -5732,6 +5767,30 @@ export interface ChannelSelectComponentForModalRequest {
5732
5767
  readonly channel_types?: ReadonlyArray<ChannelTypes> | null | undefined
5733
5768
  }
5734
5769
 
5770
+ export interface CheckboxComponentForModalRequest {
5771
+ readonly type: 23
5772
+ readonly id?: number | null | undefined
5773
+ readonly custom_id: string
5774
+ readonly default?: boolean | null | undefined
5775
+ }
5776
+
5777
+ export interface CheckboxGroupOptionForRequest {
5778
+ readonly label: string
5779
+ readonly value: string
5780
+ readonly description?: string | null | undefined
5781
+ readonly default?: boolean | null | undefined
5782
+ }
5783
+
5784
+ export interface CheckboxGroupComponentForModalRequest {
5785
+ readonly type: 22
5786
+ readonly id?: number | null | undefined
5787
+ readonly custom_id: string
5788
+ readonly min_values?: number | null | undefined
5789
+ readonly max_values?: number | null | undefined
5790
+ readonly required?: boolean | null | undefined
5791
+ readonly options: ReadonlyArray<CheckboxGroupOptionForRequest>
5792
+ }
5793
+
5735
5794
  export interface FileUploadComponentForModalRequest {
5736
5795
  readonly type: 19
5737
5796
  readonly id?: number | null | undefined
@@ -5756,6 +5815,21 @@ export interface MentionableSelectComponentForModalRequest {
5756
5815
  | undefined
5757
5816
  }
5758
5817
 
5818
+ export interface RadioGroupOptionForRequest {
5819
+ readonly label: string
5820
+ readonly value: string
5821
+ readonly description?: string | null | undefined
5822
+ readonly default?: boolean | null | undefined
5823
+ }
5824
+
5825
+ export interface RadioGroupComponentForModalRequest {
5826
+ readonly type: 21
5827
+ readonly id?: number | null | undefined
5828
+ readonly custom_id: string
5829
+ readonly required?: boolean | null | undefined
5830
+ readonly options: ReadonlyArray<RadioGroupOptionForRequest>
5831
+ }
5832
+
5759
5833
  export interface RoleSelectComponentForModalRequest {
5760
5834
  readonly type: 6
5761
5835
  readonly id?: number | null | undefined
@@ -5805,8 +5879,11 @@ export interface LabelComponentForModalRequest {
5805
5879
  readonly description?: string | null | undefined
5806
5880
  readonly component:
5807
5881
  | ChannelSelectComponentForModalRequest
5882
+ | CheckboxComponentForModalRequest
5883
+ | CheckboxGroupComponentForModalRequest
5808
5884
  | FileUploadComponentForModalRequest
5809
5885
  | MentionableSelectComponentForModalRequest
5886
+ | RadioGroupComponentForModalRequest
5810
5887
  | RoleSelectComponentForModalRequest
5811
5888
  | StringSelectComponentForModalRequest
5812
5889
  | TextInputComponentForModalRequest
@@ -5838,6 +5915,15 @@ export interface PongInteractionCallbackRequest {
5838
5915
  readonly type: 1
5839
5916
  }
5840
5917
 
5918
+ export interface SocialLayerSKUPurchaseEligibilityCallbackData {
5919
+ readonly eligible: boolean
5920
+ }
5921
+
5922
+ export interface SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest {
5923
+ readonly type: 13
5924
+ readonly data: SocialLayerSKUPurchaseEligibilityCallbackData
5925
+ }
5926
+
5841
5927
  export interface IncomingWebhookUpdateForInteractionCallbackRequestPartial {
5842
5928
  readonly content?: string | null | undefined
5843
5929
  readonly embeds?: ReadonlyArray<RichEmbed> | null | undefined
@@ -5875,6 +5961,7 @@ export type CreateInteractionResponseRequest =
5875
5961
  | LaunchActivityInteractionCallbackRequest
5876
5962
  | ModalInteractionCallbackRequest
5877
5963
  | PongInteractionCallbackRequest
5964
+ | SocialLayerSKUPurchaseEligibilityInteractionCallbackRequest
5878
5965
  | UpdateMessageInteractionCallbackRequest
5879
5966
 
5880
5967
  export interface InteractionResponse {
@@ -5925,6 +6012,58 @@ export type InviteRevoke200 =
5925
6012
  | GroupDMInviteResponse
5926
6013
  | GuildInviteResponse
5927
6014
 
6015
+ export interface UpdateInviteTargetUsersRequest {
6016
+ readonly target_users_file: Blob
6017
+ }
6018
+
6019
+ export const TargetUsersJobStatusTypes = {
6020
+ /**
6021
+ * The default value.
6022
+ */
6023
+ UNSPECIFIED: 0,
6024
+ /**
6025
+ * The job is still being processed.
6026
+ */
6027
+ PROCESSING: 1,
6028
+ /**
6029
+ * The job has been completed successfully.
6030
+ */
6031
+ COMPLETED: 2,
6032
+ /**
6033
+ * The job has failed, see error_message field for more details.
6034
+ */
6035
+ FAILED: 3,
6036
+ } as const
6037
+ export type TargetUsersJobStatusTypes =
6038
+ (typeof TargetUsersJobStatusTypes)[keyof typeof TargetUsersJobStatusTypes]
6039
+
6040
+ export interface TargetUsersJobStatusResponse {
6041
+ /**
6042
+ * The status of the job processing the target users.
6043
+ */
6044
+ readonly status: TargetUsersJobStatusTypes
6045
+ /**
6046
+ * The total number of users in the provided list.
6047
+ */
6048
+ readonly total_users: UInt32Type
6049
+ /**
6050
+ * The number of users processed so far.
6051
+ */
6052
+ readonly processed_users: UInt32Type
6053
+ /**
6054
+ * The timestamp when the job was created.
6055
+ */
6056
+ readonly created_at: string | null
6057
+ /**
6058
+ * The timestamp when the job was successfully completed.
6059
+ */
6060
+ readonly completed_at: string | null
6061
+ /**
6062
+ * The error message if the job failed.
6063
+ */
6064
+ readonly error_message: string | null
6065
+ }
6066
+
5928
6067
  export type CreateOrJoinLobbyRequestFlagsEnum = 1
5929
6068
 
5930
6069
  export interface CreateOrJoinLobbyRequest {
@@ -5937,14 +6076,14 @@ export interface CreateOrJoinLobbyRequest {
5937
6076
 
5938
6077
  export interface LobbyMemberResponse {
5939
6078
  readonly id: SnowflakeType
5940
- readonly metadata?: Record<string, unknown> | null | undefined
6079
+ readonly metadata: Record<string, unknown> | null
5941
6080
  readonly flags: number
5942
6081
  }
5943
6082
 
5944
6083
  export interface LobbyResponse {
5945
6084
  readonly id: SnowflakeType
5946
6085
  readonly application_id: SnowflakeType
5947
- readonly metadata?: Record<string, unknown> | null | undefined
6086
+ readonly metadata: Record<string, unknown> | null
5948
6087
  readonly members: ReadonlyArray<LobbyMemberResponse>
5949
6088
  readonly linked_channel?: GuildChannelResponse | undefined
5950
6089
  readonly flags: UInt32Type
@@ -6020,6 +6159,7 @@ export interface LobbyMessageResponse {
6020
6159
  readonly channel_id: SnowflakeType
6021
6160
  readonly author: UserResponse
6022
6161
  readonly metadata?: Record<string, unknown> | undefined
6162
+ readonly moderation_metadata?: Record<string, unknown> | undefined
6023
6163
  readonly flags: number
6024
6164
  readonly application_id?: SnowflakeType | undefined
6025
6165
  }
@@ -6053,13 +6193,20 @@ export interface SDKMessageRequest {
6053
6193
  | CustomClientThemeShareRequest
6054
6194
  | null
6055
6195
  | undefined
6056
- readonly confetti_potion?: ConfettiPotionCreateRequest | null | undefined
6057
6196
  readonly message_reference?: MessageReferenceRequest | null | undefined
6058
6197
  readonly nonce?: number | string | null | undefined
6059
6198
  readonly enforce_nonce?: boolean | null | undefined
6060
6199
  readonly tts?: boolean | null | undefined
6061
6200
  }
6062
6201
 
6202
+ /**
6203
+ * The moderation metadata attached to the message
6204
+ */
6205
+ export type UpdateLobbyMessageExternalModerationMetadataRequest = Record<
6206
+ string,
6207
+ unknown
6208
+ >
6209
+
6063
6210
  export interface OAuth2GetAuthorizationResponse {
6064
6211
  readonly application: ApplicationResponse
6065
6212
  readonly expires: string
@@ -6090,6 +6237,14 @@ export interface OAuth2GetOpenIDConnectUserInfoResponse {
6090
6237
  readonly locale?: string | undefined
6091
6238
  }
6092
6239
 
6240
+ /**
6241
+ * The moderation metadata attached to the message
6242
+ */
6243
+ export type UpdateUserMessageExternalModerationMetadataRequest = Record<
6244
+ string,
6245
+ unknown
6246
+ >
6247
+
6093
6248
  export const ApplicationIdentityProviderAuthType = {
6094
6249
  OIDC: "OIDC",
6095
6250
  EPIC_ONLINE_SERVICES_ACCESS_TOKEN: "EPIC_ONLINE_SERVICES_ACCESS_TOKEN",
@@ -6168,7 +6323,7 @@ export interface StageInstanceResponse {
6168
6323
  readonly privacy_level: StageInstancesPrivacyLevels
6169
6324
  readonly id: SnowflakeType
6170
6325
  readonly discoverable_disabled: boolean
6171
- readonly guild_scheduled_event_id?: SnowflakeType | null | undefined
6326
+ readonly guild_scheduled_event_id: SnowflakeType | null
6172
6327
  }
6173
6328
 
6174
6329
  export interface UpdateStageInstanceRequest {
@@ -6180,7 +6335,7 @@ export interface StickerPackResponse {
6180
6335
  readonly id: SnowflakeType
6181
6336
  readonly sku_id: SnowflakeType
6182
6337
  readonly name: string
6183
- readonly description?: string | null | undefined
6338
+ readonly description: string | null
6184
6339
  readonly stickers: ReadonlyArray<StandardStickerResponse>
6185
6340
  readonly cover_sticker_id?: SnowflakeType | undefined
6186
6341
  readonly banner_asset_id?: SnowflakeType | undefined
@@ -6215,7 +6370,7 @@ export type PremiumTypes = (typeof PremiumTypes)[keyof typeof PremiumTypes]
6215
6370
  export interface UserPIIResponse {
6216
6371
  readonly id: SnowflakeType
6217
6372
  readonly username: string
6218
- readonly avatar?: string | null | undefined
6373
+ readonly avatar: string | null
6219
6374
  readonly discriminator: string
6220
6375
  readonly public_flags: number
6221
6376
  readonly flags: Int53Type
@@ -6223,7 +6378,7 @@ export interface UserPIIResponse {
6223
6378
  readonly system?: boolean | undefined
6224
6379
  readonly banner?: string | null | undefined
6225
6380
  readonly accent_color?: number | null | undefined
6226
- readonly global_name?: string | null | undefined
6381
+ readonly global_name: string | null
6227
6382
  readonly avatar_decoration_data?:
6228
6383
  | UserAvatarDecorationResponse
6229
6384
  | null
@@ -6243,6 +6398,14 @@ export interface BotAccountPatchRequest {
6243
6398
  readonly banner?: string | null | undefined
6244
6399
  }
6245
6400
 
6401
+ export interface GetCurrentUserApplicationEntitlementsParams {
6402
+ readonly sku_ids?: string | ReadonlyArray<null | SnowflakeType> | undefined
6403
+ readonly exclude_consumed?: boolean | undefined
6404
+ }
6405
+
6406
+ export type GetCurrentUserApplicationEntitlements200 =
6407
+ ReadonlyArray<null | EntitlementResponse>
6408
+
6246
6409
  export interface ApplicationUserRoleConnectionResponse {
6247
6410
  readonly platform_name?: string | null | undefined
6248
6411
  readonly platform_username?: string | null | undefined
@@ -6295,7 +6458,7 @@ export type ConnectedAccountProviders =
6295
6458
  export interface ConnectedAccountGuildResponse {
6296
6459
  readonly id: SnowflakeType
6297
6460
  readonly name: string
6298
- readonly icon?: string | null | undefined
6461
+ readonly icon: string | null
6299
6462
  }
6300
6463
 
6301
6464
  export interface ConnectedAccountIntegrationResponse {
@@ -6314,7 +6477,7 @@ export type ConnectedAccountVisibility =
6314
6477
 
6315
6478
  export interface ConnectedAccountResponse {
6316
6479
  readonly id: string
6317
- readonly name?: string | null | undefined
6480
+ readonly name: string | null
6318
6481
  readonly type: ConnectedAccountProviders
6319
6482
  readonly friend_sync: boolean
6320
6483
  readonly integrations?:
@@ -6339,8 +6502,8 @@ export interface ListMyGuildsParams {
6339
6502
  export interface MyGuildResponse {
6340
6503
  readonly id: SnowflakeType
6341
6504
  readonly name: string
6342
- readonly icon?: string | null | undefined
6343
- readonly banner?: string | null | undefined
6505
+ readonly icon: string | null
6506
+ readonly banner: string | null
6344
6507
  readonly owner: boolean
6345
6508
  readonly permissions: string
6346
6509
  readonly features: ReadonlyArray<GuildFeatures>
@@ -6655,14 +6818,15 @@ export const make = (
6655
6818
  Effect.orElseSucceed(response.json, () => "Unexpected status code"),
6656
6819
  description =>
6657
6820
  Effect.fail(
6658
- new HttpClientError.ResponseError({
6659
- request: response.request,
6660
- response,
6661
- reason: "StatusCode",
6662
- description:
6663
- typeof description === "string"
6664
- ? description
6665
- : JSON.stringify(description),
6821
+ new HttpClientError.HttpClientError({
6822
+ reason: new HttpClientError.StatusCodeError({
6823
+ request: response.request,
6824
+ response,
6825
+ description:
6826
+ typeof description === "string"
6827
+ ? description
6828
+ : JSON.stringify(description),
6829
+ }),
6666
6830
  }),
6667
6831
  ),
6668
6832
  )
@@ -6680,7 +6844,7 @@ export const make = (
6680
6844
  )
6681
6845
  : f => request => Effect.flatMap(httpClient.execute(request), f)
6682
6846
  const decodeSuccess = <A>(response: HttpClientResponse.HttpClientResponse) =>
6683
- response.json as Effect.Effect<A, HttpClientError.ResponseError>
6847
+ response.json as Effect.Effect<A, HttpClientError.HttpClientError>
6684
6848
  const decodeVoid = (_response: HttpClientResponse.HttpClientResponse) =>
6685
6849
  Effect.void
6686
6850
  const decodeError =
@@ -6689,10 +6853,10 @@ export const make = (
6689
6853
  response: HttpClientResponse.HttpClientResponse,
6690
6854
  ): Effect.Effect<
6691
6855
  never,
6692
- DiscordRestError<Tag, E> | HttpClientError.ResponseError
6856
+ DiscordRestError<Tag, E> | HttpClientError.HttpClientError
6693
6857
  > =>
6694
6858
  Effect.flatMap(
6695
- response.json as Effect.Effect<E, HttpClientError.ResponseError>,
6859
+ response.json as Effect.Effect<E, HttpClientError.HttpClientError>,
6696
6860
  cause => Effect.fail(DiscordRestError(tag, cause, response)),
6697
6861
  )
6698
6862
  const onRequest = (
@@ -6724,7 +6888,7 @@ export const make = (
6724
6888
  ),
6725
6889
  updateMyApplication: options =>
6726
6890
  HttpClientRequest.patch(`/applications/@me`).pipe(
6727
- HttpClientRequest.bodyUnsafeJson(options),
6891
+ HttpClientRequest.bodyJsonUnsafe(options),
6728
6892
  onRequest(["2xx"], {
6729
6893
  "429": "RatelimitedResponse",
6730
6894
  "4xx": "ErrorResponse",
@@ -6739,7 +6903,7 @@ export const make = (
6739
6903
  ),
6740
6904
  updateApplication: (applicationId, options) =>
6741
6905
  HttpClientRequest.patch(`/applications/${applicationId}`).pipe(
6742
- HttpClientRequest.bodyUnsafeJson(options),
6906
+ HttpClientRequest.bodyJsonUnsafe(options),
6743
6907
  onRequest(["2xx"], {
6744
6908
  "429": "RatelimitedResponse",
6745
6909
  "4xx": "ErrorResponse",
@@ -6774,7 +6938,7 @@ export const make = (
6774
6938
  ),
6775
6939
  bulkSetApplicationCommands: (applicationId, options) =>
6776
6940
  HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(
6777
- HttpClientRequest.bodyUnsafeJson(options),
6941
+ HttpClientRequest.bodyJsonUnsafe(options),
6778
6942
  onRequest(["2xx"], {
6779
6943
  "429": "RatelimitedResponse",
6780
6944
  "4xx": "ErrorResponse",
@@ -6782,7 +6946,7 @@ export const make = (
6782
6946
  ),
6783
6947
  createApplicationCommand: (applicationId, options) =>
6784
6948
  HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(
6785
- HttpClientRequest.bodyUnsafeJson(options),
6949
+ HttpClientRequest.bodyJsonUnsafe(options),
6786
6950
  onRequest(["200", "201"], {
6787
6951
  "429": "RatelimitedResponse",
6788
6952
  "4xx": "ErrorResponse",
@@ -6798,7 +6962,7 @@ export const make = (
6798
6962
  }),
6799
6963
  ),
6800
6964
  deleteApplicationCommand: (applicationId, commandId) =>
6801
- HttpClientRequest.del(
6965
+ HttpClientRequest.delete(
6802
6966
  `/applications/${applicationId}/commands/${commandId}`,
6803
6967
  ).pipe(
6804
6968
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -6807,7 +6971,7 @@ export const make = (
6807
6971
  HttpClientRequest.patch(
6808
6972
  `/applications/${applicationId}/commands/${commandId}`,
6809
6973
  ).pipe(
6810
- HttpClientRequest.bodyUnsafeJson(options),
6974
+ HttpClientRequest.bodyJsonUnsafe(options),
6811
6975
  onRequest(["2xx"], {
6812
6976
  "429": "RatelimitedResponse",
6813
6977
  "4xx": "ErrorResponse",
@@ -6822,7 +6986,7 @@ export const make = (
6822
6986
  ),
6823
6987
  createApplicationEmoji: (applicationId, options) =>
6824
6988
  HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(
6825
- HttpClientRequest.bodyUnsafeJson(options),
6989
+ HttpClientRequest.bodyJsonUnsafe(options),
6826
6990
  onRequest(["2xx"], {
6827
6991
  "429": "RatelimitedResponse",
6828
6992
  "4xx": "ErrorResponse",
@@ -6838,7 +7002,7 @@ export const make = (
6838
7002
  }),
6839
7003
  ),
6840
7004
  deleteApplicationEmoji: (applicationId, emojiId) =>
6841
- HttpClientRequest.del(
7005
+ HttpClientRequest.delete(
6842
7006
  `/applications/${applicationId}/emojis/${emojiId}`,
6843
7007
  ).pipe(
6844
7008
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -6847,7 +7011,7 @@ export const make = (
6847
7011
  HttpClientRequest.patch(
6848
7012
  `/applications/${applicationId}/emojis/${emojiId}`,
6849
7013
  ).pipe(
6850
- HttpClientRequest.bodyUnsafeJson(options),
7014
+ HttpClientRequest.bodyJsonUnsafe(options),
6851
7015
  onRequest(["2xx"], {
6852
7016
  "429": "RatelimitedResponse",
6853
7017
  "4xx": "ErrorResponse",
@@ -6875,7 +7039,7 @@ export const make = (
6875
7039
  HttpClientRequest.post(
6876
7040
  `/applications/${applicationId}/entitlements`,
6877
7041
  ).pipe(
6878
- HttpClientRequest.bodyUnsafeJson(options),
7042
+ HttpClientRequest.bodyJsonUnsafe(options),
6879
7043
  onRequest(["2xx"], {
6880
7044
  "429": "RatelimitedResponse",
6881
7045
  "4xx": "ErrorResponse",
@@ -6891,7 +7055,7 @@ export const make = (
6891
7055
  }),
6892
7056
  ),
6893
7057
  deleteEntitlement: (applicationId, entitlementId) =>
6894
- HttpClientRequest.del(
7058
+ HttpClientRequest.delete(
6895
7059
  `/applications/${applicationId}/entitlements/${entitlementId}`,
6896
7060
  ).pipe(
6897
7061
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -6918,7 +7082,7 @@ export const make = (
6918
7082
  HttpClientRequest.put(
6919
7083
  `/applications/${applicationId}/guilds/${guildId}/commands`,
6920
7084
  ).pipe(
6921
- HttpClientRequest.bodyUnsafeJson(options),
7085
+ HttpClientRequest.bodyJsonUnsafe(options),
6922
7086
  onRequest(["2xx"], {
6923
7087
  "429": "RatelimitedResponse",
6924
7088
  "4xx": "ErrorResponse",
@@ -6928,7 +7092,7 @@ export const make = (
6928
7092
  HttpClientRequest.post(
6929
7093
  `/applications/${applicationId}/guilds/${guildId}/commands`,
6930
7094
  ).pipe(
6931
- HttpClientRequest.bodyUnsafeJson(options),
7095
+ HttpClientRequest.bodyJsonUnsafe(options),
6932
7096
  onRequest(["200", "201"], {
6933
7097
  "429": "RatelimitedResponse",
6934
7098
  "4xx": "ErrorResponse",
@@ -6953,7 +7117,7 @@ export const make = (
6953
7117
  }),
6954
7118
  ),
6955
7119
  deleteGuildApplicationCommand: (applicationId, guildId, commandId) =>
6956
- HttpClientRequest.del(
7120
+ HttpClientRequest.delete(
6957
7121
  `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
6958
7122
  ).pipe(
6959
7123
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -6967,7 +7131,7 @@ export const make = (
6967
7131
  HttpClientRequest.patch(
6968
7132
  `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
6969
7133
  ).pipe(
6970
- HttpClientRequest.bodyUnsafeJson(options),
7134
+ HttpClientRequest.bodyJsonUnsafe(options),
6971
7135
  onRequest(["2xx"], {
6972
7136
  "429": "RatelimitedResponse",
6973
7137
  "4xx": "ErrorResponse",
@@ -6995,7 +7159,7 @@ export const make = (
6995
7159
  HttpClientRequest.put(
6996
7160
  `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
6997
7161
  ).pipe(
6998
- HttpClientRequest.bodyUnsafeJson(options),
7162
+ HttpClientRequest.bodyJsonUnsafe(options),
6999
7163
  onRequest(["2xx"], {
7000
7164
  "429": "RatelimitedResponse",
7001
7165
  "4xx": "ErrorResponse",
@@ -7014,7 +7178,7 @@ export const make = (
7014
7178
  HttpClientRequest.put(
7015
7179
  `/applications/${applicationId}/role-connections/metadata`,
7016
7180
  ).pipe(
7017
- HttpClientRequest.bodyUnsafeJson(options),
7181
+ HttpClientRequest.bodyJsonUnsafe(options),
7018
7182
  onRequest(["2xx"], {
7019
7183
  "429": "RatelimitedResponse",
7020
7184
  "4xx": "ErrorResponse",
@@ -7028,7 +7192,7 @@ export const make = (
7028
7192
  }),
7029
7193
  ),
7030
7194
  deleteChannel: channelId =>
7031
- HttpClientRequest.del(`/channels/${channelId}`).pipe(
7195
+ HttpClientRequest.delete(`/channels/${channelId}`).pipe(
7032
7196
  onRequest(["2xx"], {
7033
7197
  "429": "RatelimitedResponse",
7034
7198
  "4xx": "ErrorResponse",
@@ -7036,7 +7200,7 @@ export const make = (
7036
7200
  ),
7037
7201
  updateChannel: (channelId, options) =>
7038
7202
  HttpClientRequest.patch(`/channels/${channelId}`).pipe(
7039
- HttpClientRequest.bodyUnsafeJson(options),
7203
+ HttpClientRequest.bodyJsonUnsafe(options),
7040
7204
  onRequest(["2xx"], {
7041
7205
  "429": "RatelimitedResponse",
7042
7206
  "4xx": "ErrorResponse",
@@ -7044,7 +7208,7 @@ export const make = (
7044
7208
  ),
7045
7209
  followChannel: (channelId, options) =>
7046
7210
  HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(
7047
- HttpClientRequest.bodyUnsafeJson(options),
7211
+ HttpClientRequest.bodyJsonUnsafe(options),
7048
7212
  onRequest(["2xx"], {
7049
7213
  "429": "RatelimitedResponse",
7050
7214
  "4xx": "ErrorResponse",
@@ -7059,7 +7223,7 @@ export const make = (
7059
7223
  ),
7060
7224
  createChannelInvite: (channelId, options) =>
7061
7225
  HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(
7062
- HttpClientRequest.bodyUnsafeJson(options),
7226
+ HttpClientRequest.bodyJsonUnsafe(options),
7063
7227
  onRequest(["2xx"], {
7064
7228
  "429": "RatelimitedResponse",
7065
7229
  "4xx": "ErrorResponse",
@@ -7080,7 +7244,7 @@ export const make = (
7080
7244
  ),
7081
7245
  createMessage: (channelId, options) =>
7082
7246
  HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(
7083
- HttpClientRequest.bodyUnsafeJson(options),
7247
+ HttpClientRequest.bodyJsonUnsafe(options),
7084
7248
  onRequest(["2xx"], {
7085
7249
  "429": "RatelimitedResponse",
7086
7250
  "4xx": "ErrorResponse",
@@ -7090,7 +7254,7 @@ export const make = (
7090
7254
  HttpClientRequest.post(
7091
7255
  `/channels/${channelId}/messages/bulk-delete`,
7092
7256
  ).pipe(
7093
- HttpClientRequest.bodyUnsafeJson(options),
7257
+ HttpClientRequest.bodyJsonUnsafe(options),
7094
7258
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7095
7259
  ),
7096
7260
  listPins: (channelId, options) =>
@@ -7111,7 +7275,7 @@ export const make = (
7111
7275
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7112
7276
  ),
7113
7277
  deletePin: (channelId, messageId) =>
7114
- HttpClientRequest.del(
7278
+ HttpClientRequest.delete(
7115
7279
  `/channels/${channelId}/messages/pins/${messageId}`,
7116
7280
  ).pipe(
7117
7281
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7126,7 +7290,7 @@ export const make = (
7126
7290
  }),
7127
7291
  ),
7128
7292
  deleteMessage: (channelId, messageId) =>
7129
- HttpClientRequest.del(
7293
+ HttpClientRequest.delete(
7130
7294
  `/channels/${channelId}/messages/${messageId}`,
7131
7295
  ).pipe(
7132
7296
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7135,7 +7299,7 @@ export const make = (
7135
7299
  HttpClientRequest.patch(
7136
7300
  `/channels/${channelId}/messages/${messageId}`,
7137
7301
  ).pipe(
7138
- HttpClientRequest.bodyUnsafeJson(options),
7302
+ HttpClientRequest.bodyJsonUnsafe(options),
7139
7303
  onRequest(["2xx"], {
7140
7304
  "429": "RatelimitedResponse",
7141
7305
  "4xx": "ErrorResponse",
@@ -7151,7 +7315,7 @@ export const make = (
7151
7315
  }),
7152
7316
  ),
7153
7317
  deleteAllMessageReactions: (channelId, messageId) =>
7154
- HttpClientRequest.del(
7318
+ HttpClientRequest.delete(
7155
7319
  `/channels/${channelId}/messages/${messageId}/reactions`,
7156
7320
  ).pipe(
7157
7321
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7171,7 +7335,7 @@ export const make = (
7171
7335
  }),
7172
7336
  ),
7173
7337
  deleteAllMessageReactionsByEmoji: (channelId, messageId, emojiName) =>
7174
- HttpClientRequest.del(
7338
+ HttpClientRequest.delete(
7175
7339
  `/channels/${channelId}/messages/${messageId}/reactions/${emojiName}`,
7176
7340
  ).pipe(
7177
7341
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7183,13 +7347,13 @@ export const make = (
7183
7347
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7184
7348
  ),
7185
7349
  deleteMyMessageReaction: (channelId, messageId, emojiName) =>
7186
- HttpClientRequest.del(
7350
+ HttpClientRequest.delete(
7187
7351
  `/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/@me`,
7188
7352
  ).pipe(
7189
7353
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7190
7354
  ),
7191
7355
  deleteUserMessageReaction: (channelId, messageId, emojiName, userId) =>
7192
- HttpClientRequest.del(
7356
+ HttpClientRequest.delete(
7193
7357
  `/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/${userId}`,
7194
7358
  ).pipe(
7195
7359
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7198,7 +7362,7 @@ export const make = (
7198
7362
  HttpClientRequest.post(
7199
7363
  `/channels/${channelId}/messages/${messageId}/threads`,
7200
7364
  ).pipe(
7201
- HttpClientRequest.bodyUnsafeJson(options),
7365
+ HttpClientRequest.bodyJsonUnsafe(options),
7202
7366
  onRequest(["2xx"], {
7203
7367
  "429": "RatelimitedResponse",
7204
7368
  "4xx": "ErrorResponse",
@@ -7208,11 +7372,11 @@ export const make = (
7208
7372
  HttpClientRequest.put(
7209
7373
  `/channels/${channelId}/permissions/${overwriteId}`,
7210
7374
  ).pipe(
7211
- HttpClientRequest.bodyUnsafeJson(options),
7375
+ HttpClientRequest.bodyJsonUnsafe(options),
7212
7376
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7213
7377
  ),
7214
7378
  deleteChannelPermissionOverwrite: (channelId, overwriteId) =>
7215
- HttpClientRequest.del(
7379
+ HttpClientRequest.delete(
7216
7380
  `/channels/${channelId}/permissions/${overwriteId}`,
7217
7381
  ).pipe(
7218
7382
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7229,7 +7393,7 @@ export const make = (
7229
7393
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7230
7394
  ),
7231
7395
  deprecatedDeletePin: (channelId, messageId) =>
7232
- HttpClientRequest.del(`/channels/${channelId}/pins/${messageId}`).pipe(
7396
+ HttpClientRequest.delete(`/channels/${channelId}/pins/${messageId}`).pipe(
7233
7397
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7234
7398
  ),
7235
7399
  getAnswerVoters: (channelId, messageId, answerId, options) =>
@@ -7256,21 +7420,23 @@ export const make = (
7256
7420
  ),
7257
7421
  addGroupDmUser: (channelId, userId, options) =>
7258
7422
  HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(
7259
- HttpClientRequest.bodyUnsafeJson(options),
7423
+ HttpClientRequest.bodyJsonUnsafe(options),
7260
7424
  onRequest(["2xx"], {
7261
7425
  "429": "RatelimitedResponse",
7262
7426
  "4xx": "ErrorResponse",
7263
7427
  }),
7264
7428
  ),
7265
7429
  deleteGroupDmUser: (channelId, userId) =>
7266
- HttpClientRequest.del(`/channels/${channelId}/recipients/${userId}`).pipe(
7430
+ HttpClientRequest.delete(
7431
+ `/channels/${channelId}/recipients/${userId}`,
7432
+ ).pipe(
7267
7433
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7268
7434
  ),
7269
7435
  sendSoundboardSound: (channelId, options) =>
7270
7436
  HttpClientRequest.post(
7271
7437
  `/channels/${channelId}/send-soundboard-sound`,
7272
7438
  ).pipe(
7273
- HttpClientRequest.bodyUnsafeJson(options),
7439
+ HttpClientRequest.bodyJsonUnsafe(options),
7274
7440
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7275
7441
  ),
7276
7442
  listThreadMembers: (channelId, options) =>
@@ -7290,7 +7456,9 @@ export const make = (
7290
7456
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7291
7457
  ),
7292
7458
  leaveThread: channelId =>
7293
- HttpClientRequest.del(`/channels/${channelId}/thread-members/@me`).pipe(
7459
+ HttpClientRequest.delete(
7460
+ `/channels/${channelId}/thread-members/@me`,
7461
+ ).pipe(
7294
7462
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7295
7463
  ),
7296
7464
  getThreadMember: (channelId, userId, options) =>
@@ -7312,14 +7480,14 @@ export const make = (
7312
7480
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7313
7481
  ),
7314
7482
  deleteThreadMember: (channelId, userId) =>
7315
- HttpClientRequest.del(
7483
+ HttpClientRequest.delete(
7316
7484
  `/channels/${channelId}/thread-members/${userId}`,
7317
7485
  ).pipe(
7318
7486
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7319
7487
  ),
7320
7488
  createThread: (channelId, options) =>
7321
7489
  HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(
7322
- HttpClientRequest.bodyUnsafeJson(options),
7490
+ HttpClientRequest.bodyJsonUnsafe(options),
7323
7491
  onRequest(["2xx"], {
7324
7492
  "429": "RatelimitedResponse",
7325
7493
  "4xx": "ErrorResponse",
@@ -7400,7 +7568,7 @@ export const make = (
7400
7568
  ),
7401
7569
  createWebhook: (channelId, options) =>
7402
7570
  HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(
7403
- HttpClientRequest.bodyUnsafeJson(options),
7571
+ HttpClientRequest.bodyJsonUnsafe(options),
7404
7572
  onRequest(["2xx"], {
7405
7573
  "429": "RatelimitedResponse",
7406
7574
  "4xx": "ErrorResponse",
@@ -7439,7 +7607,7 @@ export const make = (
7439
7607
  ),
7440
7608
  updateGuild: (guildId, options) =>
7441
7609
  HttpClientRequest.patch(`/guilds/${guildId}`).pipe(
7442
- HttpClientRequest.bodyUnsafeJson(options),
7610
+ HttpClientRequest.bodyJsonUnsafe(options),
7443
7611
  onRequest(["2xx"], {
7444
7612
  "429": "RatelimitedResponse",
7445
7613
  "4xx": "ErrorResponse",
@@ -7469,7 +7637,7 @@ export const make = (
7469
7637
  ),
7470
7638
  createAutoModerationRule: (guildId, options) =>
7471
7639
  HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(
7472
- HttpClientRequest.bodyUnsafeJson(options),
7640
+ HttpClientRequest.bodyJsonUnsafe(options),
7473
7641
  onRequest(["2xx"], {
7474
7642
  "429": "RatelimitedResponse",
7475
7643
  "4xx": "ErrorResponse",
@@ -7485,7 +7653,7 @@ export const make = (
7485
7653
  }),
7486
7654
  ),
7487
7655
  deleteAutoModerationRule: (guildId, ruleId) =>
7488
- HttpClientRequest.del(
7656
+ HttpClientRequest.delete(
7489
7657
  `/guilds/${guildId}/auto-moderation/rules/${ruleId}`,
7490
7658
  ).pipe(
7491
7659
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7494,7 +7662,7 @@ export const make = (
7494
7662
  HttpClientRequest.patch(
7495
7663
  `/guilds/${guildId}/auto-moderation/rules/${ruleId}`,
7496
7664
  ).pipe(
7497
- HttpClientRequest.bodyUnsafeJson(options),
7665
+ HttpClientRequest.bodyJsonUnsafe(options),
7498
7666
  onRequest(["2xx"], {
7499
7667
  "429": "RatelimitedResponse",
7500
7668
  "4xx": "ErrorResponse",
@@ -7521,17 +7689,17 @@ export const make = (
7521
7689
  ),
7522
7690
  banUserFromGuild: (guildId, userId, options) =>
7523
7691
  HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(
7524
- HttpClientRequest.bodyUnsafeJson(options),
7692
+ HttpClientRequest.bodyJsonUnsafe(options),
7525
7693
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7526
7694
  ),
7527
7695
  unbanUserFromGuild: (guildId, userId, options) =>
7528
- HttpClientRequest.del(`/guilds/${guildId}/bans/${userId}`).pipe(
7529
- HttpClientRequest.bodyUnsafeJson(options),
7696
+ HttpClientRequest.delete(`/guilds/${guildId}/bans/${userId}`).pipe(
7697
+ HttpClientRequest.bodyJsonUnsafe(options),
7530
7698
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7531
7699
  ),
7532
7700
  bulkBanUsersFromGuild: (guildId, options) =>
7533
7701
  HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(
7534
- HttpClientRequest.bodyUnsafeJson(options),
7702
+ HttpClientRequest.bodyJsonUnsafe(options),
7535
7703
  onRequest(["2xx"], {
7536
7704
  "429": "RatelimitedResponse",
7537
7705
  "4xx": "ErrorResponse",
@@ -7546,7 +7714,7 @@ export const make = (
7546
7714
  ),
7547
7715
  createGuildChannel: (guildId, options) =>
7548
7716
  HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(
7549
- HttpClientRequest.bodyUnsafeJson(options),
7717
+ HttpClientRequest.bodyJsonUnsafe(options),
7550
7718
  onRequest(["2xx"], {
7551
7719
  "429": "RatelimitedResponse",
7552
7720
  "4xx": "ErrorResponse",
@@ -7554,7 +7722,7 @@ export const make = (
7554
7722
  ),
7555
7723
  bulkUpdateGuildChannels: (guildId, options) =>
7556
7724
  HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(
7557
- HttpClientRequest.bodyUnsafeJson(options),
7725
+ HttpClientRequest.bodyJsonUnsafe(options),
7558
7726
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7559
7727
  ),
7560
7728
  listGuildEmojis: guildId =>
@@ -7566,7 +7734,7 @@ export const make = (
7566
7734
  ),
7567
7735
  createGuildEmoji: (guildId, options) =>
7568
7736
  HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(
7569
- HttpClientRequest.bodyUnsafeJson(options),
7737
+ HttpClientRequest.bodyJsonUnsafe(options),
7570
7738
  onRequest(["2xx"], {
7571
7739
  "429": "RatelimitedResponse",
7572
7740
  "4xx": "ErrorResponse",
@@ -7580,12 +7748,12 @@ export const make = (
7580
7748
  }),
7581
7749
  ),
7582
7750
  deleteGuildEmoji: (guildId, emojiId) =>
7583
- HttpClientRequest.del(`/guilds/${guildId}/emojis/${emojiId}`).pipe(
7751
+ HttpClientRequest.delete(`/guilds/${guildId}/emojis/${emojiId}`).pipe(
7584
7752
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7585
7753
  ),
7586
7754
  updateGuildEmoji: (guildId, emojiId, options) =>
7587
7755
  HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(
7588
- HttpClientRequest.bodyUnsafeJson(options),
7756
+ HttpClientRequest.bodyJsonUnsafe(options),
7589
7757
  onRequest(["2xx"], {
7590
7758
  "429": "RatelimitedResponse",
7591
7759
  "4xx": "ErrorResponse",
@@ -7599,7 +7767,7 @@ export const make = (
7599
7767
  }),
7600
7768
  ),
7601
7769
  deleteGuildIntegration: (guildId, integrationId) =>
7602
- HttpClientRequest.del(
7770
+ HttpClientRequest.delete(
7603
7771
  `/guilds/${guildId}/integrations/${integrationId}`,
7604
7772
  ).pipe(
7605
7773
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7624,7 +7792,7 @@ export const make = (
7624
7792
  ),
7625
7793
  updateMyGuildMember: (guildId, options) =>
7626
7794
  HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(
7627
- HttpClientRequest.bodyUnsafeJson(options),
7795
+ HttpClientRequest.bodyJsonUnsafe(options),
7628
7796
  onRequest(["2xx"], {
7629
7797
  "429": "RatelimitedResponse",
7630
7798
  "4xx": "ErrorResponse",
@@ -7650,19 +7818,19 @@ export const make = (
7650
7818
  ),
7651
7819
  addGuildMember: (guildId, userId, options) =>
7652
7820
  HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(
7653
- HttpClientRequest.bodyUnsafeJson(options),
7821
+ HttpClientRequest.bodyJsonUnsafe(options),
7654
7822
  onRequest(["2xx"], {
7655
7823
  "429": "RatelimitedResponse",
7656
7824
  "4xx": "ErrorResponse",
7657
7825
  }),
7658
7826
  ),
7659
7827
  deleteGuildMember: (guildId, userId) =>
7660
- HttpClientRequest.del(`/guilds/${guildId}/members/${userId}`).pipe(
7828
+ HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}`).pipe(
7661
7829
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7662
7830
  ),
7663
7831
  updateGuildMember: (guildId, userId, options) =>
7664
7832
  HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(
7665
- HttpClientRequest.bodyUnsafeJson(options),
7833
+ HttpClientRequest.bodyJsonUnsafe(options),
7666
7834
  onRequest(["2xx"], {
7667
7835
  "429": "RatelimitedResponse",
7668
7836
  "4xx": "ErrorResponse",
@@ -7675,7 +7843,7 @@ export const make = (
7675
7843
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7676
7844
  ),
7677
7845
  deleteGuildMemberRole: (guildId, userId, roleId) =>
7678
- HttpClientRequest.del(
7846
+ HttpClientRequest.delete(
7679
7847
  `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
7680
7848
  ).pipe(
7681
7849
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7696,7 +7864,7 @@ export const make = (
7696
7864
  ),
7697
7865
  putGuildsOnboarding: (guildId, options) =>
7698
7866
  HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(
7699
- HttpClientRequest.bodyUnsafeJson(options),
7867
+ HttpClientRequest.bodyJsonUnsafe(options),
7700
7868
  onRequest(["2xx"], {
7701
7869
  "429": "RatelimitedResponse",
7702
7870
  "4xx": "ErrorResponse",
@@ -7722,7 +7890,7 @@ export const make = (
7722
7890
  ),
7723
7891
  pruneGuild: (guildId, options) =>
7724
7892
  HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(
7725
- HttpClientRequest.bodyUnsafeJson(options),
7893
+ HttpClientRequest.bodyJsonUnsafe(options),
7726
7894
  onRequest(["2xx"], {
7727
7895
  "429": "RatelimitedResponse",
7728
7896
  "4xx": "ErrorResponse",
@@ -7744,7 +7912,7 @@ export const make = (
7744
7912
  ),
7745
7913
  createGuildRole: (guildId, options) =>
7746
7914
  HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(
7747
- HttpClientRequest.bodyUnsafeJson(options),
7915
+ HttpClientRequest.bodyJsonUnsafe(options),
7748
7916
  onRequest(["2xx"], {
7749
7917
  "429": "RatelimitedResponse",
7750
7918
  "4xx": "ErrorResponse",
@@ -7752,7 +7920,14 @@ export const make = (
7752
7920
  ),
7753
7921
  bulkUpdateGuildRoles: (guildId, options) =>
7754
7922
  HttpClientRequest.patch(`/guilds/${guildId}/roles`).pipe(
7755
- HttpClientRequest.bodyUnsafeJson(options),
7923
+ HttpClientRequest.bodyJsonUnsafe(options),
7924
+ onRequest(["2xx"], {
7925
+ "429": "RatelimitedResponse",
7926
+ "4xx": "ErrorResponse",
7927
+ }),
7928
+ ),
7929
+ guildRoleMemberCounts: guildId =>
7930
+ HttpClientRequest.get(`/guilds/${guildId}/roles/member-counts`).pipe(
7756
7931
  onRequest(["2xx"], {
7757
7932
  "429": "RatelimitedResponse",
7758
7933
  "4xx": "ErrorResponse",
@@ -7766,12 +7941,12 @@ export const make = (
7766
7941
  }),
7767
7942
  ),
7768
7943
  deleteGuildRole: (guildId, roleId) =>
7769
- HttpClientRequest.del(`/guilds/${guildId}/roles/${roleId}`).pipe(
7944
+ HttpClientRequest.delete(`/guilds/${guildId}/roles/${roleId}`).pipe(
7770
7945
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7771
7946
  ),
7772
7947
  updateGuildRole: (guildId, roleId, options) =>
7773
7948
  HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(
7774
- HttpClientRequest.bodyUnsafeJson(options),
7949
+ HttpClientRequest.bodyJsonUnsafe(options),
7775
7950
  onRequest(["2xx"], {
7776
7951
  "429": "RatelimitedResponse",
7777
7952
  "4xx": "ErrorResponse",
@@ -7789,7 +7964,7 @@ export const make = (
7789
7964
  ),
7790
7965
  createGuildScheduledEvent: (guildId, options) =>
7791
7966
  HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(
7792
- HttpClientRequest.bodyUnsafeJson(options),
7967
+ HttpClientRequest.bodyJsonUnsafe(options),
7793
7968
  onRequest(["2xx"], {
7794
7969
  "429": "RatelimitedResponse",
7795
7970
  "4xx": "ErrorResponse",
@@ -7808,7 +7983,7 @@ export const make = (
7808
7983
  }),
7809
7984
  ),
7810
7985
  deleteGuildScheduledEvent: (guildId, guildScheduledEventId) =>
7811
- HttpClientRequest.del(
7986
+ HttpClientRequest.delete(
7812
7987
  `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
7813
7988
  ).pipe(
7814
7989
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7817,7 +7992,7 @@ export const make = (
7817
7992
  HttpClientRequest.patch(
7818
7993
  `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
7819
7994
  ).pipe(
7820
- HttpClientRequest.bodyUnsafeJson(options),
7995
+ HttpClientRequest.bodyJsonUnsafe(options),
7821
7996
  onRequest(["2xx"], {
7822
7997
  "429": "RatelimitedResponse",
7823
7998
  "4xx": "ErrorResponse",
@@ -7847,7 +8022,7 @@ export const make = (
7847
8022
  ),
7848
8023
  createGuildSoundboardSound: (guildId, options) =>
7849
8024
  HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(
7850
- HttpClientRequest.bodyUnsafeJson(options),
8025
+ HttpClientRequest.bodyJsonUnsafe(options),
7851
8026
  onRequest(["2xx"], {
7852
8027
  "429": "RatelimitedResponse",
7853
8028
  "4xx": "ErrorResponse",
@@ -7863,7 +8038,7 @@ export const make = (
7863
8038
  }),
7864
8039
  ),
7865
8040
  deleteGuildSoundboardSound: (guildId, soundId) =>
7866
- HttpClientRequest.del(
8041
+ HttpClientRequest.delete(
7867
8042
  `/guilds/${guildId}/soundboard-sounds/${soundId}`,
7868
8043
  ).pipe(
7869
8044
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
@@ -7872,7 +8047,7 @@ export const make = (
7872
8047
  HttpClientRequest.patch(
7873
8048
  `/guilds/${guildId}/soundboard-sounds/${soundId}`,
7874
8049
  ).pipe(
7875
- HttpClientRequest.bodyUnsafeJson(options),
8050
+ HttpClientRequest.bodyJsonUnsafe(options),
7876
8051
  onRequest(["2xx"], {
7877
8052
  "429": "RatelimitedResponse",
7878
8053
  "4xx": "ErrorResponse",
@@ -7901,12 +8076,12 @@ export const make = (
7901
8076
  }),
7902
8077
  ),
7903
8078
  deleteGuildSticker: (guildId, stickerId) =>
7904
- HttpClientRequest.del(`/guilds/${guildId}/stickers/${stickerId}`).pipe(
8079
+ HttpClientRequest.delete(`/guilds/${guildId}/stickers/${stickerId}`).pipe(
7905
8080
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7906
8081
  ),
7907
8082
  updateGuildSticker: (guildId, stickerId, options) =>
7908
8083
  HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(
7909
- HttpClientRequest.bodyUnsafeJson(options),
8084
+ HttpClientRequest.bodyJsonUnsafe(options),
7910
8085
  onRequest(["2xx"], {
7911
8086
  "429": "RatelimitedResponse",
7912
8087
  "4xx": "ErrorResponse",
@@ -7921,7 +8096,7 @@ export const make = (
7921
8096
  ),
7922
8097
  createGuildTemplate: (guildId, options) =>
7923
8098
  HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(
7924
- HttpClientRequest.bodyUnsafeJson(options),
8099
+ HttpClientRequest.bodyJsonUnsafe(options),
7925
8100
  onRequest(["2xx"], {
7926
8101
  "429": "RatelimitedResponse",
7927
8102
  "4xx": "ErrorResponse",
@@ -7935,7 +8110,7 @@ export const make = (
7935
8110
  }),
7936
8111
  ),
7937
8112
  deleteGuildTemplate: (guildId, code) =>
7938
- HttpClientRequest.del(`/guilds/${guildId}/templates/${code}`).pipe(
8113
+ HttpClientRequest.delete(`/guilds/${guildId}/templates/${code}`).pipe(
7939
8114
  onRequest(["2xx"], {
7940
8115
  "429": "RatelimitedResponse",
7941
8116
  "4xx": "ErrorResponse",
@@ -7943,7 +8118,7 @@ export const make = (
7943
8118
  ),
7944
8119
  updateGuildTemplate: (guildId, code, options) =>
7945
8120
  HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(
7946
- HttpClientRequest.bodyUnsafeJson(options),
8121
+ HttpClientRequest.bodyJsonUnsafe(options),
7947
8122
  onRequest(["2xx"], {
7948
8123
  "429": "RatelimitedResponse",
7949
8124
  "4xx": "ErrorResponse",
@@ -7972,7 +8147,7 @@ export const make = (
7972
8147
  ),
7973
8148
  updateSelfVoiceState: (guildId, options) =>
7974
8149
  HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(
7975
- HttpClientRequest.bodyUnsafeJson(options),
8150
+ HttpClientRequest.bodyJsonUnsafe(options),
7976
8151
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7977
8152
  ),
7978
8153
  getVoiceState: (guildId, userId) =>
@@ -7984,7 +8159,7 @@ export const make = (
7984
8159
  ),
7985
8160
  updateVoiceState: (guildId, userId, options) =>
7986
8161
  HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(
7987
- HttpClientRequest.bodyUnsafeJson(options),
8162
+ HttpClientRequest.bodyJsonUnsafe(options),
7988
8163
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
7989
8164
  ),
7990
8165
  getGuildWebhooks: guildId =>
@@ -8003,7 +8178,7 @@ export const make = (
8003
8178
  ),
8004
8179
  updateGuildWelcomeScreen: (guildId, options) =>
8005
8180
  HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(
8006
- HttpClientRequest.bodyUnsafeJson(options),
8181
+ HttpClientRequest.bodyJsonUnsafe(options),
8007
8182
  onRequest(["2xx"], {
8008
8183
  "429": "RatelimitedResponse",
8009
8184
  "4xx": "ErrorResponse",
@@ -8018,7 +8193,7 @@ export const make = (
8018
8193
  ),
8019
8194
  updateGuildWidgetSettings: (guildId, options) =>
8020
8195
  HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(
8021
- HttpClientRequest.bodyUnsafeJson(options),
8196
+ HttpClientRequest.bodyJsonUnsafe(options),
8022
8197
  onRequest(["2xx"], {
8023
8198
  "429": "RatelimitedResponse",
8024
8199
  "4xx": "ErrorResponse",
@@ -8043,7 +8218,7 @@ export const make = (
8043
8218
  HttpClientRequest.setUrlParams({
8044
8219
  with_response: options.params?.["with_response"] as any,
8045
8220
  }),
8046
- HttpClientRequest.bodyUnsafeJson(options.payload),
8221
+ HttpClientRequest.bodyJsonUnsafe(options.payload),
8047
8222
  onRequest(["2xx"], {
8048
8223
  "429": "RatelimitedResponse",
8049
8224
  "4xx": "ErrorResponse",
@@ -8063,7 +8238,23 @@ export const make = (
8063
8238
  }),
8064
8239
  ),
8065
8240
  inviteRevoke: code =>
8066
- HttpClientRequest.del(`/invites/${code}`).pipe(
8241
+ HttpClientRequest.delete(`/invites/${code}`).pipe(
8242
+ onRequest(["2xx"], {
8243
+ "429": "RatelimitedResponse",
8244
+ "4xx": "ErrorResponse",
8245
+ }),
8246
+ ),
8247
+ getInviteTargetUsers: code =>
8248
+ HttpClientRequest.get(`/invites/${code}/target-users`).pipe(
8249
+ onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8250
+ ),
8251
+ updateInviteTargetUsers: (code, options) =>
8252
+ HttpClientRequest.put(`/invites/${code}/target-users`).pipe(
8253
+ HttpClientRequest.bodyFormDataRecord(options as any),
8254
+ onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8255
+ ),
8256
+ getInviteTargetUsersJobStatus: code =>
8257
+ HttpClientRequest.get(`/invites/${code}/target-users/job-status`).pipe(
8067
8258
  onRequest(["2xx"], {
8068
8259
  "429": "RatelimitedResponse",
8069
8260
  "4xx": "ErrorResponse",
@@ -8071,7 +8262,7 @@ export const make = (
8071
8262
  ),
8072
8263
  createOrJoinLobby: options =>
8073
8264
  HttpClientRequest.put(`/lobbies`).pipe(
8074
- HttpClientRequest.bodyUnsafeJson(options),
8265
+ HttpClientRequest.bodyJsonUnsafe(options),
8075
8266
  onRequest(["2xx"], {
8076
8267
  "429": "RatelimitedResponse",
8077
8268
  "4xx": "ErrorResponse",
@@ -8079,7 +8270,7 @@ export const make = (
8079
8270
  ),
8080
8271
  createLobby: options =>
8081
8272
  HttpClientRequest.post(`/lobbies`).pipe(
8082
- HttpClientRequest.bodyUnsafeJson(options),
8273
+ HttpClientRequest.bodyJsonUnsafe(options),
8083
8274
  onRequest(["2xx"], {
8084
8275
  "429": "RatelimitedResponse",
8085
8276
  "4xx": "ErrorResponse",
@@ -8094,7 +8285,7 @@ export const make = (
8094
8285
  ),
8095
8286
  editLobby: (lobbyId, options) =>
8096
8287
  HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(
8097
- HttpClientRequest.bodyUnsafeJson(options),
8288
+ HttpClientRequest.bodyJsonUnsafe(options),
8098
8289
  onRequest(["2xx"], {
8099
8290
  "429": "RatelimitedResponse",
8100
8291
  "4xx": "ErrorResponse",
@@ -8102,14 +8293,14 @@ export const make = (
8102
8293
  ),
8103
8294
  editLobbyChannelLink: (lobbyId, options) =>
8104
8295
  HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(
8105
- HttpClientRequest.bodyUnsafeJson(options),
8296
+ HttpClientRequest.bodyJsonUnsafe(options),
8106
8297
  onRequest(["2xx"], {
8107
8298
  "429": "RatelimitedResponse",
8108
8299
  "4xx": "ErrorResponse",
8109
8300
  }),
8110
8301
  ),
8111
8302
  leaveLobby: lobbyId =>
8112
- HttpClientRequest.del(`/lobbies/${lobbyId}/members/@me`).pipe(
8303
+ HttpClientRequest.delete(`/lobbies/${lobbyId}/members/@me`).pipe(
8113
8304
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8114
8305
  ),
8115
8306
  createLinkedLobbyGuildInviteForSelf: lobbyId =>
@@ -8121,7 +8312,7 @@ export const make = (
8121
8312
  ),
8122
8313
  bulkUpdateLobbyMembers: (lobbyId, options) =>
8123
8314
  HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(
8124
- HttpClientRequest.bodyUnsafeJson(options),
8315
+ HttpClientRequest.bodyJsonUnsafe(options),
8125
8316
  onRequest(["2xx"], {
8126
8317
  "429": "RatelimitedResponse",
8127
8318
  "4xx": "ErrorResponse",
@@ -8129,14 +8320,14 @@ export const make = (
8129
8320
  ),
8130
8321
  addLobbyMember: (lobbyId, userId, options) =>
8131
8322
  HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(
8132
- HttpClientRequest.bodyUnsafeJson(options),
8323
+ HttpClientRequest.bodyJsonUnsafe(options),
8133
8324
  onRequest(["2xx"], {
8134
8325
  "429": "RatelimitedResponse",
8135
8326
  "4xx": "ErrorResponse",
8136
8327
  }),
8137
8328
  ),
8138
8329
  deleteLobbyMember: (lobbyId, userId) =>
8139
- HttpClientRequest.del(`/lobbies/${lobbyId}/members/${userId}`).pipe(
8330
+ HttpClientRequest.delete(`/lobbies/${lobbyId}/members/${userId}`).pipe(
8140
8331
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8141
8332
  ),
8142
8333
  createLinkedLobbyGuildInviteForUser: (lobbyId, userId) =>
@@ -8158,12 +8349,23 @@ export const make = (
8158
8349
  ),
8159
8350
  createLobbyMessage: (lobbyId, options) =>
8160
8351
  HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(
8161
- HttpClientRequest.bodyUnsafeJson(options),
8352
+ HttpClientRequest.bodyJsonUnsafe(options),
8162
8353
  onRequest(["2xx"], {
8163
8354
  "429": "RatelimitedResponse",
8164
8355
  "4xx": "ErrorResponse",
8165
8356
  }),
8166
8357
  ),
8358
+ updateLobbyMessageExternalModerationMetadata: (
8359
+ lobbyId,
8360
+ messageId,
8361
+ options,
8362
+ ) =>
8363
+ HttpClientRequest.put(
8364
+ `/lobbies/${lobbyId}/messages/${messageId}/moderation-metadata`,
8365
+ ).pipe(
8366
+ HttpClientRequest.bodyJsonUnsafe(options),
8367
+ onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8368
+ ),
8167
8369
  getMyOauth2Authorization: () =>
8168
8370
  HttpClientRequest.get(`/oauth2/@me`).pipe(
8169
8371
  onRequest(["2xx"], {
@@ -8192,21 +8394,33 @@ export const make = (
8192
8394
  "4xx": "ErrorResponse",
8193
8395
  }),
8194
8396
  ),
8397
+ updateUserMessageExternalModerationMetadata: (
8398
+ userId1,
8399
+ userId2,
8400
+ messageId,
8401
+ options,
8402
+ ) =>
8403
+ HttpClientRequest.put(
8404
+ `/partner-sdk/dms/${userId1}/${userId2}/messages/${messageId}/moderation-metadata`,
8405
+ ).pipe(
8406
+ HttpClientRequest.bodyJsonUnsafe(options),
8407
+ onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8408
+ ),
8195
8409
  partnerSdkUnmergeProvisionalAccount: options =>
8196
8410
  HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge`).pipe(
8197
- HttpClientRequest.bodyUnsafeJson(options),
8411
+ HttpClientRequest.bodyJsonUnsafe(options),
8198
8412
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8199
8413
  ),
8200
8414
  botPartnerSdkUnmergeProvisionalAccount: options =>
8201
8415
  HttpClientRequest.post(
8202
8416
  `/partner-sdk/provisional-accounts/unmerge/bot`,
8203
8417
  ).pipe(
8204
- HttpClientRequest.bodyUnsafeJson(options),
8418
+ HttpClientRequest.bodyJsonUnsafe(options),
8205
8419
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8206
8420
  ),
8207
8421
  partnerSdkToken: options =>
8208
8422
  HttpClientRequest.post(`/partner-sdk/token`).pipe(
8209
- HttpClientRequest.bodyUnsafeJson(options),
8423
+ HttpClientRequest.bodyJsonUnsafe(options),
8210
8424
  onRequest(["2xx"], {
8211
8425
  "429": "RatelimitedResponse",
8212
8426
  "4xx": "ErrorResponse",
@@ -8214,7 +8428,7 @@ export const make = (
8214
8428
  ),
8215
8429
  botPartnerSdkToken: options =>
8216
8430
  HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(
8217
- HttpClientRequest.bodyUnsafeJson(options),
8431
+ HttpClientRequest.bodyJsonUnsafe(options),
8218
8432
  onRequest(["2xx"], {
8219
8433
  "429": "RatelimitedResponse",
8220
8434
  "4xx": "ErrorResponse",
@@ -8229,7 +8443,7 @@ export const make = (
8229
8443
  ),
8230
8444
  createStageInstance: options =>
8231
8445
  HttpClientRequest.post(`/stage-instances`).pipe(
8232
- HttpClientRequest.bodyUnsafeJson(options),
8446
+ HttpClientRequest.bodyJsonUnsafe(options),
8233
8447
  onRequest(["2xx"], {
8234
8448
  "429": "RatelimitedResponse",
8235
8449
  "4xx": "ErrorResponse",
@@ -8243,12 +8457,12 @@ export const make = (
8243
8457
  }),
8244
8458
  ),
8245
8459
  deleteStageInstance: channelId =>
8246
- HttpClientRequest.del(`/stage-instances/${channelId}`).pipe(
8460
+ HttpClientRequest.delete(`/stage-instances/${channelId}`).pipe(
8247
8461
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8248
8462
  ),
8249
8463
  updateStageInstance: (channelId, options) =>
8250
8464
  HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(
8251
- HttpClientRequest.bodyUnsafeJson(options),
8465
+ HttpClientRequest.bodyJsonUnsafe(options),
8252
8466
  onRequest(["2xx"], {
8253
8467
  "429": "RatelimitedResponse",
8254
8468
  "4xx": "ErrorResponse",
@@ -8284,7 +8498,20 @@ export const make = (
8284
8498
  ),
8285
8499
  updateMyUser: options =>
8286
8500
  HttpClientRequest.patch(`/users/@me`).pipe(
8287
- HttpClientRequest.bodyUnsafeJson(options),
8501
+ HttpClientRequest.bodyJsonUnsafe(options),
8502
+ onRequest(["2xx"], {
8503
+ "429": "RatelimitedResponse",
8504
+ "4xx": "ErrorResponse",
8505
+ }),
8506
+ ),
8507
+ getCurrentUserApplicationEntitlements: (applicationId, options) =>
8508
+ HttpClientRequest.get(
8509
+ `/users/@me/applications/${applicationId}/entitlements`,
8510
+ ).pipe(
8511
+ HttpClientRequest.setUrlParams({
8512
+ sku_ids: options?.["sku_ids"] as any,
8513
+ exclude_consumed: options?.["exclude_consumed"] as any,
8514
+ }),
8288
8515
  onRequest(["2xx"], {
8289
8516
  "429": "RatelimitedResponse",
8290
8517
  "4xx": "ErrorResponse",
@@ -8303,21 +8530,21 @@ export const make = (
8303
8530
  HttpClientRequest.put(
8304
8531
  `/users/@me/applications/${applicationId}/role-connection`,
8305
8532
  ).pipe(
8306
- HttpClientRequest.bodyUnsafeJson(options),
8533
+ HttpClientRequest.bodyJsonUnsafe(options),
8307
8534
  onRequest(["2xx"], {
8308
8535
  "429": "RatelimitedResponse",
8309
8536
  "4xx": "ErrorResponse",
8310
8537
  }),
8311
8538
  ),
8312
8539
  deleteApplicationUserRoleConnection: applicationId =>
8313
- HttpClientRequest.del(
8540
+ HttpClientRequest.delete(
8314
8541
  `/users/@me/applications/${applicationId}/role-connection`,
8315
8542
  ).pipe(
8316
8543
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8317
8544
  ),
8318
8545
  createDm: options =>
8319
8546
  HttpClientRequest.post(`/users/@me/channels`).pipe(
8320
- HttpClientRequest.bodyUnsafeJson(options),
8547
+ HttpClientRequest.bodyJsonUnsafe(options),
8321
8548
  onRequest(["2xx"], {
8322
8549
  "429": "RatelimitedResponse",
8323
8550
  "4xx": "ErrorResponse",
@@ -8344,7 +8571,7 @@ export const make = (
8344
8571
  }),
8345
8572
  ),
8346
8573
  leaveGuild: guildId =>
8347
- HttpClientRequest.del(`/users/@me/guilds/${guildId}`).pipe(
8574
+ HttpClientRequest.delete(`/users/@me/guilds/${guildId}`).pipe(
8348
8575
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8349
8576
  ),
8350
8577
  getMyGuildMember: guildId =>
@@ -8376,12 +8603,12 @@ export const make = (
8376
8603
  }),
8377
8604
  ),
8378
8605
  deleteWebhook: webhookId =>
8379
- HttpClientRequest.del(`/webhooks/${webhookId}`).pipe(
8606
+ HttpClientRequest.delete(`/webhooks/${webhookId}`).pipe(
8380
8607
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8381
8608
  ),
8382
8609
  updateWebhook: (webhookId, options) =>
8383
8610
  HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(
8384
- HttpClientRequest.bodyUnsafeJson(options),
8611
+ HttpClientRequest.bodyJsonUnsafe(options),
8385
8612
  onRequest(["2xx"], {
8386
8613
  "429": "RatelimitedResponse",
8387
8614
  "4xx": "ErrorResponse",
@@ -8401,19 +8628,19 @@ export const make = (
8401
8628
  thread_id: options.params?.["thread_id"] as any,
8402
8629
  with_components: options.params?.["with_components"] as any,
8403
8630
  }),
8404
- HttpClientRequest.bodyUnsafeJson(options.payload),
8631
+ HttpClientRequest.bodyJsonUnsafe(options.payload),
8405
8632
  onRequest(["2xx"], {
8406
8633
  "429": "RatelimitedResponse",
8407
8634
  "4xx": "ErrorResponse",
8408
8635
  }),
8409
8636
  ),
8410
8637
  deleteWebhookByToken: (webhookId, webhookToken) =>
8411
- HttpClientRequest.del(`/webhooks/${webhookId}/${webhookToken}`).pipe(
8638
+ HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}`).pipe(
8412
8639
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8413
8640
  ),
8414
8641
  updateWebhookByToken: (webhookId, webhookToken, options) =>
8415
8642
  HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(
8416
- HttpClientRequest.bodyUnsafeJson(options),
8643
+ HttpClientRequest.bodyJsonUnsafe(options),
8417
8644
  onRequest(["2xx"], {
8418
8645
  "429": "RatelimitedResponse",
8419
8646
  "4xx": "ErrorResponse",
@@ -8427,7 +8654,7 @@ export const make = (
8427
8654
  wait: options.params?.["wait"] as any,
8428
8655
  thread_id: options.params?.["thread_id"] as any,
8429
8656
  }),
8430
- HttpClientRequest.bodyUnsafeJson(options.payload),
8657
+ HttpClientRequest.bodyJsonUnsafe(options.payload),
8431
8658
  onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
8432
8659
  ),
8433
8660
  getOriginalWebhookMessage: (webhookId, webhookToken, options) =>
@@ -8443,7 +8670,7 @@ export const make = (
8443
8670
  }),
8444
8671
  ),
8445
8672
  deleteOriginalWebhookMessage: (webhookId, webhookToken, options) =>
8446
- HttpClientRequest.del(
8673
+ HttpClientRequest.delete(
8447
8674
  `/webhooks/${webhookId}/${webhookToken}/messages/@original`,
8448
8675
  ).pipe(
8449
8676
  HttpClientRequest.setUrlParams({
@@ -8459,7 +8686,7 @@ export const make = (
8459
8686
  thread_id: options.params?.["thread_id"] as any,
8460
8687
  with_components: options.params?.["with_components"] as any,
8461
8688
  }),
8462
- HttpClientRequest.bodyUnsafeJson(options.payload),
8689
+ HttpClientRequest.bodyJsonUnsafe(options.payload),
8463
8690
  onRequest(["2xx"], {
8464
8691
  "429": "RatelimitedResponse",
8465
8692
  "4xx": "ErrorResponse",
@@ -8478,7 +8705,7 @@ export const make = (
8478
8705
  }),
8479
8706
  ),
8480
8707
  deleteWebhookMessage: (webhookId, webhookToken, messageId, options) =>
8481
- HttpClientRequest.del(
8708
+ HttpClientRequest.delete(
8482
8709
  `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
8483
8710
  ).pipe(
8484
8711
  HttpClientRequest.setUrlParams({
@@ -8494,7 +8721,7 @@ export const make = (
8494
8721
  thread_id: options.params?.["thread_id"] as any,
8495
8722
  with_components: options.params?.["with_components"] as any,
8496
8723
  }),
8497
- HttpClientRequest.bodyUnsafeJson(options.payload),
8724
+ HttpClientRequest.bodyJsonUnsafe(options.payload),
8498
8725
  onRequest(["2xx"], {
8499
8726
  "429": "RatelimitedResponse",
8500
8727
  "4xx": "ErrorResponse",
@@ -8508,7 +8735,7 @@ export const make = (
8508
8735
  wait: options.params?.["wait"] as any,
8509
8736
  thread_id: options.params?.["thread_id"] as any,
8510
8737
  }),
8511
- HttpClientRequest.bodyUnsafeJson(options.payload),
8738
+ HttpClientRequest.bodyJsonUnsafe(options.payload),
8512
8739
  onRequest(["2xx"], {
8513
8740
  "429": "RatelimitedResponse",
8514
8741
  "4xx": "ErrorResponse",
@@ -9655,6 +9882,14 @@ export interface DiscordRest {
9655
9882
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
9656
9883
  | DiscordRestError<"ErrorResponse", ErrorResponse>
9657
9884
  >
9885
+ readonly guildRoleMemberCounts: (
9886
+ guildId: string,
9887
+ ) => Effect.Effect<
9888
+ GuildRoleMemberCounts200,
9889
+ | HttpClientError.HttpClientError
9890
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
9891
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
9892
+ >
9658
9893
  readonly getGuildRole: (
9659
9894
  guildId: string,
9660
9895
  roleId: string,
@@ -10016,6 +10251,40 @@ export interface DiscordRest {
10016
10251
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10017
10252
  | DiscordRestError<"ErrorResponse", ErrorResponse>
10018
10253
  >
10254
+ /**
10255
+ * Get the target users for an invite.
10256
+ */
10257
+ readonly getInviteTargetUsers: (
10258
+ code: string,
10259
+ ) => Effect.Effect<
10260
+ void,
10261
+ | HttpClientError.HttpClientError
10262
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10263
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
10264
+ >
10265
+ /**
10266
+ * Update the target users for an existing invite.
10267
+ */
10268
+ readonly updateInviteTargetUsers: (
10269
+ code: string,
10270
+ options: UpdateInviteTargetUsersRequest,
10271
+ ) => Effect.Effect<
10272
+ void,
10273
+ | HttpClientError.HttpClientError
10274
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10275
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
10276
+ >
10277
+ /**
10278
+ * Get the target users job status for an invite.
10279
+ */
10280
+ readonly getInviteTargetUsersJobStatus: (
10281
+ code: string,
10282
+ ) => Effect.Effect<
10283
+ TargetUsersJobStatusResponse,
10284
+ | HttpClientError.HttpClientError
10285
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10286
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
10287
+ >
10019
10288
  readonly createOrJoinLobby: (
10020
10289
  options: CreateOrJoinLobbyRequest,
10021
10290
  ) => Effect.Effect<
@@ -10129,6 +10398,19 @@ export interface DiscordRest {
10129
10398
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10130
10399
  | DiscordRestError<"ErrorResponse", ErrorResponse>
10131
10400
  >
10401
+ /**
10402
+ * Update the external moderation metadata for a lobby message.
10403
+ */
10404
+ readonly updateLobbyMessageExternalModerationMetadata: (
10405
+ lobbyId: string,
10406
+ messageId: string,
10407
+ options: UpdateLobbyMessageExternalModerationMetadataRequest,
10408
+ ) => Effect.Effect<
10409
+ void,
10410
+ | HttpClientError.HttpClientError
10411
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10412
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
10413
+ >
10132
10414
  readonly getMyOauth2Authorization: () => Effect.Effect<
10133
10415
  OAuth2GetAuthorizationResponse,
10134
10416
  | HttpClientError.HttpClientError
@@ -10153,6 +10435,20 @@ export interface DiscordRest {
10153
10435
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10154
10436
  | DiscordRestError<"ErrorResponse", ErrorResponse>
10155
10437
  >
10438
+ /**
10439
+ * Update the external moderation metadata for a user message (DM).
10440
+ */
10441
+ readonly updateUserMessageExternalModerationMetadata: (
10442
+ userId1: string,
10443
+ userId2: string,
10444
+ messageId: string,
10445
+ options: UpdateUserMessageExternalModerationMetadataRequest,
10446
+ ) => Effect.Effect<
10447
+ void,
10448
+ | HttpClientError.HttpClientError
10449
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10450
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
10451
+ >
10156
10452
  readonly partnerSdkUnmergeProvisionalAccount: (
10157
10453
  options: PartnerSdkUnmergeProvisionalAccountRequest,
10158
10454
  ) => Effect.Effect<
@@ -10260,6 +10556,15 @@ export interface DiscordRest {
10260
10556
  | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10261
10557
  | DiscordRestError<"ErrorResponse", ErrorResponse>
10262
10558
  >
10559
+ readonly getCurrentUserApplicationEntitlements: (
10560
+ applicationId: string,
10561
+ options?: GetCurrentUserApplicationEntitlementsParams | undefined,
10562
+ ) => Effect.Effect<
10563
+ GetCurrentUserApplicationEntitlements200,
10564
+ | HttpClientError.HttpClientError
10565
+ | DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
10566
+ | DiscordRestError<"ErrorResponse", ErrorResponse>
10567
+ >
10263
10568
  readonly getApplicationUserRoleConnection: (
10264
10569
  applicationId: string,
10265
10570
  ) => Effect.Effect<