-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efa9a26
commit 3b733a3
Showing
1 changed file
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] }); | ||
} | ||
}; |