From b36ec983828c7001e47debcd435592ea026768d5 Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Sun, 19 May 2024 11:58:26 +0200 Subject: [PATCH] feat: add `reason` to `followAnnouncements` method (#10275) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/core/src/api/channel.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/api/channel.ts b/packages/core/src/api/channel.ts index 8fcf035dd93e..f97a242be591 100644 --- a/packages/core/src/api/channel.ts +++ b/packages/core/src/api/channel.ts @@ -387,10 +387,11 @@ export class ChannelsAPI { public async followAnnouncements( channelId: Snowflake, webhookChannelId: Snowflake, - { signal }: Pick = {}, + { reason, signal }: Pick = {}, ) { return this.rest.post(Routes.channelFollowers(channelId), { body: { webhook_channel_id: webhookChannelId }, + reason, signal, }) as Promise; }