Exemplo n.º 1
0
        public override async void Action(object stateInfo)
        {
            ImgurPicture picture = await FunctionToUse(Query);

            if (picture != null)
            {
                await ChannelRequested.SendMessageAsync($"{picture.title ?? ""}\n{picture.link}");
            }
            else
            {
                await ChannelRequested.SendMessageAsync("Slow the meme train");
            }
        }
 public override async void Action(object stateInfo)
 {
     await ChannelRequested.SendMessageAsync(await FunctionToUse(Query));
 }