Method FollowChannelAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
FollowChannelAsync(ulong, ulong)
Follows a news channel
public Task<DiscordFollowedChannel> FollowChannelAsync(ulong channelId, ulong webhookChannelId)
Parameters
channelId
ulongID of the channel to follow
webhookChannelId
ulongID of the channel to crosspost messages to
Returns
Exceptions
- UnauthorizedException
Thrown when the current user doesn't have ManageWebhooks on the target channel