Browse Source

fix some typos & remove `using` added by VS

pull/2510/head
Misha133 2 years ago
parent
commit
7d8a2535d1
3 changed files with 2 additions and 3 deletions
  1. +1
    -1
      src/Discord.Net.Core/Entities/Guilds/IGuild.cs
  2. +0
    -1
      src/Discord.Net.Core/Entities/Guilds/WelcomeScreenChannel.cs
  3. +1
    -1
      src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs

+ 1
- 1
src/Discord.Net.Core/Entities/Guilds/IGuild.cs View File

@@ -1241,7 +1241,7 @@ namespace Discord
RequestOptions options = null); RequestOptions options = null);


/// <summary> /// <summary>
/// Gets the welcome screen of the guild. Returns <see langword="null"/> is the welcome channel is not set.
/// Gets the welcome screen of the guild. Returns <see langword="null"/> if the welcome channel is not set.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A task that represents the asynchronous creation operation. The task result contains a <see cref="WelcomeScreen"/>. /// A task that represents the asynchronous creation operation. The task result contains a <see cref="WelcomeScreen"/>.


+ 0
- 1
src/Discord.Net.Core/Entities/Guilds/WelcomeScreenChannel.cs View File

@@ -1,5 +1,4 @@
using System; using System;
using System.Xml.Linq;


namespace Discord; namespace Discord;




+ 1
- 1
src/Discord.Net.Rest/Entities/Guilds/GuildHelper.cs View File

@@ -972,7 +972,7 @@ namespace Discord.Rest
public static async Task<WelcomeScreen> ModifyWelcomeScreenAsync(bool enabled, string description, WelcomeScreenChannelProperties[] channels, IGuild guild, BaseDiscordClient client, RequestOptions options) public static async Task<WelcomeScreen> ModifyWelcomeScreenAsync(bool enabled, string description, WelcomeScreenChannelProperties[] channels, IGuild guild, BaseDiscordClient client, RequestOptions options)
{ {
if (!guild.Features.HasFeature(GuildFeature.Community)) 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 var args = new ModifyGuildWelcomeScreenParams
{ {


Loading…
Cancel
Save