mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
feat(bots/discord/commands/reply): send stacktrace when failed
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { createStackTraceEmbed } from '$/utils/discord/embeds'
|
||||
import { PermissionFlagsBits, SlashCommandBuilder, type TextBasedChannel } from 'discord.js'
|
||||
import type { Command } from '.'
|
||||
|
||||
@@ -48,7 +49,9 @@ export default {
|
||||
ephemeral: true,
|
||||
})
|
||||
} catch (e) {
|
||||
await interaction.reply({})
|
||||
await interaction.reply({
|
||||
embeds: [createStackTraceEmbed(e)],
|
||||
})
|
||||
}
|
||||
},
|
||||
} satisfies Command
|
||||
|
||||
Reference in New Issue
Block a user