feature: Add GetEmotesAsync to IGuild (#1781)
This commit is contained in:
@@ -496,6 +496,11 @@ namespace Discord.Rest
|
||||
}
|
||||
|
||||
//Emotes
|
||||
public static async Task<IReadOnlyCollection<GuildEmote>> GetEmotesAsync(IGuild guild, BaseDiscordClient client, RequestOptions options)
|
||||
{
|
||||
var models = await client.ApiClient.GetGuildEmotesAsync(guild.Id, options).ConfigureAwait(false);
|
||||
return models.Select(x => x.ToEntity()).ToImmutableArray();
|
||||
}
|
||||
public static async Task<GuildEmote> GetEmoteAsync(IGuild guild, BaseDiscordClient client, ulong id, RequestOptions options)
|
||||
{
|
||||
var emote = await client.ApiClient.GetGuildEmoteAsync(guild.Id, id, options).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user