0.1.1 • Published 2 years ago

discord-widget v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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:

0.0.1

2 years ago

0.1.1

2 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.1.2

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago