Cleaned up Reactions PR
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Discord
|
||||
namespace Discord
|
||||
{
|
||||
public interface IReaction
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user