public async Task RefreshAsync() { if (Context.User.Id == 196241129560211456) { await Downloader.DownloadImageListAsync(); ImagesUrl.Read(); await ReplyAsync("Refresh succesful!"); } else { await ReplyAsync("Only the admin can refresh the command list"); } }
public async Task ReactionAsync([Remainder][Summary("The input")] string input) { var name = input.ToLower().Sanitize(); var url = ImagesUrl.GetUrl(name); if (url == null) { await ReplyAsync("Image not found"); return; } await Downloader.DownloadAsync(url, name); await Context.Channel.SendFileAsync($"images/{name}.png"); }