1.0.0 • Published 3 years ago

@uniquebots/sdk v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Uniquebots JS SDK

설치

  • npm에 퍼블리시 된 버전은 현재 이용 불가능합니다.
# npm
npm install pikokr/uniquebots-js-sdk
# yarn
yarn add pikokr/uniquebots-js-sdk

UniqueClient

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")

UniqueBot

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*/)

UniqueBots

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")