File tree 8 files changed +92
-0
lines changed
8 files changed +92
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild {
280
280
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
281
281
*/
282
282
safety_alerts_channel_id : Snowflake | null ;
283
+ /**
284
+ * The incidents data for this guild
285
+ */
286
+ incidents_data : APIIncidentsData | null ;
283
287
}
284
288
285
289
/**
@@ -1126,3 +1130,14 @@ export enum GuildOnboardingPromptType {
1126
1130
MultipleChoice ,
1127
1131
Dropdown ,
1128
1132
}
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
+ }
Original file line number Diff line number Diff line change @@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild {
280
280
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
281
281
*/
282
282
safety_alerts_channel_id : Snowflake | null ;
283
+ /**
284
+ * The incidents data for this guild
285
+ */
286
+ incidents_data : APIIncidentsData | null ;
283
287
}
284
288
285
289
/**
@@ -1118,3 +1122,14 @@ export enum GuildOnboardingPromptType {
1118
1122
MultipleChoice ,
1119
1123
Dropdown ,
1120
1124
}
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
+ }
Original file line number Diff line number Diff line change @@ -919,6 +919,14 @@ export const Routes = {
919
919
return `/guilds/${ guildId } /onboarding` as const ;
920
920
} ,
921
921
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
+
922
930
/**
923
931
* Route for:
924
932
* - GET `/applications/@me`
Original file line number Diff line number Diff line change @@ -928,6 +928,14 @@ export const Routes = {
928
928
return `/guilds/${ guildId } /onboarding` as const ;
929
929
} ,
930
930
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
+
931
939
/**
932
940
* Route for:
933
941
* - GET `/applications/@me`
Original file line number Diff line number Diff line change @@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild {
280
280
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
281
281
*/
282
282
safety_alerts_channel_id : Snowflake | null ;
283
+ /**
284
+ * The incidents data for this guild
285
+ */
286
+ incidents_data : APIIncidentsData | null ;
283
287
}
284
288
285
289
/**
@@ -1126,3 +1130,14 @@ export enum GuildOnboardingPromptType {
1126
1130
MultipleChoice ,
1127
1131
Dropdown ,
1128
1132
}
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
+ }
Original file line number Diff line number Diff line change @@ -280,6 +280,10 @@ export interface APIGuild extends APIPartialGuild {
280
280
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
281
281
*/
282
282
safety_alerts_channel_id : Snowflake | null ;
283
+ /**
284
+ * The incidents data for this guild
285
+ */
286
+ incidents_data : APIIncidentsData | null ;
283
287
}
284
288
285
289
/**
@@ -1118,3 +1122,14 @@ export enum GuildOnboardingPromptType {
1118
1122
MultipleChoice ,
1119
1123
Dropdown ,
1120
1124
}
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
+ }
Original file line number Diff line number Diff line change @@ -919,6 +919,14 @@ export const Routes = {
919
919
return `/guilds/${ guildId } /onboarding` as const ;
920
920
} ,
921
921
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
+
922
930
/**
923
931
* Route for:
924
932
* - GET `/applications/@me`
Original file line number Diff line number Diff line change @@ -928,6 +928,14 @@ export const Routes = {
928
928
return `/guilds/${ guildId } /onboarding` as const ;
929
929
} ,
930
930
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
+
931
939
/**
932
940
* Route for:
933
941
* - GET `/applications/@me`
You can’t perform that action at this time.
0 commit comments