Ask coding questions

← Back to all posts
Is it possible to change html code automatically
LionDoesThings (2)

I am making something like this. By this I mean the Embeded stuff.

I have the server stuff set up and the problem I'm facing is I don't know where and how to put the image link in the code below.

<html>
	<meta property="og:type" content="website">
	<meta property="og:title" content="Title" />
	<meta property="og:description" content="Description" />
	<meta property="og:image" content="IMAGE LINK" />
	<meta name="twitter:card" content="summary_large_image">
	<meta name="theme-color" content="#FF1493" data-react-helmet="true">
</html>
Comments
hotnewtop
ryanbrwr (33)

Right now all that's in your repl is metas, which don't actually display anything

ryanbrwr (33)

Hey! In order to render an image in html you are going to have to do something like

<img src="https://cdn.discordapp.com/attachments/443121612519243808/821278636958679080/762683868230451200.png" alt="discord" />

LionDoesThings (2)

@ryanbrwr yeah you are correct but when I paste it in discord it will make an embedded message with the picture inside. I never wanted the html page to display anything.

ryanbrwr (33)

@LionDoesThings You can only create embeds through a webhook or discord bot I'm pretty sure

LionDoesThings (2)

@ryanbrwr nope the meta tag works too