Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INapiDiscord

Hierarchy

  • INapiDiscord

Index

Methods

initialize

  • initialize(apiKey: string, appId?: undefined | string): void
  • Parameters

    • apiKey: string
    • Optional appId: undefined | string

    Returns void

runCallbacks

  • runCallbacks(): void
  • Returns void

setErrorCallback

  • setErrorCallback(callback: (error: string | number) => void): void
  • Parameters

    • callback: (error: string | number) => void
        • (error: string | number): void
        • Parameters

          • error: string | number

          Returns void

    Returns void

setJoinCallback

  • setJoinCallback(callback: (server: string) => void): void
  • Parameters

    • callback: (server: string) => void
        • (server: string): void
        • Parameters

          • server: string

          Returns void

    Returns void

setReadyCallback

  • setReadyCallback(callback: () => void): void
  • Parameters

    • callback: () => void
        • (): void
        • Returns void

    Returns void

shutdown

  • shutdown(): void
  • Returns void

updatePresence

Generated using TypeDoc