Skip to content

PHPxCODER/lanyard-profile-readme

Repository files navigation

lanyard-profile-readme

🏷️ Utilize Lanyard To Display Your Discord Presence in Your GitHub Profile

Special Thanks to @Phineas for creating Lanyard, and making this project possible

Usage

First, Join the Lanyard Discord (if You Haven't already) For This To Work.

In a README.md File, include the following, replacing :id with your Discord user ID:

[![Discord Presence](https://gitcard.codevizag.com/api/:id)](https://discord.com/users/:id)

It Should Display Something Similar To The Following (I am Using my Discord User ID as an Example)

Discord Presence

When Others Click It, They Will be Redirected To Your Actual Discord Profile. Neat!

Options

There are a Few Options To Customize This Display Using Query Parameters:

Theme

Append the query param theme=:theme to the end of the URL, replacing :theme with either light or dark. This will change the background and the font colors, but the background can be overridden with the Background Color parameter.

Background Color

Append the query param bg=:color to the end of the URL, replacing :color with a hex color of your choice (omit the #)

Border Radius

Append the query param borderRadius=:radius to the end of the URL, replacing :radius with a radius of your choice. (default 10px)

Toggle Animated Avatar

If you have an animated avatar, append the query param animated=:bool to the end of the URL, replacing :bool with true or false. This is set to true by default.

Custom Idle Message

If you don't want the default "I'm not currently doing anything!" as your idle message, you can change it by appending idleMessage=:yourmessage to the end of the URL.

Hide Discriminator

If you don't want people seeing your discriminator (most likely for privacy reasons), append the query param hideDiscrim=true to the end of the URL. Your discriminator is shown by default.

Hide Status

If you don't want people seeing your status, append the query param hideStatus=true to the end of the URL. Your status is shown by default if you have one.

Hide Elapsed Time

If you don't want people seeing the elapsed time on an activity, append the query param hideTimestamp=true to the end of the URL. Elapsed time is shown by default.

Hide Badges

If you don't want people seeing the badges you have on Discord, append the query param hideBadges=true to the end of the URL. Badges are shown by default.

Example URL and result

[![Discord Presence](https://gitcard.codevizag.com/api/94490510688792576?theme=light&bg=809ecf&animated=false&hideDiscrim=true&borderRadius=30px&idleMessage=Probably%20doing%20something%20else...)](https://discord.com/users/94490510688792576)

Discord Presence


Note: Current Nitro & Boosting Badges Do Not Work Due to Discord's API Limitations, Unless You Currently Have an Animated Avatar, in Which Case It Will Display The Nitro Badge.

If You're Using This in Your Profile, Feel Free To Show Support and Give This Repo a ⭐ Star! It Means a Lot, Thank You :)

About

🏷️ Utilize Lanyard To Display Your Discord Presence in Your GitHub Profile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published