Some random thing

This commit is contained in:
Kwoth 2017-01-06 23:58:06 +01:00
parent 29f1f98c6a
commit 8c8aad8ae2

View File

@ -1,6 +1,8 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using ImageSharp;
using NadekoBot.Services.Discord;
using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
@ -16,6 +18,13 @@ namespace NadekoBot.Extensions
{
public static class Extensions
{
public static ReactionEventWrapper OnReactionAdded(this SocketMessage msg, Action<SocketReaction> reactionAdded)
{
var wrap = new ReactionEventWrapper(msg);
wrap.OnReactionAdded += reactionAdded;
return wrap;
}
public static void AddFakeHeaders(this HttpClient http)
{
http.DefaultRequestHeaders.Clear();