Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

id-resolver

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

id-resolver

A discord.js id resolver.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ID RESOLVER

This is a simple id resolver package for discord.js.

You can install this package with:

npm i id_resolver

Below are some code examples using this package:

  • For channel resolve:
 const client = new discord.Client()
 const id_resolver = require('id_resolver')

 let channel_id = "1234"
 let guild_id = "5678"

 let channel = id_resolver.resolveChannel(channel_id,guild_id,client)
 console.log(channel)
  • For role resolve:
const client = new discord.Client()
const id_resolver = require('id_resolver')

let role_id = "1234"
let guild_id = "5678"

let role = id_resolver.resolveRole(role_id,guild_id,client)
console.log(role)
  • For user resolve:
const client = new discord.Client()
const id_resolver = require('id_resolver')

let user_id = "1234"
let guild_id = "5678"

id_resolver.resolveUser(user_id,guild_id,client).then((user) => {
   console.log(user)
}).catch((err) => {
   console.log(err)
})

For any problem you can contact me on discord: Maurizio#0268.

Keywords

FAQs

Package last updated on 11 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc