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, but it would be extremely useful to many developers in the community (including myself) if this existed.
For example, my bot has a feature that has an option for users to upload an image for added customization. In the past, this feature has been setup with a slash command, but this slash command has around 20 options and is hard for new users to utilize. I am making an interactive version of it, replacing options with modals, buttons, and select menus, but I cannot receive the image file from the user because there is no file upload component and my bot does not have the message content intent (and I do not intend to apply for it).
The only way I can receive the image file from a user, in the current situation, is to ask them to send me the link to the image, and to warn them to not delete the image from the channel (or else the attachment will not be available).
It would save users and developers a huge hassle, and improve Discord's privacy (by making it not necessary to use the message content intent for this purpose), if this component were implemented.
-
You still receive message content if the message is directly related to the bot, e.g. if they mention the bot
0 -
donovan_dmc I know that, but still, asking users to ping the bot would be very inconvenient.
Additionally, my command is often done in a public channel where users might not want to have an image publicly visible as uploaded. It instead appears in an embed sent by the bot. A common reaction would be to delete the image, which would make it unavailable for the bot. That is a problem solved by the slash command option, and it would be very useful to have a component equivalent.
0 -
Not only is the above wildly incorrect, karltoo, but it looks like it was generated by chatgpt.
0
Войдите в службу, чтобы оставить комментарий.
Комментарии
Комментариев: 3