A simple command-line tool to check a user's Discord status using Lanyard.
npm install -g discid
[!IMPORTANT] The user must be in the Lanyard Discord server. If the user you try searching for a user that is not in the server, you will get an error reminding you of this.
discid <userId>
In order to find the <userId>
of a user:
- Enable Developer mode by going to: Settings ➔ Advanced ➔ Developer Mode, and check the toggle.
- Right click on a user and click
Copy User ID
- Go back to your command line and run
discid <userId>
replacing<userId>
with the ID you copied.
For example:
discid 514106760299151372
might return something like:
iinter • 🟢 Online
Listening To: Duvet by bôa on Twilight
Platform: Desktop
Avatar URL: https://cdn.discordapp.com/avatars/514106760299151372/d14e90a16144987f53f5a3700aacc934.png
as the status of the user is "Online" and listening to the song in question at the time the command was ran:
For more in-depth information about what can be displayed, click here.
Option | Description |
---|---|
--json |
Shows the formatted JSON output of 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. |
--kv |
Output's the user's Lanyard key-value pairs (see here). |
©️ Licensed under the MIT License.