-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Description
Overview
This issue does not allow the invoker of an application command to upload an attachment to an option that has type 11 (attachment type) if the invoker is missing the upload files permission in the guild channel they're trying to invoke in.
- If the invoker is missing this permission and tries to invoke the command, the option's popup stating, "Drag and drop or click to upload file", does not show on a Desktop client.
- If the invoker is missing the permission and tries to invoke the command on a mobile device, they're able to select an image from the camera roll but the application command will always fail due to a file uploading issue.
Note
Please note I haven't tested this with an optional parameter, only a required one.
Steps to Reproduce
- Create an application command with an option with type
attachment(Type 11) - Create a new channel and deny the
upload filespermission for the guild's default role (can also deny this permission through guild role settings) - Attempt to invoke the command in that channel as a user who has no special permissions.
Expected Behavior
Expected to be able to upload an attachment as the option requires and invoke the command.
Current Behavior
- When attempting to fill the option on a desktop client by uploading an attachment the client is unable to (Image 1).
- When attempting to fill the option on a mobile client (IOS) by selecting an attachment from the camera roll, the client is unable to upload the attachment (Image 2). Unlike the desktop client, the mobile client is able to upload an attachment and try to invoke the command.
Screenshots/Videos
Image 1
Image 2
Client and System Information
Library Used to Create Command: discord.py v2.0
Operating System: Windows 11, Microsoft Windows Version 21H2 (OS Build 22000.1219)
Desktop Client Information: Canary 159485 (3296862) Host 1.0.53 (27130) Windows 10 64-Bit (10.0.22000)
Mobile Client Information: App: 151.0 (36734) stable; Manifest: W/"0fb137862e288e8e6ca1ec4015239914"; Build Override: N/A; Device: iPhone15,3 OS 16.0.3;



