Merge pull request #574 from Sentinent/get-userreactions-fix

Fixed GetReactionsUsersAsync returning an empty enumerable
This commit is contained in:
RogueException
2017-03-18 08:22:48 -03:00
committed by GitHub

View File

@@ -53,7 +53,7 @@ namespace Discord.Rest
{
var args = new GetReactionUsersParams();
func(args);
return (await client.ApiClient.GetReactionUsersAsync(msg.Channel.Id, msg.Id, emoji, args, options).ConfigureAwait(false)).Select(u => u as IUser).Where(u => u != null).ToImmutableArray();
return (await client.ApiClient.GetReactionUsersAsync(msg.Channel.Id, msg.Id, emoji, args, options).ConfigureAwait(false)).Select(u => RestUser.Create(client, u)).ToImmutableArray();
}
public static async Task PinAsync(IMessage msg, BaseDiscordClient client,