public async Task PrintRule(int id) { if (_ruleTable.Has(id)) { EmbedBuilder eb = new EmbedBuilder() .WithColor(new Color(0, 255, 255)) .WithTitle($"Rule { id }") .WithDescription(_ruleTable.Get(id)) .WithFooter("To see all the rules go to #info."); await ReplyAsync(string.Empty, false, eb.Build()); } else { throw new System.Exception("Invalid rule ID."); } }
public async Task PrintRule(int id) { (Context.User as IGuildUser).EnsureStaff(); if (_ruleTable.Has(id)) { EmbedBuilder eb = new EmbedBuilder() .WithColor(new Color(0, 255, 255)) .WithTitle($"Rule { id }") .WithDescription(_ruleTable.Get(id)) .WithFooter("To see all the rules go to #info."); await ReplyAsync(string.Empty, false, eb); } else { await ReplyAsync("Invalid rule ID."); } }