Don't attempt to convert Embed entities to models if the entity is null
Allows null embeds to be passed into ModifyAsync
This commit is contained in:
@@ -24,6 +24,7 @@ namespace Discord.Rest
|
||||
}
|
||||
public static API.Embed ToModel(this Embed entity)
|
||||
{
|
||||
if (entity == null) return null;
|
||||
var model = new API.Embed
|
||||
{
|
||||
Type = entity.Type,
|
||||
|
||||
Reference in New Issue
Block a user