public async Task <Response> Handle(Request request, CancellationToken cancellationToken) { var image = _imagesService.GetRandomWahImage(); await _discordService.SendMessageWithImageAsync(request.ServerId, request.ChannelId, null, image); return(new Response()); }
public async Task <Response> Handle(Request request, CancellationToken cancellationToken) { var randomImage = _imagesService.GetRandomWahImage(); await _discordService.SendMessageWithImageAsync(198933308694986752UL, 786345258786488361UL, "Test 123", randomImage); return(new Response()); }
public async Task <Response> Handle(Request request, CancellationToken cancellationToken) { var image = _imagesService.GetRandomWahImage(); var servers = _masterDataService.GetAllDiscordServers(); foreach (var server in servers) { foreach (var channelId in server.TargetChannelIds) { await _discordService.SendMessageWithImageAsync(server.ServerId, channelId, null, image); } } return(new Response()); }