Esempio n. 1
0
        public async Task AddingQuiz(string type, string imageUrl, string fullImage, string diff, [Remainder] string correct)
        {
            if (!IsHavingThisRole((SocketGuildUser)Context.User, "Developer") &&
                !IsHavingThisRole((SocketGuildUser)Context.User, "Quiz Manager"))
            {
                return;
            }
            Quiz made = Quizzes.CreatingQuiz(type, imageUrl, fullImage, diff, correct);

            if (made == null)
            {
                await Context.Channel.SendMessageAsync("`Failed to Make Quiz`");

                return;
            }
            await Context.Channel.SendMessageAsync("`Quiz has been made \nDont forget to add the hints`");
        }