Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Returns Feedback

Properties

Protected aliases

aliases: string | string[]

Protected commandName

commandName: string = "feedback"

Protected desc

desc: string = "Send a feedback message to the bot owner"

error

error: Error

errorString

errorString: string

Protected member

member: GuildMember

Protected message

message: Message

Protected needParamValues

needParamValues: boolean = true

Protected paramValues

paramValues: string[]

Protected params

params: string

Protected reply

reply: string | object

Protected replyTo

replyTo: boolean = false

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

Protected exec

  • exec(): Promise<{}>
  • Returns Promise<{}>

Private getFeedbackChan

  • getFeedbackChan(): TextChannel
  • Returns TextChannel

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<{}>

Legend

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

Generated using TypeDoc