diff --git a/packages/rest/src/manager.ts b/packages/rest/src/manager.ts index 5589686b4..fb4409da5 100644 --- a/packages/rest/src/manager.ts +++ b/packages/rest/src/manager.ts @@ -925,11 +925,12 @@ export function createRestManager(options: CreateRestManagerOptions): RestManage return await rest.post(rest.routes.webhooks.webhook(webhookId, token, options), { body: options }) }, - async followAnnouncement(sourceChannelId, targetChannelId) { + async followAnnouncement(sourceChannelId, targetChannelId, reason) { return await rest.post(rest.routes.channels.follow(sourceChannelId), { body: { webhook_channel_id: targetChannelId, }, + reason, }) }, diff --git a/packages/rest/src/types.ts b/packages/rest/src/types.ts index 9fadd7685..7407f3aa6 100644 --- a/packages/rest/src/types.ts +++ b/packages/rest/src/types.ts @@ -1502,6 +1502,7 @@ export interface RestManager { * * @param sourceChannelId - The ID of the announcement channel to follow. * @param targetChannelId - The ID of the target channel - the channel to cross-post to. + * @param {string} [reason] - An optional reason for the action, to be included in the audit log. * @returns An instance of {@link CamelizedDiscordFollowedChannel}. * * @remarks @@ -1511,7 +1512,7 @@ export interface RestManager { * * @see {@link https://discord.com/developers/docs/resources/channel#follow-announcement-channel} */ - followAnnouncement: (sourceChannelId: BigString, targetChannelId: BigString) => Promise + followAnnouncement: (sourceChannelId: BigString, targetChannelId: BigString, reason?: string) => Promise /** * Gets the list of all active threads for a guild. *