Format the project with 'dotnet format' (#2551)
* Sync and Re-Format * Fix Title string. * Fix indentation.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Discord.Net.Converters;
|
||||
using Newtonsoft.Json;
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace Discord.Rest
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user