[Suggestion] Screenshare clips available as attachment in Slash Commands

Comments

2 comments

  • MineOnlyDiamonds

    It's possible! If you use Discord.js v13 or newer it's possible to get with this code:

    const { SlashCommandBuilder } = require('@discordjs/builders');
    const data = new SlashCommandBuilder()
    	.setName('gif')
    	.setDescription('Sends a random gif!')
    	.addAttachmentOption(option =>
    		option
                .setName('your Attachment')
    			.setRequired(true)
    	),

    I'm sure it's possible even in Discord.py or any other language.

    0
  • Lucky

    Thanks for answering but as of now, attachment options don't have access to discord local clips. What I mean is, as of now, you need to download the clip you made with Screenshare clips, download it and then use it in the attachment options. What I suggest is to remove the part where you need to download, just simply use the screenshare clip folder as an option for attachments. Don't know if I made it clear as I am not a native speaker.

    0

Please sign in to leave a comment.