- npm에 퍼블리시 된 버전은 현재 이용 불가능합니다.
# npm
npm install pikokr/uniquebots-js-sdk
# yarn
yarn add pikokr/uniquebots-js-sdk
Typescript
import {UniqueClient} from "@uniquebots/sdk";
const client = new UniqueClient({
token: 'uniquebots token',
updateInverval: 1000 * 60 * 30
})
client.login('token')
Javascript
const { UniqueClient } = require('@uniquebots/sdk')
const client = new UniqueClient({
token: 'uniquebots token',
updateInverval: 1000 * 60 * 30
})
client.login('token')
Typescript
import {UniqueBot} from "@uniquebots/sdk";
const client = new UniqueBot('uniquebots token')
client.updateGuilds(123/*Your guilds count*/)
Javascript(CommonJS)
const { UniqueBot } = require('@uniquebots/sdk')
const client = new UniqueBot('uniquebots token')
client.updateGuilds(123/*Your guilds count*/)
Javascript(CommonJS)
const {UniqueBots} = require('@uniquebots/sdk')
// get all bots
await UniqueBots.getAllBots()
// get bot by id
await UniqueBots.getBot('id')
Typescript
import {UniqueBots} from '@uniquebots/sdk'
// get all bots
await UniqueBots.getAllBots()
// get bot by id
await UniqueBots.getBot('id')