#slash command
31 messages · Page 1 of 1 (latest)
did you deploy your command
thats....not how you send an image
I recommend reading the guide
please do not ping me every time
you dont need to pass them in as object iirc
by not passing in an object
you should be able to pass it in as plain url (iirc) or attachmentbuilder
try it and see
and do you get an error?
also you should be able to just pass in gifs as content as they would embed
thats not an error, rather the result of it
and which one
MessageEmbed was renamed to EmbedBuilder for v14
image doesn’t seem to be working
so you’ll need to get another link that works
and please don’t ping me for help
i tried the link myself and it’s not working so it’s not valid
you’ll need to find that gif another way
@glacial kraken can you send whole command here
@glacial kraken ```javascript
const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('dailylogin')
.setDescription('Pokazuje Jak Odebrać Daily Login!'),
async execute(interaction) {
const embed = new EmbedBuilder()
.setImage('https://cdn.discordapp.com/attachments/1119686151981248603/1119686311025057873/Daily.gif')
.setDescription('Description of the image');
interaction.reply({ embeds: [embed] });
},
};
You need to require EmbedBuilder too from discord.js
that's not the issue
His link works fine
not in an embed image
Creating Your Bot: Registering slash commands