mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
feat: add reason to followAnnouncements method (#10275)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -387,10 +387,11 @@ export class ChannelsAPI {
|
|||||||
public async followAnnouncements(
|
public async followAnnouncements(
|
||||||
channelId: Snowflake,
|
channelId: Snowflake,
|
||||||
webhookChannelId: Snowflake,
|
webhookChannelId: Snowflake,
|
||||||
{ signal }: Pick<RequestData, 'signal'> = {},
|
{ reason, signal }: Pick<RequestData, 'reason' | 'signal'> = {},
|
||||||
) {
|
) {
|
||||||
return this.rest.post(Routes.channelFollowers(channelId), {
|
return this.rest.post(Routes.channelFollowers(channelId), {
|
||||||
body: { webhook_channel_id: webhookChannelId },
|
body: { webhook_channel_id: webhookChannelId },
|
||||||
|
reason,
|
||||||
signal,
|
signal,
|
||||||
}) as Promise<RESTPostAPIChannelFollowersResult>;
|
}) as Promise<RESTPostAPIChannelFollowersResult>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user