コード例 #1
0
        public async Task AddItemToDb(string itemName, ulong sellPrice, string rarity)
        {
            await Context.Channel.TriggerTypingAsync();

            await _items.AddItemAsync(itemName, sellPrice, rarity);

            await Context.Channel.SendSuccessAsync("Success!", $"Added {itemName} with sell price {sellPrice} and rarity {rarity}");
        }