Cleaned up Reactions PR

This commit is contained in:
RogueException
2016-11-27 00:55:01 -04:00
parent 2e1ec5803b
commit f56a1b653d
8 changed files with 41 additions and 51 deletions

View File

@@ -2,6 +2,7 @@
using System;
using System.Diagnostics;
using System.Globalization;
using Model = Discord.API.Emoji;
namespace Discord
{
@@ -18,8 +19,7 @@ namespace Discord
Id = id;
Name = name;
}
internal static Emoji FromApi(API.Emoji emoji)
internal static Emoji Create(Model emoji)
{
return new Emoji(emoji.Id.GetValueOrDefault(), emoji.Name);
}

View File

@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Discord
namespace Discord
{
public interface IReaction
{

View File

@@ -42,8 +42,7 @@ namespace Discord
if (obj.Value == null) throw CreateNotNullException(name, msg);
if (obj.Value.Trim().Length == 0) throw CreateNotEmptyException(name, msg);
}
}
}
private static ArgumentException CreateNotEmptyException(string name, string msg)
{