New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

discord-widget

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-widget

Discord widgets lib, simple but comfortable

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Installation

$ npm i discord-widget
$ yarn add discord-widget

Methods

MethodsDescription
getAllInforeturns all info that can provide discord widget
getOnlineMembersreturns objects of members that is online at the moment
getInvitereturns invite of server
getIframereturns the iframe of widget for your web

Code example (node.js):

  const { Widget } = require('discord-widget')

  const serverWidget = new Widget('your id here')

  serverWidget.getAllInfo().then((res) => {
    console.log(res)
  })

Code example (typescript):

  import { Widget } from 'discord-widget'

  const serverWidget = new Widget('your id here')

  serverWidget.getAllInfo().then((res) => {
      console.log(res)
  })

Lib using:

  • axios
  • typescript

Keywords

discord

FAQs

Package last updated on 08 Nov 2022

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