0.1.1 • Published 2 years ago
discord-widget v0.1.1
Installation
$ npm i discord-widget
$ yarn add discord-widget
Methods
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
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