Beispiel #1
0
        public async Task ShowAllItems()
        {
            var    temp = Drops.GetItems();
            string text = "";

            foreach (var t in temp)
            {
                string act = (t.Active) ? "Active":"Passive";
                text += $"Item-{t.ID}\nName : {t.Name}\nUsage : {act}\nType : {t.Type}\nRarity : {t.Rarity}\n";
                text += "\n";
                if ((text.Length + 300) > 2048)
                {
                    await Context.Channel.SendMessageAsync($"`{text}`");

                    text = "";
                }
            }
            if (text.Equals(""))
            {
                await Context.Channel.SendMessageAsync("`NO ITEM HAS BEEN MADE BE THE FIRST TO MAKE ONE!`");

                return;
            }
            await Context.Channel.SendMessageAsync($"`{text}`");
        }