Method FollowAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.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