public async Task Bid(double _price, string ticker, string user, DataBaseHandlingService db, CommandHandlingService comm) { price = _price; currentWinner = ticker; currentUser = user; string type = (string)await db.GetFieldAsync(industryID, "Type", "industries"); EmbedFieldBuilder typeField = new EmbedFieldBuilder().WithIsInline(true).WithName("Type:").WithValue($"Industry Auction"); EmbedFieldBuilder companyField = new EmbedFieldBuilder().WithIsInline(true).WithName("ID:").WithValue(industryID); EmbedFieldBuilder amountField = new EmbedFieldBuilder().WithIsInline(true).WithName("Type:").WithValue(type); EmbedFieldBuilder priceField = new EmbedFieldBuilder().WithIsInline(true).WithName("Price:").WithValue("$" + price); EmbedFieldBuilder winnerField = new EmbedFieldBuilder().WithIsInline(true).WithName("Highest Bidder: ").WithValue(currentWinner); EmbedBuilder emb = new EmbedBuilder().WithTitle("Stock Market Offer").WithDescription($"Use the command `&bid [ticker] {id.ToString()} [price]` to accept this offer.").WithFooter($"Transaction ID: {id.ToString()}").AddField(typeField).AddField(companyField).AddField(amountField).AddField(priceField).AddField(winnerField).WithColor(Color.Green); await comm.EditEmbedTask((string)await db.GetFieldAsync("MarketChannel", "channel", "system"), messageID, emb.Build()); }