Changed small functions to methods
Added custom color function
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { channelMention, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
@@ -53,11 +52,11 @@ export default {
|
||||
icon_url: interaction.user.avatarURL() || undefined
|
||||
},
|
||||
title: "Messages Cleared",
|
||||
description: removeIndents(`
|
||||
description: `
|
||||
**Channel:** ${channelMention(channel.id)}
|
||||
**Amount:** \`${messages.size}\` messages
|
||||
**Mod:** ${userMention(interaction.user.id)}
|
||||
`),
|
||||
`.removeIndents(),
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: interaction.user.avatarURL() || ""
|
||||
|
||||
Reference in New Issue
Block a user