(interaction, client)
| 12 | export const helpBackButton = { |
| 13 | name: BACK_BUTTON_ID, |
| 14 | async execute(interaction, client) { |
| 15 | try { |
| 16 | if (!interaction.deferred && !interaction.replied) { |
| 17 | await interaction.deferUpdate(); |
| 18 | } |
| 19 | |
| 20 | const { embeds, components } = await createInitialHelpMenu(client); |
| 21 | await interaction.editReply({ |
| 22 | embeds, |
| 23 | components, |
| 24 | }); |
| 25 | } catch (error) { |
| 26 | if (error?.code === 40060 || error?.code === 10062) { |
| 27 | logger.warn('Help back button interaction already acknowledged or expired.', { |
| 28 | event: 'interaction.help.button.unavailable', |
| 29 | errorCode: String(error.code), |
| 30 | customId: interaction.customId, |
| 31 | interactionId: interaction.id, |
| 32 | }); |
| 33 | return; |
| 34 | } |
| 35 | |
| 36 | throw error; |
| 37 | } |
| 38 | }, |
| 39 | }; |
| 40 | |
| 41 | export const helpBugReportButton = { |
nothing calls this directly
no test coverage detected