private async void DiscordServiceServerOnCoinFlipJoin(object sender, CoinFlipJoinRequest request) { var @event = Event.CoinFlipJoin; var msg = $"{request.Request.UserId} JOINED COINFLIP, Value: {request.Request.Value}: {request.Request.CoinFlipId}"; await SendMessageToUserSubscribed(@event, msg); }
public Task <EmptyResponse> CoinFlipCreateJoin(CoinFlipJoinRequest request) { return(SendGrpcAction(async() => await _discordService.CoinFlipJoinAsync(request, DefaultSettings.GetDefaultSettings(2)), false)); }
public override Task <EmptyResponse> CoinFlipJoin(CoinFlipJoinRequest request, ServerCallContext context) { OnCoinFlipJoin?.Invoke(this, request); return(Task.FromResult(new EmptyResponse())); }