Logging and ephemeral messages #11

Merged
magnetotail merged 2 commits from dev into master 2023-06-08 00:19:14 +02:00
Showing only changes of commit 84a0d7bbe1 - Show all commits

View File

@ -8,7 +8,7 @@ export async function execute(interaction: ExtendedInteraction) {
//console.dir(interaction, { depth: null })
if (interaction.isCommand()) {
logger.info(`Interaction is a command.`, { guildId: interaction.guild?.id })
await interaction.deferReply()
await interaction.deferReply({ ephemeral: true })
const command = client.commands.get(interaction.commandName)
if (!command)
return interaction.followUp('Invalid command')