Skip to content

Commit

Permalink
refactor: renamed "stack trace" button to "show stack trace" in errors
Browse files Browse the repository at this point in the history
This should hopefully make it feel less scary to those who don't know what stack traces are.
  • Loading branch information
Pkmmte committed Apr 29, 2023
1 parent a6ed21a commit 07bd8f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-spies-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@roboplay/robo.js': patch
---

refactor: renamed "stack trace" button to "show stack trace" in errors
4 changes: 2 additions & 2 deletions packages/discord/src/core/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ async function printErrorResponse(error: unknown, interaction: unknown, details?

const row = new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder({
label: 'Stack trace',
label: 'Show stack trace',
style: ButtonStyle.Danger,
customId: 'stack_trace'
})
Expand Down Expand Up @@ -253,7 +253,7 @@ async function printErrorResponse(error: unknown, interaction: unknown, details?
components: [
new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder({
label: 'Stack trace',
label: 'Show stack trace',
style: ButtonStyle.Danger,
customId: 'stack_trace',
disabled: true
Expand Down

0 comments on commit 07bd8f0

Please sign in to comment.