mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-18 00:33:59 +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 { PermissionFlagsBits, SlashCommandBuilder, type TextBasedChannel } from 'discord.js'
|
||||||
import type { Command } from '.'
|
import type { Command } from '.'
|
||||||
|
|
||||||
@@ -48,7 +49,9 @@ export default {
|
|||||||
ephemeral: true,
|
ephemeral: true,
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await interaction.reply({})
|
await interaction.reply({
|
||||||
|
embeds: [createStackTraceEmbed(e)],
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
} satisfies Command
|
} satisfies Command
|
||||||
|
|||||||
Reference in New Issue
Block a user