Skip to content

Commit dcbe27f

Browse files
committed
feat(APIGuild): add incidents_data
1 parent fdc0408 commit dcbe27f

File tree

8 files changed

+92
-0
lines changed

8 files changed

+92
-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: APIIncidentsData | null;
283287
}
284288

285289
/**
@@ -1126,3 +1130,14 @@ export enum GuildOnboardingPromptType {
11261130
MultipleChoice,
11271131
Dropdown,
11281132
}
1133+
1134+
export interface APIIncidentsData {
1135+
/**
1136+
* When invites get enabled again
1137+
*/
1138+
invites_disabled_until: string | null;
1139+
/**
1140+
* When direct messages get enabled again
1141+
*/
1142+
dms_disabled_until: string | null;
1143+
}

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: APIIncidentsData | null;
283287
}
284288

285289
/**
@@ -1118,3 +1122,14 @@ export enum GuildOnboardingPromptType {
11181122
MultipleChoice,
11191123
Dropdown,
11201124
}
1125+
1126+
export interface APIIncidentsData {
1127+
/**
1128+
* When invites get enabled again
1129+
*/
1130+
invites_disabled_until: string | null;
1131+
/**
1132+
* When direct messages get enabled again
1133+
*/
1134+
dms_disabled_until: string | null;
1135+
}

deno/rest/v10/mod.ts

+8
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,14 @@ export const Routes = {
919919
return `/guilds/${guildId}/onboarding` as const;
920920
},
921921

922+
/**
923+
* Route for:
924+
* - PUT `/guilds/${guild.id}/incident-actions`
925+
*/
926+
guildIncidentActions(guildId: Snowflake) {
927+
return `/guilds/${guildId}/incident-actions` as const;
928+
},
929+
922930
/**
923931
* Route for:
924932
* - GET `/applications/@me`

deno/rest/v9/mod.ts

+8
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,14 @@ export const Routes = {
928928
return `/guilds/${guildId}/onboarding` as const;
929929
},
930930

931+
/**
932+
* Route for:
933+
* - PUT `/guilds/${guild.id}/incident-actions`
934+
*/
935+
guildIncidentActions(guildId: Snowflake) {
936+
return `/guilds/${guildId}/incident-actions` as const;
937+
},
938+
931939
/**
932940
* Route for:
933941
* - GET `/applications/@me`

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: APIIncidentsData | null;
283287
}
284288

285289
/**
@@ -1126,3 +1130,14 @@ export enum GuildOnboardingPromptType {
11261130
MultipleChoice,
11271131
Dropdown,
11281132
}
1133+
1134+
export interface APIIncidentsData {
1135+
/**
1136+
* When invites get enabled again
1137+
*/
1138+
invites_disabled_until: string | null;
1139+
/**
1140+
* When direct messages get enabled again
1141+
*/
1142+
dms_disabled_until: string | null;
1143+
}

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: APIIncidentsData | null;
283287
}
284288

285289
/**
@@ -1118,3 +1122,14 @@ export enum GuildOnboardingPromptType {
11181122
MultipleChoice,
11191123
Dropdown,
11201124
}
1125+
1126+
export interface APIIncidentsData {
1127+
/**
1128+
* When invites get enabled again
1129+
*/
1130+
invites_disabled_until: string | null;
1131+
/**
1132+
* When direct messages get enabled again
1133+
*/
1134+
dms_disabled_until: string | null;
1135+
}

rest/v10/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,14 @@ export const Routes = {
919919
return `/guilds/${guildId}/onboarding` as const;
920920
},
921921

922+
/**
923+
* Route for:
924+
* - PUT `/guilds/${guild.id}/incident-actions`
925+
*/
926+
guildIncidentActions(guildId: Snowflake) {
927+
return `/guilds/${guildId}/incident-actions` as const;
928+
},
929+
922930
/**
923931
* Route for:
924932
* - GET `/applications/@me`

rest/v9/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,14 @@ export const Routes = {
928928
return `/guilds/${guildId}/onboarding` as const;
929929
},
930930

931+
/**
932+
* Route for:
933+
* - PUT `/guilds/${guild.id}/incident-actions`
934+
*/
935+
guildIncidentActions(guildId: Snowflake) {
936+
return `/guilds/${guildId}/incident-actions` as const;
937+
},
938+
931939
/**
932940
* Route for:
933941
* - GET `/applications/@me`

0 commit comments

Comments
 (0)