Changed small functions to methods
Added custom color function
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { channelMention, ChannelType, 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 {
|
||||
@@ -55,11 +54,11 @@ export default {
|
||||
icon_url: interaction.user.avatarURL() || undefined
|
||||
},
|
||||
title: "Slowmode Update",
|
||||
description: removeIndents(`
|
||||
description: `
|
||||
**Channel:** ${channelMention(channel.id)}
|
||||
**Slowmode:** ${seconds} seconds
|
||||
**Mod:** ${userMention(interaction.user.id)}
|
||||
`),
|
||||
`.removeIndents(),
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: interaction.user.avatarURL() || ""
|
||||
|
||||
Reference in New Issue
Block a user