Skip to content

Commit b10e9bb

Browse files
authored
fix(GuildIntegration): enabled and user are present on bots (#660)
1 parent a6bcb3f commit b10e9bb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

deno/payloads/v10/guild.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ export interface APIGuildIntegration {
662662
/**
663663
* Is this integration enabled
664664
*/
665-
enabled?: boolean;
665+
enabled: boolean;
666666
/**
667667
* Is this integration syncing
668668
*
@@ -698,7 +698,7 @@ export interface APIGuildIntegration {
698698
/**
699699
* User for this integration
700700
*
701-
* **This field is not provided for `discord` bot integrations.**
701+
* **Some older integrations may not have an attached user.**
702702
*
703703
* See https://discord.com/developers/docs/resources/user#user-object
704704
*/

deno/payloads/v9/guild.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ export interface APIGuildIntegration {
662662
/**
663663
* Is this integration enabled
664664
*/
665-
enabled?: boolean;
665+
enabled: boolean;
666666
/**
667667
* Is this integration syncing
668668
*
@@ -698,7 +698,7 @@ export interface APIGuildIntegration {
698698
/**
699699
* User for this integration
700700
*
701-
* **This field is not provided for `discord` bot integrations.**
701+
* **Some older integrations may not have an attached user.**
702702
*
703703
* See https://discord.com/developers/docs/resources/user#user-object
704704
*/

payloads/v10/guild.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ export interface APIGuildIntegration {
662662
/**
663663
* Is this integration enabled
664664
*/
665-
enabled?: boolean;
665+
enabled: boolean;
666666
/**
667667
* Is this integration syncing
668668
*
@@ -698,7 +698,7 @@ export interface APIGuildIntegration {
698698
/**
699699
* User for this integration
700700
*
701-
* **This field is not provided for `discord` bot integrations.**
701+
* **Some older integrations may not have an attached user.**
702702
*
703703
* See https://discord.com/developers/docs/resources/user#user-object
704704
*/

payloads/v9/guild.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ export interface APIGuildIntegration {
662662
/**
663663
* Is this integration enabled
664664
*/
665-
enabled?: boolean;
665+
enabled: boolean;
666666
/**
667667
* Is this integration syncing
668668
*
@@ -698,7 +698,7 @@ export interface APIGuildIntegration {
698698
/**
699699
* User for this integration
700700
*
701-
* **This field is not provided for `discord` bot integrations.**
701+
* **Some older integrations may not have an attached user.**
702702
*
703703
* See https://discord.com/developers/docs/resources/user#user-object
704704
*/

0 commit comments

Comments
 (0)