#slash command

31 messages · Page 1 of 1 (latest)

dapper talonBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

spark falcon
#

did you deploy your command

tame palmBOT
#

guide Creating Your Bot: Registering slash commands
read more

spark falcon
#

thats....not how you send an image

tame palmBOT
spark falcon
#

I recommend reading the guide

spark falcon
#

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

pale terrace
#

MessageEmbed was renamed to EmbedBuilder for v14

pale terrace
#

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

spark falcon
#

then your link isnt working

#

not djs related

pale terrace
#

i tried the link myself and it’s not working so it’s not valid

#

you’ll need to find that gif another way

tame shoal
#

@glacial kraken can you send whole command here

tame shoal
#

@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

pale terrace
#

that's not the issue

tame shoal
#

His link works fine

pale terrace
#

not in an embed image