Skip to content

Commit

Permalink
Changed command log to embedd
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangsihu committed Oct 18, 2024
1 parent 4489bc5 commit 6c2099c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/events/client/InteractionCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ export default class InteractionCreate extends Event {
const embed = new EmbedBuilder()
.setAuthor({
name: 'Slash - Command Logs',
iconURL: this.client.user?.avatarURL({
size: 2048,
})!,
iconURL: this.client.user?.avatarURL({ size: 2048 })!,
})
.setColor(this.client.config.color.blue)
.setDescription(
`**\`${command.name}\`** | Used By **${interaction.user.tag} \`${interaction.user.id}\`** From **${interaction.guild.name} \`${interaction.guild.id}\`**`,
.addFields(
{ name: 'Command', value: `\`${command.name}\``, inline: true },
{ name: 'User', value: `${interaction.user.tag} (\`${interaction.user.id}\`)`, inline: true },
{ name: 'Guild', value: `${interaction.guild.name} (\`${interaction.guild.id}\`)`, inline: true },
)
.setTimestamp();

Expand Down
6 changes: 4 additions & 2 deletions src/events/client/MessageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@ export default class MessageCreate extends Event {
iconURL: this.client.user?.avatarURL({ size: 2048 })!,
})
.setColor(this.client.config.color.green)
.setDescription(
`**\`${command.name}\`** | Used By **${message.author.tag} \`${message.author.id}\`** From **${message.guild.name} \`${message.guild.id}\`**`,
.addFields(
{ name: 'Command', value: `\`${command.name}\``, inline: true },
{ name: 'User', value: `${message.author.tag} (\`${message.author.id}\`)`, inline: true },
{ name: 'Guild', value: `${message.guild.name} (\`${message.guild.id}\`)`, inline: true },
)
.setTimestamp();

Expand Down

0 comments on commit 6c2099c

Please sign in to comment.