Пример #1
0
        public async Task AddingItem(string name, string type, bool active, int value, string rarity, int countdown, [Remainder] string description = "")
        {
            if (!IsHavingThisRole((SocketGuildUser)Context.User, "Developer") &&
                !IsHavingThisRole((SocketGuildUser)Context.User, "Quiz Manager"))
            {
                return;
            }
            Item made = Drops.CreatingItem(name, type, active, value, rarity, countdown, description);

            if (made == null)
            {
                await Context.Channel.SendMessageAsync("`Failed to Make Item`");

                return;
            }
            await Context.Channel.SendMessageAsync("`Item has been made`");
        }