Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Mybot

Index

Constructors

constructor

Properties

bot

bot: null | Bot

Readonly clientID

clientID: string

Readonly koreanbots

koreanbots: Koreanbots

Optional lastGuildCount

lastGuildCount?: number

Optional updatedAt

updatedAt?: Date

Optional updatedTimestamp

updatedTimestamp?: number

votes

votes: LimitedCollection<string, Vote>

Methods

checkVote

  • checkVote(id: string): Promise<Vote>
  • 해당 유저가 내 봇에 하트를 눌렀는지 체크합니다. (cache TTL: 10초)

    example
    koreanbots.mybot.checkVote("12345678901234567")
    .then(voted => {
    if (voted) return message.channel.send(`${message.author} 님, 하트를 눌러주셔서 감사합니다!`)

    return message.channel.send(`${message.author} 님, 하트를 아직 누르지 않으셨습니다.`)
    })

    Parameters

    • id: string

    Returns Promise<Vote>

Protected mybotInit

  • mybotInit(): Promise<Bot>

update

  • update(__namedParameters: { servers?: number; shards?: number }): Promise<UpdateResponse>
  • 봇의 서버 수를 업데이트합니다.

    example
    koreanbots.mybot.update({ servers: client.guilds.cache.size })
    

    Parameters

    • __namedParameters: { servers?: number; shards?: number }
      • Optional servers?: number
      • Optional shards?: number

    Returns Promise<UpdateResponse>

Generated using TypeDoc