2023-05-23 01:14:17 -04:00
|
|
|
import Discord from 'discord.js';
|
2023-04-14 06:47:58 -04:00
|
|
|
import TClient from '../client.js';
|
2023-01-11 03:33:38 -05:00
|
|
|
export default {
|
2023-03-05 05:04:10 -05:00
|
|
|
run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
|
|
|
|
const embed = new client.embed().setColor(Math.floor(Math.random()*16777215));
|
|
|
|
embed.addFields({name: 'Hex code', value: `#${embed.data.color.toString(16).toUpperCase()}`});
|
|
|
|
interaction.reply({embeds: [embed]});
|
|
|
|
},
|
2023-05-23 01:14:17 -04:00
|
|
|
data: new Discord.SlashCommandBuilder()
|
2023-03-05 05:04:10 -05:00
|
|
|
.setName('randomcolor')
|
|
|
|
.setDescription('Generate a random hex code')
|
2023-01-11 03:33:38 -05:00
|
|
|
}
|