Skip to content

Commit

Permalink
embeds init
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRodeo committed Feb 20, 2024
1 parent efa9a26 commit 3b733a3
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion commands/advancedCommandsCreation/rr.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
const {SlashCommandBuilder} = require('discord.js');
const { EmbedBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName("createreactionroles")
.setDescription("This command creates a reaction roles in the corresponding channel!"),
async execute(interaction){
interaction.reply("checking!!!!");
const exampleEmbed = new EmbedBuilder()
.setColor(0x0099FF)
.setTitle('Some title')
.setURL('https://discord.js.org/')
.setAuthor({ name: 'Some name', iconURL: 'https://i.imgur.com/AfFp7pu.png', url: 'https://discord.js.org' })
.setDescription('Some description here')
.setThumbnail('https://i.imgur.com/AfFp7pu.png')
.addFields(
{ name: 'Regular field title', value: 'Some value here' },
{ name: '\u200B', value: '\u200B' },
{ name: 'Inline field title', value: 'Some value here', inline: true },
{ name: 'Inline field title', value: 'Some value here', inline: true },
)
.addFields({ name: 'Inline field title', value: 'Some value here', inline: true })
.setImage('https://i.imgur.com/AfFp7pu.png')
.setTimestamp()
.setFooter({ text: 'Some footer text here', iconURL: 'https://i.imgur.com/AfFp7pu.png' });

const channel = interaction.client.channels.cache.get('1106876336204677161');

channel.send({ embeds: [exampleEmbed] });
}
};

0 comments on commit 3b733a3

Please sign in to comment.