Attachment Issue

How I can upload a video using a Slash Command attachment, when I use it nothing appears
const Video = interaction.options.getAttachment('video');

const Work = new EmbedBuilder()
.setTitle(':work:⠀**`Evidence of Skills & Developments`**⠀:work:')
.setColor(0x3453b3)
.addFields(
{ name: '', value: '', inline: false },
{ name: '\n\**:Title:⠀TITLE:**', value: `\n\⠀└⠀${Title}`, inline: true },
{ name: '\n\**:CoolBender:⠀DEVELOPED BY:**', value: `\n\ └⠀${interaction.user}`, inline: true },
{ name: '\n\**:Date:⠀DATE:**', value: `\n\⠀└⠀<t:${Math.floor(Date.now() / 1000)}:d>`, inline: false },
{ name: '\n\**:PixelPencil:⠀DESCRIPTION:**', value: `\n\> ${Description}`, inline: true },
{ name: '\n\**:program:⠀PROGRAMS:**',value: ` ${'
const Video = interaction.options.getAttachment('video');

const Work = new EmbedBuilder()
.setTitle(':work:⠀**`Evidence of Skills & Developments`**⠀:work:')
.setColor(0x3453b3)
.addFields(
{ name: '', value: '', inline: false },
{ name: '\n\**:Title:⠀TITLE:**', value: `\n\⠀└⠀${Title}`, inline: true },
{ name: '\n\**:CoolBender:⠀DEVELOPED BY:**', value: `\n\ └⠀${interaction.user}`, inline: true },
{ name: '\n\**:Date:⠀DATE:**', value: `\n\⠀└⠀<t:${Math.floor(Date.now() / 1000)}:d>`, inline: false },
{ name: '\n\**:PixelPencil:⠀DESCRIPTION:**', value: `\n\> ${Description}`, inline: true },
{ name: '\n\**:program:⠀PROGRAMS:**',value: ` ${'
- '+Program+'\n'+"- "+[Program2 ""]+'\n'+"- "+[Program3 ""]+'
'}`, inline: false },
{ name: '\n\**:code:⠀LANGUAJES:**',value: ` ${'
'}`, inline: false },
{ name: '\n\**:code:⠀LANGUAJES:**',value: ` ${'
- '+Languajes+'
'}\n\ ${'
'}\n\ ${'
- '+Languajes2+'
' || ""}\n\ ${'
' || ""}\n\ ${'
- '+Languajes3+'
' || ""}\n\ ${'
' || ""}\n\ ${'
- '+Languajes4+'
' || ""}\n\ ${'
' || ""}\n\ ${'
- '+Languajes5+'
' || ""}`, inline: false },
{ name: '\n\**:Technologies:⠀TECHNOLOGIES:**',value: ` ${'
' || ""}`, inline: false },
{ name: '\n\**:Technologies:⠀TECHNOLOGIES:**',value: ` ${'
- '+Technologies+'
'}\n\ ${'
'}\n\ ${'
- '+Technologies2+'
' || ""}\n\ ${'
' || ""}\n\ ${'
- '+Technologies3+'
' || ""}`, inline: true },
)
.setImage(Video.url)
.setFooter({ text: 'Property of 01_ixfox',});
' || ""}`, inline: true },
)
.setImage(Video.url)
.setFooter({ text: 'Property of 01_ixfox',});
No description
22 Replies
d.js toolkit
d.js toolkit2d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
d.js docs
d.js docs2d ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
01_ixfox
01_ixfoxOP2d ago
okei
01_ixfox
01_ixfoxOP2d ago
Pastebin
const { EmbedBuilder, SlashCommandBuilder, MessageFlags } = require...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
treble/luna
treble/luna2d ago
also embeds cant show videos
01_ixfox
01_ixfoxOP2d ago
oh you know why?
treble/luna
treble/luna2d ago
because discord didnt make it so, you have to ask them
01_ixfox
01_ixfoxOP2d ago
and you know any way to send videos?
treble/luna
treble/luna2d ago
just send them directly without the embed
01_ixfox
01_ixfoxOP2d ago
oh mediagallery? hmmmmmmm
01_ixfox
01_ixfoxOP2d ago
like this?
No description
01_ixfox
01_ixfoxOP2d ago
how make one in djs
d.js docs
d.js docs2d ago
:class: MediaGalleryBuilder [email protected] A builder that creates API-compatible JSON data for a container.
01_ixfox
01_ixfoxOP2d ago
alr tysm @Qjuh a question, How can I make the embed come out first and then the video
01_ixfox
01_ixfoxOP2d ago
No description
01_ixfox
01_ixfoxOP2d ago
I want to exactly recreate what my screenshot shows i solve it
01_ixfox
01_ixfoxOP2d ago
No description
01_ixfox
01_ixfoxOP2d ago
but i have another issue
01_ixfox
01_ixfoxOP2d ago
No description
01_ixfox
01_ixfoxOP2d ago
why they dont inline
01_ixfox
01_ixfoxOP2d ago
No description
01_ixfox
01_ixfoxOP2d ago
tysm last question of casulity do you know how many MB a command allows at most?

Did you find this page helpful?