mirror of
https://github.com/discordjs/discord.js.git
synced 2024-07-08 01:41:18 +12: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:
parent
bb884fc260
commit
b36ec98382
|
@ -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>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue