Skip to content

Commit

Permalink
Make error reply ephemeral
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardofano committed Apr 26, 2024
1 parent a72f246 commit aefdc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/ask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Ask {
return interaction.reply(`### ${escapeMarkdown(question)}\n${blockQuote(answer)}`)
} catch (err) {
console.error(err)
return interaction.reply('There was a problem communicating with Wolfram Alpha.')
return interaction.reply({ content: 'There was a problem communicating with Wolfram Alpha.', ephemeral: true })
}
}

Expand Down

0 comments on commit aefdc50

Please sign in to comment.