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

@@ -43,7 +43,8 @@ namespace Discord.Rest
}
public static API.Embed ToModel(this Embed entity)
{
if (entity == null) return null;
if (entity == null)
return null;
var model = new API.Embed
{
Type = entity.Type,
@@ -71,7 +72,8 @@ namespace Discord.Rest
public static API.AllowedMentions ToModel(this AllowedMentions entity)
{
if (entity == null) return null;
if (entity == null)
return null;
return new API.AllowedMentions()
{
Parse = entity.AllowedTypes?.EnumerateMentionTypes().ToArray(),
@@ -187,7 +189,7 @@ namespace Discord.Rest
Flags = data.Flags,
};
if(interaction is IApplicationCommandInteraction command)
if (interaction is IApplicationCommandInteraction command)
{
messageModel.Interaction = new API.MessageInteraction
{

View File

@@ -1,7 +1,7 @@
using Discord.Net.Converters;
using Newtonsoft.Json;
using System.Linq;
using System;
using System.Linq;
namespace Discord.Rest
{