Make Buttons able to copy text to clipboard
Hello,
I'm actually coding a bot and there is a moment where I need to make the user copy some text but its very difficult because this is not built in Discord.
Currently I created a website where users are redirected via a MessageButton that put the text in their clipboard (trying to adapt to all different browsers, e.g. Firefox which is so protected that the user must click on a button to copy the text).
This solution works but its very painfull and slow because the user is redirected out of Discord client.
My idea is to create another type of button (or another "style" of button) that the Discord client understand to be a "copy to clipboard" button. I think this can be very helpfull to many developers because its 100x more simple and the user understand more what is doing : all stay on Discord.
If you are reading this :
1) Thanks :)
2) Let me know in comments what you think about this idea and if there is things that can be added in addition of that.
Cordially
Wumpus.js 🎉
-
I would also greatly appreciate if a copy-to-clipboard button would be implemented. One thing I would like to add is: It should be a button that is easily distinguishable from the other buttons and the user should immediately understand that this button copies something to the clipboard.
0
Please sign in to leave a comment.
Comments
1 comment