generated from Baipyrus/DiscordJS-Template
clean up: consistency
This commit is contained in:
parent
c666f5bf8d
commit
089ccade66
@ -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}"`
|
||||||
}.`
|
}.`
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user