Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ export default async function constructAuctionPageDisplayContainer({

if (!botEmojis) throw new Error("Bot emojis not found");

const auctionsTextDisplay = auctions.length > 0
? auctions
.map((auction, _) => constructAuctionDisplay(auction, botEmojis))
.join("\n\n")
: "No auctions found for the given criteria.";

const container = new ContainerBuilder()
.addTextDisplayComponents(
(t) => t.setContent(`### ${title || "Auction Search"}`),
Expand All @@ -47,9 +53,7 @@ export default async function constructAuctionPageDisplayContainer({
.addSeparatorComponents((s) => s.setSpacing(SeparatorSpacingSize.Small))
.addTextDisplayComponents((t) =>
t.setContent(
auctions
.map((auction, _) => constructAuctionDisplay(auction, botEmojis))
.join("\n\n")
auctionsTextDisplay
)
)
.addSeparatorComponents((s) => s.setSpacing(SeparatorSpacingSize.Small))
Expand Down
2 changes: 1 addition & 1 deletion src/shared/displayContainers/genericErrorContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default new ContainerBuilder()
.addTextDisplayComponents((t) => t.setContent("### An Error Occurred"))
.addTextDisplayComponents((t) =>
t.setContent(
"Sorry, something went wrong while processing your request. Please contact @andriotis and tell him to deal with the mess"
"Sorry, something went wrong while processing your request. Please report this error to the MinionAH Developers."
)
)
.addSeparatorComponents((s) => s.setSpacing(SeparatorSpacingSize.Large))
Expand Down
Loading