This works for a Neocities website without a custom domain.
This should also work for a site with a custom domain, but I haven't tested it.
In the end, you'll get something like this:
Leave Discord be here. We will be coming back to it later.
This is where things can feel somewhat non-sensical, as we are working around some Neocities restrictions.
"Outside of any folders" is also called the root of your site.
Link to your dashboard, for convience
Tip
Discord is looking for a file just named discord
. To do this without supporter, we use an HTML document, as Neocities removes the .html from their URLs. While it's still technically an HTML file, Discord doesn't care.
Verify discord.html
was created right by opening this link. Does it successfully start editing discord.html
?
Note
Paste using CTRL+V. The Neocities editor doesn't suppost pasting using right click.
Warning
Make sure only the text Discord provided is in there. Even any spare spaces or blank lines will cause it to fail, and you'll have to go all the way back to this step.
This may feel weird to leave it as-is without a <body>
or anything else, but Discord wants it like this.
Verify discord.html
was updated right by opening this link. Does it successfully show the text in Discord's "content" textbox?
"Outside of any folders" is also called the root of your site.
Link to your dashboard, for convience
Tip
We didn't just create discord.html
inside of the .well-known
folder because Neocities' editor breaks when editing inside of a folder starting with a dot.
Verify discord.html
was moved right by opening this link. Can you see the editor, even if it never loads? Does clicking the "View" button successfully show the text in Discord's "content" textbox?
If it appears in your connections without any errors, you're done! Keep discord.html
where it is on your site as long as you want it connected to your Discord profile.
Open this link to troubleshoot with.
This is Discord's way of saying you are trying too fast. Just wait a little bit and try again.
If a different error pops up, go on.
If not, you might have moved discord.html
into the wrong place.
Click the "View" button in the Neocities editor and use your browser's "View Source" feature.
Compare with Discord to make sure it matches Discord's "content" textbox. You may have to scroll in Discord to view the entire thing.
Make sure there aren't any stray spaces or lines. You can easily check this by selecting the entire source with CTRL+A.
If you have random HTML you didn't add inside discord.html
, try disabling extensions or using a different browser and try again. Some extensions (most infamously ExpressVPN) are known to inject HTML in a way that affects saving on Neocities.
Copy the URL in Discord's "Name" textbox and paste it into your browser. Make sure it opens your discord.html
and doesn't 404.
hope discord updates their stuff so we can add the favicon as well