clean up: consistency

This commit is contained in:
Baipyrus 2024-04-05 11:56:24 +02:00
parent c666f5bf8d
commit 089ccade66

View File

@ -9,7 +9,7 @@ import Module from 'module';
const executeCommand = async (interaction, command) => { const executeCommand = async (interaction, command) => {
// Try executing command // Try executing command
try { try {
console.info(`[INFO] Command ${interaction.commandName} was executed.`); console.info(`[INFO] Command '${interaction.commandName}' was executed.`);
await command.execute(interaction); await command.execute(interaction);
} catch (error) { } catch (error) {
console.error(error); console.error(error);
@ -38,7 +38,7 @@ const executeCommand = async (interaction, command) => {
const genericExecute = async (interaction, command, name, description, cmdName) => { const genericExecute = async (interaction, command, name, description, cmdName) => {
try { try {
console.info( console.info(
`[INFO] Command ${cmdName ?? interaction.commandName ?? 'anonymous'} ${ `[INFO] Command '${cmdName ?? interaction.commandName ?? 'anonymous'}' ${
description ?? `used "${name}"` description ?? `used "${name}"`
}.` }.`
); );