public static Task DeleteAsync(this IGuildEmoji emoji, IRestRequestOptions options = null, CancellationToken cancellationToken = default) { var client = emoji.GetRestClient(); return(client.DeleteGuildEmojiAsync(emoji.GuildId, emoji.Id, options, cancellationToken)); }
public static Task <IGuildEmoji> ModifyAsync(this IGuildEmoji emoji, Action <ModifyGuildEmojiActionProperties> action, IRestRequestOptions options = null, CancellationToken cancellationToken = default) { var client = emoji.GetRestClient(); return(client.ModifyGuildEmojiAsync(emoji.GuildId, emoji.Id, action, options, cancellationToken)); }
public static Task <IGuildEmoji> ModifyAsync(this IGuildEmoji emoji, Snowflake emojiId, Action <ModifyGuildEmojiActionProperties> action, IRestRequestOptions options = null) { var client = emoji.GetRestClient(); return(client.ModifyGuildEmojiAsync(emoji.Id, emojiId, action, options)); }
public static Task DeleteAsync(this IGuildEmoji emoji, Snowflake emojiId, IRestRequestOptions options = null) { var client = emoji.GetRestClient(); return(client.DeleteGuildEmojiAsync(emoji.Id, emojiId, options)); }