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 User2y ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIROP2y ago
[email protected], node v18.15.0 no error
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIROP2y 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 docs2y 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
OIRNOIROP2y ago
thx
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIROP2y ago
Yeah Discord rarely listens to their community but fingers crossed they listen to this
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIROP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIROP2y 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
Ashish2y 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
OIRNOIROP2y ago
Yeah, but that's pretty inconvenient to ask for
Ashish
Ashish2y ago
Yea true
SpecialSauce
SpecialSauce2y ago
Or a reply?
OIRNOIR
OIRNOIROP2y ago
As I've said, replies (and pings) are pretty clunky to have to ask for
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
OIRNOIR
OIRNOIROP2y ago
Yeah. Still, I would hope that Discord listens to this.
Want results from more Discord servers?
Add your server