Skip to content

Commit

Permalink
feat: add reason to followAnnouncements method (#10275)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
sdanialraza and kodiakhq[bot] committed May 19, 2024
1 parent bb884fc commit b36ec98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/api/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}
Expand Down

0 comments on commit b36ec98

Please sign in to comment.