chore: update contributor email

This commit is contained in:
PalmDevs
2024-03-30 14:49:17 +07:00
parent 669e24ca81
commit e25fc7d3c5
7 changed files with 12 additions and 17 deletions

View File

@@ -16,9 +16,9 @@
"url": "git+https://github.com/revanced/revanced-helper.git",
"directory": "bots/discord"
},
"author": "Palm <palmpasuthorn@gmail.com> (https://github.com/PalmDevs)",
"author": "Palm <palmdevelops@gmail.com> (https://github.com/PalmDevs)",
"contributors": [
"Palm <palmpasuthorn@gmail.com> (https://github.com/PalmDevs)",
"Palm <palmdevelops@gmail.com> (https://github.com/PalmDevs)",
"ReVanced <nosupport@revanced.app> (https://github.com/revanced)"
],
"license": "GPL-3.0-or-later",

View File

@@ -1,4 +1,4 @@
import { createErrorEmbed } from '$utils/discord/embeds'
import { createErrorEmbed, createStackTraceEmbed } from '$utils/discord/embeds'
import { on } from '$utils/discord/events'
export default on('interactionCreate', async (context, interaction) => {
@@ -66,12 +66,7 @@ export default on('interactionCreate', async (context, interaction) => {
} catch (err) {
logger.error(`Error while executing command ${interaction.commandName}:`, err)
await interaction.reply({
embeds: [
createErrorEmbed(
'An error occurred while executing this command',
'Please report this to the developers.',
),
],
embeds: [createStackTraceEmbed(err)],
ephemeral: true,
})
}