This is a placeholder shitty HTML page just to get some docs going, expect more updates soon.
This is the Discord User Information, a web component that you can place anywhere on your HTML page to resolve a Discord UserID into their user tag.
Why? Because people change their usernames (God knows I do), and updating a stating website whenever that happens is annoying. I did this for me and now you get to enjoy it too!
To use this, all you need is 2 lines of code, that's it. First, in your
<script type="module" crossorigin src="https://dui.pages.dev/assets/index.js"></script>
And then, anywhere on your page, add the following to display the user#discriminator output (also known as a "tag"):
<discord-user type="text" user="id:139412744439988224"></discord-user>
Replace 139412744439988224 with your own Discord User ID (leave the id: there, it's important!) and you're good to go!
You can have as many as you want in the page, like for example my username is
Text:
Simple:
Avatar:
Avatar with Width:
Is this black magic? Of course not, it's just custom web components being used efficiently!
What's in store for the future? More display styles (with/without avatars, with a tooltip, etc). Perhaps more tools such as server status/name, and such? I'm not sure yet.