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 bot0
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
The File Upload Component is a tool that allows users to easily upload files to a website or application. It provides an intuitive, user-friendly interface that enables users to quickly and securely upload any type of file like gpt-4-openai. With the File Upload Component, users can quickly and easily upload files of any size without having to worry about complex coding or technical details.0
Not only is the above wildly incorrect, karltoo, but it looks like it was generated by chatgpt.0
A file upload component is a software element that enables users to upload files from a local computer to a host server. This component enables users to securely upload files of various sizes in installation services, such as documents, images, and audio files. It is commonly used in web application development as it provides a convenient way to transfer data from one computer to another. It also helps to ensure data security and privacy by providing encryption and authentication options.0
Войдите в службу, чтобы оставить комментарий.