[Suggestion] Screenshare clips available as attachment in Slash Commands
Hello, as a developper i wanted to know if in the future it would be possible to post clips directly into a slash command attachment option as it would be much cleaner for users than downloading the clip and then use it in the slash commands.
-
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 -
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
Iniciar sesión para dejar un comentario.
Comentarios
2 comentarios