public async Task RandomMeme() { var message = await Context.Channel.SendMessageAsync("Getting a spicy meme right now..."); Meme meme = await redditService.GetRandomMemeAsync(); previousMemeUrl = meme.ImageUrl; await message.ModifyAsync(m => m.Content = meme.ToString()); }
public async void Execute() { Meme meme = await redditService.GetRandomTopMemeAsync(); var channel = discordClient.GetGuild(Convert.ToUInt64(configuration["GuildId"])) .GetTextChannel(Convert.ToUInt64(configuration["Modules:Memes:ChannelId"])); await channel.SendMessageAsync(meme.ToString()); }