mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-02 00:40:08 +00:00
feat(APIGuild): add incidents_data (#822)
This commit is contained in:
@@ -281,6 +281,10 @@ export interface APIGuild extends APIPartialGuild {
|
||||
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
|
||||
*/
|
||||
safety_alerts_channel_id: Snowflake | null;
|
||||
/**
|
||||
* The incidents data for this guild
|
||||
*/
|
||||
incidents_data: APIIncidentsData | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1160,3 +1164,22 @@ export enum GuildOnboardingPromptType {
|
||||
MultipleChoice,
|
||||
Dropdown,
|
||||
}
|
||||
|
||||
export interface APIIncidentsData {
|
||||
/**
|
||||
* When invites get enabled again
|
||||
*/
|
||||
invites_disabled_until: string | null;
|
||||
/**
|
||||
* When direct messages get enabled again
|
||||
*/
|
||||
dms_disabled_until: string | null;
|
||||
/**
|
||||
* When the dm spam was detected
|
||||
*/
|
||||
dm_spam_detected_at?: string | null;
|
||||
/**
|
||||
* When the raid was detected
|
||||
*/
|
||||
raid_detected_at?: string | null;
|
||||
}
|
||||
|
||||
@@ -281,6 +281,10 @@ export interface APIGuild extends APIPartialGuild {
|
||||
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
|
||||
*/
|
||||
safety_alerts_channel_id: Snowflake | null;
|
||||
/**
|
||||
* The incidents data for this guild
|
||||
*/
|
||||
incidents_data: APIIncidentsData | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1152,3 +1156,22 @@ export enum GuildOnboardingPromptType {
|
||||
MultipleChoice,
|
||||
Dropdown,
|
||||
}
|
||||
|
||||
export interface APIIncidentsData {
|
||||
/**
|
||||
* When invites get enabled again
|
||||
*/
|
||||
invites_disabled_until: string | null;
|
||||
/**
|
||||
* When direct messages get enabled again
|
||||
*/
|
||||
dms_disabled_until: string | null;
|
||||
/**
|
||||
* When the dm spam was detected
|
||||
*/
|
||||
dm_spam_detected_at?: string | null;
|
||||
/**
|
||||
* When the raid was detected
|
||||
*/
|
||||
raid_detected_at?: string | null;
|
||||
}
|
||||
|
||||
@@ -997,3 +997,17 @@ export type RESTAPIModifyGuildOnboardingPromptOptionData = RESTAPIGuildOnboardin
|
||||
* https://discord.com/developers/docs/resources/guild#modify-guild-onboarding
|
||||
*/
|
||||
export type RESTPutAPIGuildOnboardingResult = APIGuildOnboarding;
|
||||
|
||||
/**
|
||||
* https://discord.com/developers/docs/resources/guild#modify-incidents-actions
|
||||
*/
|
||||
export interface RESTPutAPIGuildIncidentActionsJSONBody {
|
||||
/**
|
||||
* When invites will be enabled again
|
||||
*/
|
||||
invites_disabled_until?: string | undefined;
|
||||
/**
|
||||
* When direct messages will be enabled again
|
||||
*/
|
||||
dms_disabled_until?: string | undefined;
|
||||
}
|
||||
|
||||
@@ -933,6 +933,14 @@ export const Routes = {
|
||||
return `/guilds/${guildId}/onboarding` as const;
|
||||
},
|
||||
|
||||
/**
|
||||
* Route for:
|
||||
* - PUT `/guilds/${guild.id}/incident-actions`
|
||||
*/
|
||||
guildIncidentActions(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/incident-actions` as const;
|
||||
},
|
||||
|
||||
/**
|
||||
* Route for:
|
||||
* - GET `/applications/@me`
|
||||
|
||||
@@ -1003,3 +1003,17 @@ export type RESTAPIModifyGuildOnboardingPromptOptionData = RESTAPIGuildOnboardin
|
||||
* https://discord.com/developers/docs/resources/guild#modify-guild-onboarding
|
||||
*/
|
||||
export type RESTPutAPIGuildOnboardingResult = APIGuildOnboarding;
|
||||
|
||||
/**
|
||||
* https://discord.com/developers/docs/resources/guild#modify-incidents-actions
|
||||
*/
|
||||
export interface RESTPutAPIGuildIncidentActionsJSONBody {
|
||||
/**
|
||||
* When invites will be enabled again
|
||||
*/
|
||||
invites_disabled_until?: string | undefined;
|
||||
/**
|
||||
* When direct messages will be enabled again
|
||||
*/
|
||||
dms_disabled_until?: string | undefined;
|
||||
}
|
||||
|
||||
@@ -942,6 +942,14 @@ export const Routes = {
|
||||
return `/guilds/${guildId}/onboarding` as const;
|
||||
},
|
||||
|
||||
/**
|
||||
* Route for:
|
||||
* - PUT `/guilds/${guild.id}/incident-actions`
|
||||
*/
|
||||
guildIncidentActions(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/incident-actions` as const;
|
||||
},
|
||||
|
||||
/**
|
||||
* Route for:
|
||||
* - GET `/applications/@me`
|
||||
|
||||
@@ -281,6 +281,10 @@ export interface APIGuild extends APIPartialGuild {
|
||||
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
|
||||
*/
|
||||
safety_alerts_channel_id: Snowflake | null;
|
||||
/**
|
||||
* The incidents data for this guild
|
||||
*/
|
||||
incidents_data: APIIncidentsData | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1160,3 +1164,22 @@ export enum GuildOnboardingPromptType {
|
||||
MultipleChoice,
|
||||
Dropdown,
|
||||
}
|
||||
|
||||
export interface APIIncidentsData {
|
||||
/**
|
||||
* When invites get enabled again
|
||||
*/
|
||||
invites_disabled_until: string | null;
|
||||
/**
|
||||
* When direct messages get enabled again
|
||||
*/
|
||||
dms_disabled_until: string | null;
|
||||
/**
|
||||
* When the dm spam was detected
|
||||
*/
|
||||
dm_spam_detected_at?: string | null;
|
||||
/**
|
||||
* When the raid was detected
|
||||
*/
|
||||
raid_detected_at?: string | null;
|
||||
}
|
||||
|
||||
@@ -281,6 +281,10 @@ export interface APIGuild extends APIPartialGuild {
|
||||
* The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
|
||||
*/
|
||||
safety_alerts_channel_id: Snowflake | null;
|
||||
/**
|
||||
* The incidents data for this guild
|
||||
*/
|
||||
incidents_data: APIIncidentsData | null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1152,3 +1156,22 @@ export enum GuildOnboardingPromptType {
|
||||
MultipleChoice,
|
||||
Dropdown,
|
||||
}
|
||||
|
||||
export interface APIIncidentsData {
|
||||
/**
|
||||
* When invites get enabled again
|
||||
*/
|
||||
invites_disabled_until: string | null;
|
||||
/**
|
||||
* When direct messages get enabled again
|
||||
*/
|
||||
dms_disabled_until: string | null;
|
||||
/**
|
||||
* When the dm spam was detected
|
||||
*/
|
||||
dm_spam_detected_at?: string | null;
|
||||
/**
|
||||
* When the raid was detected
|
||||
*/
|
||||
raid_detected_at?: string | null;
|
||||
}
|
||||
|
||||
@@ -997,3 +997,17 @@ export type RESTAPIModifyGuildOnboardingPromptOptionData = RESTAPIGuildOnboardin
|
||||
* https://discord.com/developers/docs/resources/guild#modify-guild-onboarding
|
||||
*/
|
||||
export type RESTPutAPIGuildOnboardingResult = APIGuildOnboarding;
|
||||
|
||||
/**
|
||||
* https://discord.com/developers/docs/resources/guild#modify-incidents-actions
|
||||
*/
|
||||
export interface RESTPutAPIGuildIncidentActionsJSONBody {
|
||||
/**
|
||||
* When invites will be enabled again
|
||||
*/
|
||||
invites_disabled_until?: string | undefined;
|
||||
/**
|
||||
* When direct messages will be enabled again
|
||||
*/
|
||||
dms_disabled_until?: string | undefined;
|
||||
}
|
||||
|
||||
@@ -933,6 +933,14 @@ export const Routes = {
|
||||
return `/guilds/${guildId}/onboarding` as const;
|
||||
},
|
||||
|
||||
/**
|
||||
* Route for:
|
||||
* - PUT `/guilds/${guild.id}/incident-actions`
|
||||
*/
|
||||
guildIncidentActions(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/incident-actions` as const;
|
||||
},
|
||||
|
||||
/**
|
||||
* Route for:
|
||||
* - GET `/applications/@me`
|
||||
|
||||
@@ -1003,3 +1003,17 @@ export type RESTAPIModifyGuildOnboardingPromptOptionData = RESTAPIGuildOnboardin
|
||||
* https://discord.com/developers/docs/resources/guild#modify-guild-onboarding
|
||||
*/
|
||||
export type RESTPutAPIGuildOnboardingResult = APIGuildOnboarding;
|
||||
|
||||
/**
|
||||
* https://discord.com/developers/docs/resources/guild#modify-incidents-actions
|
||||
*/
|
||||
export interface RESTPutAPIGuildIncidentActionsJSONBody {
|
||||
/**
|
||||
* When invites will be enabled again
|
||||
*/
|
||||
invites_disabled_until?: string | undefined;
|
||||
/**
|
||||
* When direct messages will be enabled again
|
||||
*/
|
||||
dms_disabled_until?: string | undefined;
|
||||
}
|
||||
|
||||
@@ -942,6 +942,14 @@ export const Routes = {
|
||||
return `/guilds/${guildId}/onboarding` as const;
|
||||
},
|
||||
|
||||
/**
|
||||
* Route for:
|
||||
* - PUT `/guilds/${guild.id}/incident-actions`
|
||||
*/
|
||||
guildIncidentActions(guildId: Snowflake) {
|
||||
return `/guilds/${guildId}/incident-actions` as const;
|
||||
},
|
||||
|
||||
/**
|
||||
* Route for:
|
||||
* - GET `/applications/@me`
|
||||
|
||||
Reference in New Issue
Block a user