From 7d8a2535d1c84a498449adac0a085e6a54fe0a51 Mon Sep 17 00:00:00 2001 From: Misha133 Date: Mon, 21 Nov 2022 23:59:50 +0300 Subject: [PATCH] fix some typos & remove `using` added by VS --- src/Discord.Net.Core/Entities/Guilds/IGuild.cs | 2 +- src/Discord.Net.Core/Entities/Guilds/WelcomeScreenChannel.cs | 1 - src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Guilds/IGuild.cs b/src/Discord.Net.Core/Entities/Guilds/IGuild.cs index d779f7327..e564b9656 100644 --- a/src/Discord.Net.Core/Entities/Guilds/IGuild.cs +++ b/src/Discord.Net.Core/Entities/Guilds/IGuild.cs @@ -1241,7 +1241,7 @@ namespace Discord RequestOptions options = null); /// - /// Gets the welcome screen of the guild. Returns is the welcome channel is not set. + /// Gets the welcome screen of the guild. Returns if the welcome channel is not set. /// /// /// A task that represents the asynchronous creation operation. The task result contains a . diff --git a/src/Discord.Net.Core/Entities/Guilds/WelcomeScreenChannel.cs b/src/Discord.Net.Core/Entities/Guilds/WelcomeScreenChannel.cs index 0f4c9b060..8f52d8c3f 100644 --- a/src/Discord.Net.Core/Entities/Guilds/WelcomeScreenChannel.cs +++ b/src/Discord.Net.Core/Entities/Guilds/WelcomeScreenChannel.cs @@ -1,5 +1,4 @@ using System; -using System.Xml.Linq; namespace Discord; diff --git a/src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs b/src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs index 36f52d955..f3deed351 100644 --- a/src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs +++ b/src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs @@ -972,7 +972,7 @@ namespace Discord.Rest public static async Task ModifyWelcomeScreenAsync(bool enabled, string description, WelcomeScreenChannelProperties[] channels, IGuild guild, BaseDiscordClient client, RequestOptions options) { if (!guild.Features.HasFeature(GuildFeature.Community)) - throw new InvalidOperationException("Cannot update welcome screed in a non-community guild."); + throw new InvalidOperationException("Cannot update welcome screen in a non-community guild."); var args = new ModifyGuildWelcomeScreenParams {