Format the project with 'dotnet format' (#2551)
* Sync and Re-Format * Fix Title string. * Fix indentation.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using Discord.Analyzers;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Diagnostics;
|
||||
using Discord.Analyzers;
|
||||
using System;
|
||||
using TestHelper;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CodeActions;
|
||||
using Microsoft.CodeAnalysis.Formatting;
|
||||
using Microsoft.CodeAnalysis.Simplification;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using System;
|
||||
|
||||
namespace TestHelper
|
||||
@@ -84,4 +84,4 @@ namespace TestHelper
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using Discord.Commands;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
using Microsoft.CodeAnalysis.Diagnostics;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
using Microsoft.CodeAnalysis.Diagnostics;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
using Discord.Commands;
|
||||
|
||||
namespace TestHelper
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Diagnostics;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Diagnostics;
|
||||
//using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Xunit;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Discord.API;
|
||||
using Discord.API;
|
||||
using Discord.API.Rest;
|
||||
using Discord.Net;
|
||||
using Discord.Rest;
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using Discord.Rest;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Discord;
|
||||
using System;
|
||||
using Xunit;
|
||||
|
||||
namespace Discord;
|
||||
@@ -17,7 +17,7 @@ public class CommandBuilderTests
|
||||
ApplicationCommandOptionType.String,
|
||||
"option1 description",
|
||||
isRequired: true,
|
||||
choices: new []
|
||||
choices: new[]
|
||||
{
|
||||
new ApplicationCommandOptionChoiceProperties()
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Discord.Rest;
|
||||
using Discord.Rest;
|
||||
using FluentAssertions;
|
||||
using Moq;
|
||||
using System;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Xunit;
|
||||
using Discord.Rest;
|
||||
using Xunit;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Discord
|
||||
public DateTimeOffset CreatedAt => throw new NotImplementedException();
|
||||
|
||||
public ulong Id => throw new NotImplementedException();
|
||||
|
||||
|
||||
public ChannelFlags Flags => throw new NotImplementedException();
|
||||
|
||||
public Task AddPermissionOverwriteAsync(IRole role, OverwritePermissions permissions, RequestOptions options = null)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using Discord.Audio;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Discord.Audio;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
|
||||
@@ -214,7 +214,7 @@ namespace Discord
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
public Task<IUserMessage> SendFileAsync(FileAttachment attachment, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = MessageFlags.None) => throw new NotImplementedException();
|
||||
public Task<IUserMessage> SendFilesAsync(IEnumerable<FileAttachment> attachments, string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent component = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = MessageFlags.None) => throw new NotImplementedException();
|
||||
public Task<IThreadChannel> CreateThreadAsync(string name, ThreadType type = ThreadType.PublicThread, ThreadArchiveDuration autoArchiveDuration = ThreadArchiveDuration.OneDay, IMessage message = null, bool? invitable = null, int? slowmode = null, RequestOptions options = null, MessageFlags flags = MessageFlags.None) => throw new NotImplementedException();
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Discord.Audio;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Discord.Audio;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user