Skip to content

Commit b36ec98

Browse files
feat: add reason to followAnnouncements method (discordjs#10275)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent bb884fc commit b36ec98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/api/channel.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,11 @@ export class ChannelsAPI {
387387
public async followAnnouncements(
388388
channelId: Snowflake,
389389
webhookChannelId: Snowflake,
390-
{ signal }: Pick<RequestData, 'signal'> = {},
390+
{ reason, signal }: Pick<RequestData, 'reason' | 'signal'> = {},
391391
) {
392392
return this.rest.post(Routes.channelFollowers(channelId), {
393393
body: { webhook_channel_id: webhookChannelId },
394+
reason,
394395
signal,
395396
}) as Promise<RESTPostAPIChannelFollowersResult>;
396397
}

0 commit comments

Comments
 (0)