Logging and ephemeral messages #11
@@ -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')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user