Fixed GetReactionsUsersAsync returning an empty enumerable
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Discord.Rest
|
|||||||
{
|
{
|
||||||
var args = new GetReactionUsersParams();
|
var args = new GetReactionUsersParams();
|
||||||
func(args);
|
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,
|
public static async Task PinAsync(IMessage msg, BaseDiscordClient client,
|
||||||
|
|||||||
Reference in New Issue
Block a user