diff --git a/src/Discord.Net.Rest/DiscordRestApiClient.cs b/src/Discord.Net.Rest/DiscordRestApiClient.cs index 8547f44cb..2fe9388c6 100644 --- a/src/Discord.Net.Rest/DiscordRestApiClient.cs +++ b/src/Discord.Net.Rest/DiscordRestApiClient.cs @@ -1139,14 +1139,14 @@ namespace Discord.API await SendAsync("POST", () => $"channels/{channelId}/messages/{messageId}/crosspost", ids, options: options).ConfigureAwait(false); } - public async Task FollowChannelAsync(ulong newsChanneId, ulong followingChannelId, RequestOptions options = null) + public async Task FollowChannelAsync(ulong newsChannelId, ulong followingChannelId, RequestOptions options = null) { - Preconditions.NotEqual(newsChanneId, 0, nameof(newsChanneId)); - Preconditions.NotEqual(newsChanneId, 0, nameof(followingChannelId)); + Preconditions.NotEqual(newsChannelId, 0, nameof(newsChannelId)); + Preconditions.NotEqual(followingChannelId, 0, nameof(followingChannelId)); options = RequestOptions.CreateOrClone(options); - var ids = new BucketIds(channelId: newsChanneId); - return await SendJsonAsync("POST", () => $"channels/{newsChanneId}/followers", new { webhook_channel_id = followingChannelId}, ids, options: options).ConfigureAwait(false); + var ids = new BucketIds(channelId: newsChannelId); + return await SendJsonAsync("POST", () => $"channels/{newsChannelId}/followers", new { webhook_channel_id = followingChannelId}, ids, options: options).ConfigureAwait(false); } #endregion