Esempio n. 1
0
        public async Task RemoveQuote(int quoteId)
        {
            if (quoteId <= QuoteHandler.QuoteList.Count)
            {
                string quote = QuoteHandler.QuoteList[quoteId - 1];
                QuoteHandler.RemoveAndUpdateQuotes(quoteId - 1);

                EmbedBuilder eb = new EmbedBuilder()
                                  .WithDescription(Context.User.Mention + " Quote Removed\nQuote: " + quote)
                                  .WithColor(210, 47, 33);

                await ReplyAsync("", false, eb.Build());
            }
            else
            {
                EmbedBuilder eb = new EmbedBuilder()
                                  .WithDescription(Context.User.Mention + " There is no quote with that Id")
                                  .WithColor(47, 33, 210);

                await ReplyAsync("", false, eb.Build());
            }
        }