DokdoDokdo
  • English
  • ko-KR
GitHub
  • English
  • ko-KR
GitHub
  • Introduction
  • Examples
  • Commands
  • Typing

Types

This page contains type definitions and options for Dokdo.

Dokdo

The main class of Dokdo.

You could access by parent variable in js(eval) command.

Constructor

new Dokdo(client, options)
PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
clientnoneDJS bot client
optionsnoneOptions of Dokdo

Properties

.client

DJS bot client

Type:

.options

Options of Dokdo

Type:

.owners

User ID to allow to use dokdo

Type: []

Methods

.run(message)

Runs dokdo command

PARAMETERTYPEDESCRIPTION
messageMessage on Discord

Returns:

DokdoOptions

interface DokdoOptions {
  prefix?: string
  noPerm?: (message: Message) => void
  secrets?: string[]
  aliases?: string[]
  globalVariable?: Record<string, any>
}

Types

Properties

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTIONEXAMPLE
prefixnonePrefix of Bot'!'
aliases[]✅['dokdo', 'dok']dokdo command aliases['debug']
owners[]✅Fetch Application Owner(s) from Discord APIUser ID to allow to use dokdo['285185716240252929']
secretsany[]✅[]Secrets to hide at output['superSecretPassword', 'youshallnotpass']
globalVariable✅{}Custom global variable to use at eval{ db: DatabaseQuery }
disableAttachmentExecution✅trueDisable command execution by attachmentfalse
Edit this page
Last Updated:: 4/15/25, 3:15 PM
Contributors: wonderlandpark
Prev
Commands