Skip to content

Commit fbb36a4

Browse files
committed
feat(APIGuild): add incidents_data
1 parent 27840d1 commit fbb36a4

File tree

8 files changed

+124
-0
lines changed

8 files changed

+124
-0
lines changed

deno/payloads/v10/guild.ts

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

286290
/**
@@ -1160,3 +1164,22 @@ export enum GuildOnboardingPromptType {
11601164
MultipleChoice,
11611165
Dropdown,
11621166
}
1167+
1168+
export interface APIIncidentsData {
1169+
/**
1170+
* When invites get enabled again
1171+
*/
1172+
invites_disabled_until: string | null;
1173+
/**
1174+
* When direct messages get enabled again
1175+
*/
1176+
dms_disabled_until: string | null;
1177+
/**
1178+
* When the dm spam was detected at
1179+
*/
1180+
dm_spam_detected_at: string | null;
1181+
/**
1182+
* When the raid was detected at
1183+
*/
1184+
raid_detected_at: string | null;
1185+
}

deno/payloads/v9/guild.ts

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

286290
/**
@@ -1152,3 +1156,22 @@ export enum GuildOnboardingPromptType {
11521156
MultipleChoice,
11531157
Dropdown,
11541158
}
1159+
1160+
export interface APIIncidentsData {
1161+
/**
1162+
* When invites get enabled again
1163+
*/
1164+
invites_disabled_until: string | null;
1165+
/**
1166+
* When direct messages get enabled again
1167+
*/
1168+
dms_disabled_until: string | null;
1169+
/**
1170+
* When the dm spam was detected at
1171+
*/
1172+
dm_spam_detected_at: string | null;
1173+
/**
1174+
* When the raid was detected at
1175+
*/
1176+
raid_detected_at: string | null;
1177+
}

deno/rest/v10/mod.ts

+8
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,14 @@ export const Routes = {
933933
return `/guilds/${guildId}/onboarding` as const;
934934
},
935935

936+
/**
937+
* Route for:
938+
* - PUT `/guilds/${guild.id}/incident-actions`
939+
*/
940+
guildIncidentActions(guildId: Snowflake) {
941+
return `/guilds/${guildId}/incident-actions` as const;
942+
},
943+
936944
/**
937945
* Route for:
938946
* - GET `/applications/@me`

deno/rest/v9/mod.ts

+8
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,14 @@ export const Routes = {
942942
return `/guilds/${guildId}/onboarding` as const;
943943
},
944944

945+
/**
946+
* Route for:
947+
* - PUT `/guilds/${guild.id}/incident-actions`
948+
*/
949+
guildIncidentActions(guildId: Snowflake) {
950+
return `/guilds/${guildId}/incident-actions` as const;
951+
},
952+
945953
/**
946954
* Route for:
947955
* - GET `/applications/@me`

payloads/v10/guild.ts

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

286290
/**
@@ -1160,3 +1164,22 @@ export enum GuildOnboardingPromptType {
11601164
MultipleChoice,
11611165
Dropdown,
11621166
}
1167+
1168+
export interface APIIncidentsData {
1169+
/**
1170+
* When invites get enabled again
1171+
*/
1172+
invites_disabled_until: string | null;
1173+
/**
1174+
* When direct messages get enabled again
1175+
*/
1176+
dms_disabled_until: string | null;
1177+
/**
1178+
* When the dm spam was detected at
1179+
*/
1180+
dm_spam_detected_at: string | null;
1181+
/**
1182+
* When the raid was detected at
1183+
*/
1184+
raid_detected_at: string | null;
1185+
}

payloads/v9/guild.ts

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

286290
/**
@@ -1152,3 +1156,22 @@ export enum GuildOnboardingPromptType {
11521156
MultipleChoice,
11531157
Dropdown,
11541158
}
1159+
1160+
export interface APIIncidentsData {
1161+
/**
1162+
* When invites get enabled again
1163+
*/
1164+
invites_disabled_until: string | null;
1165+
/**
1166+
* When direct messages get enabled again
1167+
*/
1168+
dms_disabled_until: string | null;
1169+
/**
1170+
* When the dm spam was detected at
1171+
*/
1172+
dm_spam_detected_at: string | null;
1173+
/**
1174+
* When the raid was detected at
1175+
*/
1176+
raid_detected_at: string | null;
1177+
}

rest/v10/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,14 @@ export const Routes = {
933933
return `/guilds/${guildId}/onboarding` as const;
934934
},
935935

936+
/**
937+
* Route for:
938+
* - PUT `/guilds/${guild.id}/incident-actions`
939+
*/
940+
guildIncidentActions(guildId: Snowflake) {
941+
return `/guilds/${guildId}/incident-actions` as const;
942+
},
943+
936944
/**
937945
* Route for:
938946
* - GET `/applications/@me`

rest/v9/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,14 @@ export const Routes = {
942942
return `/guilds/${guildId}/onboarding` as const;
943943
},
944944

945+
/**
946+
* Route for:
947+
* - PUT `/guilds/${guild.id}/incident-actions`
948+
*/
949+
guildIncidentActions(guildId: Snowflake) {
950+
return `/guilds/${guildId}/incident-actions` as const;
951+
},
952+
945953
/**
946954
* Route for:
947955
* - GET `/applications/@me`

0 commit comments

Comments
 (0)