Skip to content

Commit

Permalink
Block quote over quote formatting to account for new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
zuzuvelas committed Apr 26, 2024
1 parent d765062 commit 9097582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/ask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
InteractionResponse,
escapeMarkdown,
bold,
quote,
quote, blockQuote,

Check failure on line 7 in src/commands/ask.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/commands/ask.ts#L7

Insert `⏎·` (prettier/prettier)
} from 'discord.js'
import {
Discord,
Expand Down Expand Up @@ -96,7 +96,7 @@ class Ask {
const answer = await this.fetchAnswer(question, units)
return interaction.reply(
`### ${escapeMarkdown(question)}
${quote(answer)}`
${blockQuote(answer)}`
)
} catch (err) {
console.error(err)
Expand Down

0 comments on commit 9097582

Please sign in to comment.