feat: add reason to followAnnouncements method (#10275)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Danial Raza
2024-05-19 09:58:26 +00:00
committed by GitHub
co-authored by kodiakhq[bot]
parent bb884fc260
commit b36ec98382
+2 -1
View File
@@ -387,10 +387,11 @@ export class ChannelsAPI {
public async followAnnouncements(
channelId: Snowflake,
webhookChannelId: Snowflake,
{ signal }: Pick<RequestData, 'signal'> = {},
{ reason, signal }: Pick<RequestData, 'reason' | 'signal'> = {},
) {
return this.rest.post(Routes.channelFollowers(channelId), {
body: { webhook_channel_id: webhookChannelId },
reason,
signal,
}) as Promise<RESTPostAPIChannelFollowersResult>;
}