示例#1
0
        public async Task InspectInInventoryAsync(string dataId)
        {
            ItemData data = ItemHelper.GetItemData(Context.Account, dataId);
            int      slot = Context.Account.Items.IndexOf(data);

            if (data == null)
            {
                if (ItemHelper.Exists(dataId))
                {
                    await Context.Channel.SendMessageAsync(Format.Warning("You do not own this item."));
                }

                await Context.Channel.SendMessageAsync(Format.Warning("Could not find a data reference."));

                return;
            }

            await Context.Channel.SendMessageAsync(CatalogViewer.InspectItem(Context, Context.Account, data, slot));
        }