Added logging of subcommands as well
This commit is contained in:
@@ -8,10 +8,16 @@ module.exports = {
|
||||
|
||||
execute(interaction) {
|
||||
if (interaction.isCommand()) {
|
||||
console.log(interaction.user.username + "#" +
|
||||
interaction.user.discriminator + " ran " +
|
||||
try {
|
||||
console.log(interaction.user.username + " ran " +
|
||||
interaction.commandName + " " +
|
||||
interaction.options.getSubcommand()
|
||||
)
|
||||
} catch {
|
||||
console.log(interaction.user.username + " ran " +
|
||||
interaction.commandName
|
||||
)
|
||||
}
|
||||
} else if (interaction.isButton()) {
|
||||
console.log(interaction.user.username + "#" +
|
||||
interaction.user.discriminator + " clicked " +
|
||||
|
||||
Reference in New Issue
Block a user