0.1.1 • Published 3 years ago
discord-widget v0.1.1
Installation
$ npm i discord-widget
$ yarn add discord-widgetMethods
| Methods | Description |
|---|---|
getAllInfo | returns all info that can provide discord widget |
getOnlineMembers | returns objects of members that is online at the moment |
getInvite | returns invite of server |
getIframe | returns 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
3 years ago
0.1.1
3 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.9
5 years ago
1.1.2
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago