From 99885c217649d7997fb7c388498c4c01941810ab Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Tue, 14 May 2024 16:42:00 +0200 Subject: [PATCH] feat: add `reason` to `followAnnouncements` method --- 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; }