discord-lanyard-awesome

1.0.4 • Public • Published


🦀

Discord Lanyard Awesome


Awesome & simple Discord presence

Version License Package Monthly Downloads Lanyard

This is a project for users that wants to use the Discord API to retrieve and display user information via the Lanyard API. The project is written in Node.js and includes all the necessary code to quickly get started with implementing the Lanyard API into your own site.


🌊 Getting Started

To get started with this project, follow these steps:

  1. Join Lanyard Discord

  2. Copy you Discord User ID to a .env file

  3. Go to your project and run:

    npm install discord-lanyard-awesome
    
  4. Use the API like the next example:

      import { fetchDiscordStatus } from "discord-lanyard-awesome";
    
      fetchDiscordStatus(process.env.DISCORD_USER_ID).then((response) => {
        console.log(response);
      });
    
    
      Result
      {
        status: 'online',
        avatar: 'https://cdn.discordapp.com/avatars/869736569051967578/89ba9c1383e3da8df7f387d9fa989f2f.webp?size=256',
        username: 'morellexf13',
        discriminator: '0716',
        activities: [] // Playing game or Spotify
    }

Readme

Keywords

Package Sidebar

Install

npm i discord-lanyard-awesome

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

5.52 kB

Total Files

5

Last publish

Collaborators

  • morellexf26