discid

1.5.1 • Public • Published

discid

Downloads Version License Post

A simple command-line tool to check a user's Discord status using Lanyard, and get an output in a readable format.

Example of running command

Installation

npm install -g discid

Usage

[!IMPORTANT] The user must be in the Lanyard Discord server in order to retrieve information about the user.

discid [userID]

You will need to replace [userID] with the ID of the user you are trying to fetch the status of. If you want an guide with images, visit this section of my post, otherwise, you can follow these steps.

  1. Enable Developer mode by going to SettingsAdvancedDeveloper Mode, and check the toggle.

  2. Right click on a user and click the Copy User ID button.

  3. Go back to your command line and run the same command from above, replacing [userID] with the ID you copied.

For example, to check the status of the user 'iinter', you can run the following command:

discid 514106760299151372

Depending on what the user is doing, the otuput might return different things. Here is an example of what may be retuned:

iinter • 🟢 Online
Listening To: Duvet by bôa on Twilight
Platform: Desktop
Avatar URL: https://cdn.discordapp.com/avatars/514106760299151372/d14e90a16144987f53f5a3700aacc934.png

These are returned because the status of the user is set to 'Online' and they are listening to the song 'Duvet' by 'bôa' at the time the command was ran.

Discord profile

To see everything that can be displayed and more detailed information, read this section of my post.

Options

Option Description
--json Shows a formatted JSON output of information about the user from https://api.lanyard.rest/v1/users/:user_id, replacing :user_id with the user ID you entered.
--visit, --open Opens the user's profile on the Discord website (in your browser).
--kv Output's the user's Lanyard key-value pairs (see here for more information).

License

©️ 2024 - Licensed under the MIT License.

Package Sidebar

Install

npm i discid

Homepage

discid.xyz

Weekly Downloads

70

Version

1.5.1

License

MIT

Unpacked Size

17.2 kB

Total Files

7

Last publish

Collaborators

  • intter