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•2y ago
Message Not Public
Sign In & Join Server To View
[email protected], node v18.15.0
no error
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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?
thx
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah
Discord rarely listens to their community but fingers crossed they listen to this
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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•2y ago
Message Not Public
Sign In & Join Server To View
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, ...
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
Yeah, but that's pretty inconvenient to ask for
Yea true
Or a reply?
As I've said, replies (and pings) are pretty clunky to have to ask for
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah. Still, I would hope that Discord listens to this.