File tree 8 files changed +124
-0
lines changed
8 files changed +124
-0
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ export interface APIGuild extends APIPartialGuild {
281
281
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
282
282
*/
283
283
safety_alerts_channel_id : Snowflake | null ;
284
+ /**
285
+ * The incidents data for this guild
286
+ */
287
+ incidents_data : APIIncidentsData | null ;
284
288
}
285
289
286
290
/**
@@ -1160,3 +1164,22 @@ export enum GuildOnboardingPromptType {
1160
1164
MultipleChoice ,
1161
1165
Dropdown ,
1162
1166
}
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
+ }
Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ export interface APIGuild extends APIPartialGuild {
281
281
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
282
282
*/
283
283
safety_alerts_channel_id : Snowflake | null ;
284
+ /**
285
+ * The incidents data for this guild
286
+ */
287
+ incidents_data : APIIncidentsData | null ;
284
288
}
285
289
286
290
/**
@@ -1152,3 +1156,22 @@ export enum GuildOnboardingPromptType {
1152
1156
MultipleChoice ,
1153
1157
Dropdown ,
1154
1158
}
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
+ }
Original file line number Diff line number Diff line change @@ -933,6 +933,14 @@ export const Routes = {
933
933
return `/guilds/${ guildId } /onboarding` as const ;
934
934
} ,
935
935
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
+
936
944
/**
937
945
* Route for:
938
946
* - GET `/applications/@me`
Original file line number Diff line number Diff line change @@ -942,6 +942,14 @@ export const Routes = {
942
942
return `/guilds/${ guildId } /onboarding` as const ;
943
943
} ,
944
944
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
+
945
953
/**
946
954
* Route for:
947
955
* - GET `/applications/@me`
Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ export interface APIGuild extends APIPartialGuild {
281
281
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
282
282
*/
283
283
safety_alerts_channel_id : Snowflake | null ;
284
+ /**
285
+ * The incidents data for this guild
286
+ */
287
+ incidents_data : APIIncidentsData | null ;
284
288
}
285
289
286
290
/**
@@ -1160,3 +1164,22 @@ export enum GuildOnboardingPromptType {
1160
1164
MultipleChoice ,
1161
1165
Dropdown ,
1162
1166
}
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
+ }
Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ export interface APIGuild extends APIPartialGuild {
281
281
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
282
282
*/
283
283
safety_alerts_channel_id : Snowflake | null ;
284
+ /**
285
+ * The incidents data for this guild
286
+ */
287
+ incidents_data : APIIncidentsData | null ;
284
288
}
285
289
286
290
/**
@@ -1152,3 +1156,22 @@ export enum GuildOnboardingPromptType {
1152
1156
MultipleChoice ,
1153
1157
Dropdown ,
1154
1158
}
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
+ }
Original file line number Diff line number Diff line change @@ -933,6 +933,14 @@ export const Routes = {
933
933
return `/guilds/${ guildId } /onboarding` as const ;
934
934
} ,
935
935
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
+
936
944
/**
937
945
* Route for:
938
946
* - GET `/applications/@me`
Original file line number Diff line number Diff line change @@ -942,6 +942,14 @@ export const Routes = {
942
942
return `/guilds/${ guildId } /onboarding` as const ;
943
943
} ,
944
944
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
+
945
953
/**
946
954
* Route for:
947
955
* - GET `/applications/@me`
You can’t perform that action at this time.
0 commit comments