public async Task DenyQuote(int quoteId) { EmbedBuilder eb; if (quoteId == 0) { eb = new EmbedBuilder { Title = "Invalid Syntax / Invalid ID", Description = "**Syntax:** " + Guild.Load(Context.Guild.Id).Prefix + "denyquote [id]", Color = new Color(210, 47, 33) }; await ReplyAsync("", false, eb.Build()); return; } RequestQuote q = RequestQuote.RequestQuotes.Find(quote => quote.RequestId == quoteId); if (q == null) { eb = new EmbedBuilder { Title = "Unable to find Quote", Description = "Unable to find a request quote with that ID in the database.", Color = new Color(210, 47, 33) }; await ReplyAsync("", false, eb.Build()); return; } RequestQuote.RemoveRequestQuote(quoteId); AdminLog.Log(Context.User.Id, Context.Message.Content, Context.Guild.Id); eb = new EmbedBuilder { Title = "Quote #" + quoteId + " rejected", Author = new EmbedAuthorBuilder { Name = "@" + q.CreatedBy.GetUser().Username, IconUrl = q.CreatedBy.GetUser().GetAvatarUrl() }, Description = q.QuoteText, Footer = new EmbedFooterBuilder { Text = "Rejected by @" + Context.User.Username, IconUrl = Context.User.GetAvatarUrl() } }; await ReplyAsync("", false, eb.Build()); await Configuration.Load().LogChannelId.GetTextChannel().SendMessageAsync("", false, eb.Build()); }