From 573728299a70a87fcbebd9e55472929dbc95c596 Mon Sep 17 00:00:00 2001 From: Casmir <68127614+csmir@users.noreply.github.com> Date: Thu, 9 Feb 2023 16:38:38 +0100 Subject: [PATCH] Apply suggestions from code review --- src/Discord.Net.Rest/DiscordRestApiClient.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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