Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Returns Admin

Properties

Protected aliases

aliases: string = "config, administrate"

Protected commandName

commandName: string = "admin"

Protected desc

desc: string = "A special administration command to configure a bot's settings"

error

error: Error

errorString

errorString: string

Private Readonly functions

functions: string[]

Protected member

member: GuildMember

Protected message

message: Message

Protected needParamValues

needParamValues: boolean = true

Protected paramValues

paramValues: string[]

Protected params

params: string = "<parameter> <value>"

Protected reply

reply: string | object

Protected replyTo

replyTo: boolean = true

Protected server

server: string

warning

warning: Error

Methods

errorRespond

  • errorRespond(): void
  • Wrapper function which sets a generic error message to respond with and calls respond()

    Returns void

exec

  • exec(): Promise<boolean>
  • Returns Promise<boolean>

Protected getParams

  • getParams(): string[]
  • Gets an an array with all the parameters passed to a command

    Returns string[]

    string[]

respond

  • respond(): void
  • A base function that returns whatever reply has been set by other base functions, the command object returns this response after the command has been successfully ran defaults to sending it as a normal message, but can send it as reply if replyTo is set to true

    Returns void

returnProperties

  • returnProperties(): { alias: string | string[]; desc: string; name: string; syntax: string }
  • Returns the commands properties, for use in the Help command

    Returns { alias: string | string[]; desc: string; name: string; syntax: string }

    object

    • alias: string | string[]
    • desc: string
    • name: string
    • syntax: string

run

  • run(message: Message): Promise<{}>
  • The meat of the object, this function is called by the commander object and instantiates the object proper with all required values, then runs the encompassing function and returns the resulting promise object

    Parameters

    • message: Message

    Returns Promise<{}>

tweetChannel

  • tweetChannel(input: string): Promise<boolean | Error>
  • Parameters

    • input: string

    Returns Promise<boolean | Error>

Legend

  • Class
  • Constructor
  • Method
  • Variable
  • Function
  • Inherited property
  • Inherited method
  • Interface
  • Protected property
  • Private property

Generated using TypeDoc