mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
more readable logs
This commit is contained in:
parent
8b677f9ec4
commit
6ad65e7019
1 changed files with 3 additions and 3 deletions
|
@ -58,13 +58,13 @@ class CommandHandler extends BaseEvent {
|
|||
}
|
||||
|
||||
client.logger.cmd(
|
||||
`User ${interaction.user.getUsername()} used ${command.command.name} in ${interaction.guild ? interaction.guild.name : "DM"} with arguments: ${
|
||||
`[${interaction.guild ? interaction.guild.name : "DM"}]: [${interaction.user.getUsername()}] => /${command.command.name}${
|
||||
interaction.options.data.length > 0
|
||||
? interaction.options.data
|
||||
? ", args: " + interaction.options.data
|
||||
.map(arg => {
|
||||
return `${arg.name}: ${arg.value}`;
|
||||
}).join(", ")
|
||||
: "no args"
|
||||
: ""
|
||||
}`,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue