diff --git a/packages/core/src/api/guild.ts b/packages/core/src/api/guild.ts index 6648c19ed..afd2ebb8c 100644 --- a/packages/core/src/api/guild.ts +++ b/packages/core/src/api/guild.ts @@ -89,6 +89,8 @@ import { type RESTPostAPIGuildTemplatesJSONBody, type RESTPostAPIGuildTemplatesResult, type RESTPutAPIGuildBanJSONBody, + type RESTPutAPIGuildIncidentActionsJSONBody, + type RESTPutAPIGuildIncidentActionsResult, type RESTPutAPIGuildMemberJSONBody, type RESTPutAPIGuildMemberResult, type RESTPutAPIGuildOnboardingJSONBody, @@ -1439,4 +1441,24 @@ export class GuildsAPI { ) { await this.rest.delete(Routes.guildSoundboardSound(guildId, soundId), { auth, reason, signal }); } + + /** + * Modifies incident actions for a guild. + * + * @see {@link https://discord.com/developers/docs/resources/guild#modify-guild-incident-actions} + * @param guildId - The id of the guild + * @param body - The data for modifying guild incident actions + * @param options - The options for modifying guild incident actions + */ + public async editIncidentActions( + guildId: Snowflake, + body: RESTPutAPIGuildIncidentActionsJSONBody, + { auth, signal }: Pick = {}, + ) { + return this.rest.put(Routes.guildIncidentActions(guildId), { + auth, + body, + signal, + }) as Promise; + } }