Skip to content

Commit ee6d72d

Browse files
committed
feat(APIGuild): add incidents_data
1 parent 72a78a4 commit ee6d72d

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

deno/payloads/v10/guild.ts

+15
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild {
280280
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
281281
*/
282282
safety_alerts_channel_id: Snowflake | null;
283+
/**
284+
* The incidents data for this guild
285+
*/
286+
incidents_data: IncidentsData;
283287
}
284288

285289
/**
@@ -1120,3 +1124,14 @@ export enum GuildOnboardingPromptType {
11201124
MultipleChoice,
11211125
Dropdown,
11221126
}
1127+
1128+
export interface IncidentsData {
1129+
/**
1130+
* When invites get enabled again
1131+
*/
1132+
invites_disabled_until: string | null;
1133+
/**
1134+
* When direct messages get enabled again
1135+
*/
1136+
dms_disabled_until: string | null;
1137+
}

deno/payloads/v9/guild.ts

+15
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild {
280280
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
281281
*/
282282
safety_alerts_channel_id: Snowflake | null;
283+
/**
284+
* The incidents data for this guild
285+
*/
286+
incidents_data: IncidentsData;
283287
}
284288

285289
/**
@@ -1112,3 +1116,14 @@ export enum GuildOnboardingPromptType {
11121116
MultipleChoice,
11131117
Dropdown,
11141118
}
1119+
1120+
export interface IncidentsData {
1121+
/**
1122+
* When invites get enabled again
1123+
*/
1124+
invites_disabled_until: string | null;
1125+
/**
1126+
* When direct messages get enabled again
1127+
*/
1128+
dms_disabled_until: string | null;
1129+
}

payloads/v10/guild.ts

+15
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild {
280280
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
281281
*/
282282
safety_alerts_channel_id: Snowflake | null;
283+
/**
284+
* The incidents data for this guild
285+
*/
286+
incidents_data: IncidentsData;
283287
}
284288

285289
/**
@@ -1120,3 +1124,14 @@ export enum GuildOnboardingPromptType {
11201124
MultipleChoice,
11211125
Dropdown,
11221126
}
1127+
1128+
export interface IncidentsData {
1129+
/**
1130+
* When invites get enabled again
1131+
*/
1132+
invites_disabled_until: string | null;
1133+
/**
1134+
* When direct messages get enabled again
1135+
*/
1136+
dms_disabled_until: string | null;
1137+
}

payloads/v9/guild.ts

+15
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild {
280280
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
281281
*/
282282
safety_alerts_channel_id: Snowflake | null;
283+
/**
284+
* The incidents data for this guild
285+
*/
286+
incidents_data: IncidentsData;
283287
}
284288

285289
/**
@@ -1112,3 +1116,14 @@ export enum GuildOnboardingPromptType {
11121116
MultipleChoice,
11131117
Dropdown,
11141118
}
1119+
1120+
export interface IncidentsData {
1121+
/**
1122+
* When invites get enabled again
1123+
*/
1124+
invites_disabled_until: string | null;
1125+
/**
1126+
* When direct messages get enabled again
1127+
*/
1128+
dms_disabled_until: string | null;
1129+
}

0 commit comments

Comments
 (0)