JoshKoiro / Nautical-Net

A Discord bot that provides images from Unsplash and Pexels to copy as links within Discord
GNU General Public License v3.0
0 stars 0 forks source link

Come up with a way to easily copy the links #2

Closed JoshKoiro closed 12 months ago

JoshKoiro commented 12 months ago

Maybe should be able to just click on the embed? or right click? Need to refer to the Discord API documentation to get some options of how to use the interface.

JoshKoiro commented 12 months ago

It looks like the first step is to set the embed setURL() method to equal the URL of the image.

next, we will have to use the clipboard object from the 'electron' module:

npm install electron --save

the main method we are looking to use is clipboard.writeText(URL)

Once this is done, perhaps we want to send some kind of notification or something.

JoshKoiro commented 12 months ago

Not sure if I will be able to do this or not with discord. Might push this off to be something lower priority.

JoshKoiro commented 12 months ago

Going to close this for now - maybe pick this up at a future date.