public async Task RequestDropAsync([Summary(DropItemSummary)][Remainder] string request) { var cfg = Globals.Bot.Config; var items = ItemParser.GetItemsFromUserInput(request, cfg.DropConfig, cfg.DropConfig.UseLegacyDrop ? ItemDestination.PlayerDropped : ItemDestination.HeldItem); MultiItem.StackToMax(items); await DropItems(items).ConfigureAwait(false); }
public async Task RequestDropAsync([Summary(DropItemSummary)][Remainder] string request) { if (Globals.Bot.CurrentUserId != Context.User.Id) { return; } var cfg = Globals.Bot.Config; var items = DropUtil.GetItemsFromUserInput(request, cfg.DropConfig, false); MultiItem.StackToMax(items); await DropItems(items).ConfigureAwait(false); }