Пример #1
0
        public static Task DeleteAsync(this IGuildSticker sticker,
                                       IRestRequestOptions options = null, CancellationToken cancellationToken = default)
        {
            var client = sticker.GetRestClient();

            return(client.DeleteGuildStickerAsync(sticker.GuildId, sticker.Id, options, cancellationToken));
        }
Пример #2
0
        public static Task <IGuildSticker> ModifyAsync(this IGuildSticker sticker,
                                                       Action <ModifyGuildStickerActionProperties> action,
                                                       IRestRequestOptions options = null, CancellationToken cancellationToken = default)
        {
            var client = sticker.GetRestClient();

            return(client.ModifyGuildStickerAsync(sticker.GuildId, sticker.Id, action, options, cancellationToken));
        }
Пример #3
0
        public static Task DeleteAsync(this IGuildSticker sticker, IRestRequestOptions options = null)
        {
            var client = sticker.GetRestClient();

            return(client.DeleteGuildStickerAsync(sticker.GuildId, sticker.Id, options));
        }