Format the project with 'dotnet format' (#2551)

* Sync and Re-Format

* Fix Title string.

* Fix indentation.
This commit is contained in:
NaN
2023-02-13 14:45:59 -03:00
committed by GitHub
parent 71e9ecb21e
commit 257f246d1d
401 changed files with 3178 additions and 2671 deletions

View File

@@ -1,4 +1,4 @@
using Discord.API;
using Discord.API;
using Discord.API.Rest;
using Discord.Net;
using Discord.Rest;

View File

@@ -76,7 +76,7 @@ namespace Discord
await guild.ModifyAsync(x => { x.SystemChannel = new Optional<ITextChannel>(systemChannel); });
Assert.Equal(systemChannel.Id, guild.SystemChannelId);
await Assert.ThrowsAsync<NullReferenceException>( async () =>
await Assert.ThrowsAsync<NullReferenceException>(async () =>
{
await guild.ModifyAsync(x => x.SystemChannel = null);
});
@@ -103,7 +103,7 @@ namespace Discord
await guild.ModifyAsync(x => x.AfkChannel = new Optional<IVoiceChannel>(afkChannel));
Assert.Equal(afkChannel.Id, guild.AFKChannelId);
await Assert.ThrowsAsync<NullReferenceException>( async () =>
await Assert.ThrowsAsync<NullReferenceException>(async () =>
{
await guild.ModifyAsync(x => x.AfkChannel = null);
});

View File

@@ -1,8 +1,8 @@
using Discord.Rest;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Text;
namespace Discord
{