Esempio n. 1
0
        public async Task NewTrivia()
        {
            var msg = await Context.Channel.SendMessageAsync("", false, TriviaGames.TrivaStartingEmbed().Build());

            Global.TriviaGames.Add(new TriviaGame(msg.Id, Context.User.Id));
            await msg.AddReactionAsync(TriviaGames.ReactOptions["1"]);

            await msg.AddReactionAsync(TriviaGames.ReactOptions["2"]);

            await msg.AddReactionAsync(TriviaGames.ReactOptions["3"]);

            await msg.AddReactionAsync(TriviaGames.ReactOptions["4"]);

            await msg.AddReactionAsync(TriviaGames.ReactOptions["ok"]);
        }
Esempio n. 2
0
        public async Task NewTrivia()
        {
            var msg = await Context.Channel.SendMessageAsync("", false, _triviaGames.TrivaStartingEmbed().Build());

            _triviaGames.NewTrivia(msg, Context.User);
        }