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.
Войдите в службу, чтобы оставить комментарий.