Is there a way I can allow someone to upload a file to my bot outside of a slash command option?

I'm trying to make an interactive setup of something that involves uploading a file. Previously, it has been done through a file upload option in a slash command, but I was wondering if there was any way to do so via a component or a modal or something similar. If not, how can I suggest this feature to Discord? It would be extremely useful.
19 Replies
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIR16mo ago
discord.js@14.8.0, node v18.15.0 no error
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIR16mo ago
Yeah, it's not, as my bot does not have message content intent. Thanks anyway. Is there a way I can suggest it to Discord?
d.js docs
d.js docs16mo ago
We are not Discord, just some nerds who develop Discord bots! • /report reports (harassment/hacking/spam/abuse) and appeals • /support anything Discord related • /billing payment/nitro • /feedback feedback/feature requests
OIRNOIR
OIRNOIR16mo ago
thx
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIR16mo ago
Yeah Discord rarely listens to their community but fingers crossed they listen to this
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIR16mo ago
I'll send the link when i'm done typing it out. I'm writing to look more professional and stand out from the rest of the forum.
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIR16mo ago
Discord
File Upload Component
There should be a component within either messages or modals that allows users to upload files directly to a bot in the form of an interaction. The file option for slash commands is a great start, ...
Ashish
Ashish16mo ago
If I remember correctly, you could still get the attachment and contents of the bot IF they have pinged your bot or dm your bot
OIRNOIR
OIRNOIR16mo ago
Yeah, but that's pretty inconvenient to ask for
Ashish
Ashish16mo ago
Yea true
SpecialSauce
SpecialSauce16mo ago
Or a reply?
OIRNOIR
OIRNOIR16mo ago
As I've said, replies (and pings) are pretty clunky to have to ask for
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIR16mo ago
Yeah. Still, I would hope that Discord listens to this.