discord-api-spec 10.0.181302 → 10.0.182499

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.
@@ -2926,7 +2926,7 @@ export type GuildInviteResponse = {
2926
2926
  approximate_member_count?: number | null;
2927
2927
  approximate_presence_count?: number | null;
2928
2928
  is_nickname_changeable?: boolean;
2929
- roles?: GuildRoleResponse[] | null;
2929
+ roles?: InviteGuildRoleResponse[] | null;
2930
2930
  };
2931
2931
 
2932
2932
  export type GuildMemberResponse = {
@@ -3424,6 +3424,17 @@ export type InviteGuildResponse = {
3424
3424
  premium_subscription_count: number;
3425
3425
  };
3426
3426
 
3427
+ export type InviteGuildRoleResponse = {
3428
+ id: SnowflakeType;
3429
+ name: string;
3430
+ position: number;
3431
+ color: number;
3432
+ colors: GuildRoleColorsResponse;
3433
+ icon?: string | null;
3434
+ unicode_emoji?: string | null;
3435
+ permissions?: string;
3436
+ };
3437
+
3427
3438
  export type KeywordRuleResponse = {
3428
3439
  id: SnowflakeType;
3429
3440
  guild_id: SnowflakeType;
@@ -3432,7 +3432,7 @@ export const GuildInviteResponseSchema = /* @__PURE__ */ z.strictObject({
3432
3432
  ]),
3433
3433
  is_nickname_changeable: /* @__PURE__ */ z.boolean(),
3434
3434
  roles: /* @__PURE__ */ z.union([
3435
- /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => GuildRoleResponseSchema)),
3435
+ /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => InviteGuildRoleResponseSchema)),
3436
3436
  /* @__PURE__ */ z.null(),
3437
3437
  ]),
3438
3438
  });
@@ -4371,6 +4371,17 @@ export const InviteGuildResponseSchema = /* @__PURE__ */ z.strictObject({
4371
4371
  premium_subscription_count: /* @__PURE__ */ z.int32(),
4372
4372
  });
4373
4373
 
4374
+ export const InviteGuildRoleResponseSchema = /* @__PURE__ */ z.strictObject({
4375
+ id: /* @__PURE__ */ z.lazy(() => SnowflakeTypeSchema),
4376
+ name: /* @__PURE__ */ z.string(),
4377
+ position: /* @__PURE__ */ z.int32(),
4378
+ color: /* @__PURE__ */ z.int32(),
4379
+ colors: /* @__PURE__ */ z.lazy(() => GuildRoleColorsResponseSchema),
4380
+ icon: /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.null()]),
4381
+ unicode_emoji: /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.null()]),
4382
+ permissions: /* @__PURE__ */ z.string(),
4383
+ });
4384
+
4374
4385
  export const InviteTargetTypesSchema = /* @__PURE__ */ z.union([
4375
4386
  /* @__PURE__ */ z.literal(1),
4376
4387
  /* @__PURE__ */ z.literal(2),
@@ -3053,7 +3053,7 @@ export type GuildInviteResponse = {
3053
3053
  approximate_member_count?: number | null;
3054
3054
  approximate_presence_count?: number | null;
3055
3055
  is_nickname_changeable?: boolean;
3056
- roles?: GuildRoleResponse[] | null;
3056
+ roles?: InviteGuildRoleResponse[] | null;
3057
3057
  };
3058
3058
 
3059
3059
  export type GuildMemberResponse = {
@@ -3561,6 +3561,17 @@ export type InviteGuildResponse = {
3561
3561
  premium_subscription_count: number;
3562
3562
  };
3563
3563
 
3564
+ export type InviteGuildRoleResponse = {
3565
+ id: SnowflakeType;
3566
+ name: string;
3567
+ position: number;
3568
+ color: number;
3569
+ colors: GuildRoleColorsResponse;
3570
+ icon?: string | null;
3571
+ unicode_emoji?: string | null;
3572
+ permissions?: string;
3573
+ };
3574
+
3564
3575
  export type KeywordRuleResponse = {
3565
3576
  id: SnowflakeType;
3566
3577
  guild_id: SnowflakeType;
@@ -3466,7 +3466,7 @@ export const GuildInviteResponseSchema = /* @__PURE__ */ z.strictObject({
3466
3466
  ]),
3467
3467
  is_nickname_changeable: /* @__PURE__ */ z.boolean(),
3468
3468
  roles: /* @__PURE__ */ z.union([
3469
- /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => GuildRoleResponseSchema)),
3469
+ /* @__PURE__ */ z.array(/* @__PURE__ */ z.lazy(() => InviteGuildRoleResponseSchema)),
3470
3470
  /* @__PURE__ */ z.null(),
3471
3471
  ]),
3472
3472
  });
@@ -4449,6 +4449,17 @@ export const InviteGuildResponseSchema = /* @__PURE__ */ z.strictObject({
4449
4449
  premium_subscription_count: /* @__PURE__ */ z.int32(),
4450
4450
  });
4451
4451
 
4452
+ export const InviteGuildRoleResponseSchema = /* @__PURE__ */ z.strictObject({
4453
+ id: /* @__PURE__ */ z.lazy(() => SnowflakeTypeSchema),
4454
+ name: /* @__PURE__ */ z.string(),
4455
+ position: /* @__PURE__ */ z.int32(),
4456
+ color: /* @__PURE__ */ z.int32(),
4457
+ colors: /* @__PURE__ */ z.lazy(() => GuildRoleColorsResponseSchema),
4458
+ icon: /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.null()]),
4459
+ unicode_emoji: /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.null()]),
4460
+ permissions: /* @__PURE__ */ z.string(),
4461
+ });
4462
+
4452
4463
  export const InviteTargetTypesSchema = /* @__PURE__ */ z.union([
4453
4464
  /* @__PURE__ */ z.literal(1),
4454
4465
  /* @__PURE__ */ z.literal(2),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-api-spec",
3
- "version": "10.0.181302",
3
+ "version": "10.0.182499",
4
4
  "repository": "https://github.com/RiskyMH/discord-api-spec-ts",
5
5
  "author": "RiskyMH",
6
6
  "license": "MIT",