gitlimes / discord-md-badge

A customizable badge displaying your Discord account, a server invite, or a bot account.
https://dcbadge.limes.pink/api/shield/USERID
GNU General Public License v3.0
217 stars 54 forks source link

Badges for servers #6

Closed LucaCappelletti94 closed 2 years ago

LucaCappelletti94 commented 2 years ago

Hello @ashmonty and thank you for making this project!

How would I go about creating a badge for a discord server?

Thank you, Luca

gitlimes commented 2 years ago

Hi, I'm glad you find my project useful!

I never actually thought of a server mode, but that's actually a brilliant idea! I'll see if I can implement it somewhat elegantly

gitlimes commented 2 years ago

Ok, so...

While there is a way to add support for guilds, it is very finicky in my opinion, and honestly isn't worth it.

For this reason, I suggest you use the shields.io service directly. (https://shields.io/#your-badge) As an example, here's an invite badge for the Discord Markdown Badge discord server

and here's its code

[![](https://img.shields.io/static/v1?label=Invite&message=Discord+Markdown+Badge&style=for-the-badge&color=555&labelColor=5865F2&logo=discord&logoColor=fff)](https://discord.gg/zkspfFwqDg)