Method FollowAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
FollowAsync(DiscordChannel)
Follows a news channel.
public Task<DiscordFollowedChannel> FollowAsync(DiscordChannel targetChannel)
Parameters
targetChannel
DiscordChannelChannel to crosspost messages to.
Returns
Exceptions
- ArgumentException
Thrown when trying to follow a non-news channel.
- UnauthorizedException
Thrown when the current user doesn't have ManageWebhooks on the target channel.