Table of Contents

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 ulong

ID of the channel to follow

webhookChannelId ulong

ID of the channel to crosspost messages to

Returns

Task<DiscordFollowedChannel>

Exceptions

UnauthorizedException

Thrown when the current user doesn't have ManageWebhooks on the target channel