public async Task ShowAllQuiz() { if (!IsHavingThisRole((SocketGuildUser)Context.User, "Developer") && !IsHavingThisRole((SocketGuildUser)Context.User, "Quiz Manager")) { return; } string formattedText = ""; if (Quizzes.GetQuizzes().Count == 0) { await Context.Channel.SendMessageAsync("`No Quiz Has Been Made, Be The First to make One`"); return; } foreach (var q in Quizzes.GetQuizzes()) { formattedText += $"Quiz No-{q.ID}:\nDifficulty:{q.Difficulty}\n"; switch (q.Type) { case "image": formattedText += $"Type:Image\n"; break; case "sv": formattedText += $"Type:Shadowverse Pic\n"; break; case "ost": formattedText += $"Type:OST(OP/ED)\n"; break; case "bonus": formattedText += $"Type:Bonus\n"; break; case "voice-sv": formattedText += $"Type:Shadowverse Voice\n"; break; } formattedText += $"Right Answer : {q.RightAnswer}\n"; formattedText += $"{q.URL}\n\n"; if (formattedText.Length + 200 > 2048) { await Context.Channel.SendMessageAsync($"{formattedText}"); formattedText = ""; } } await Context.Channel.SendMessageAsync($"{formattedText}"); }