Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandParser

Takes in a obj and parses it out into a Command Class Instance.

Hierarchy

  • CommandParser

Index

Constructors

constructor

Properties

arguments

arguments: CommandArgument[] = []

Arguments parsed out between commas.

command

command: string

Name of the command parsed out.

namedarguments

namedarguments: any

Arguments parsed out between commas, as an object using name as the key.

obj

Discord.js Message Object.

Methods

getArgumentByName

  • description

    Retrives a parsed argument by it's name.

    Parameters

    • commandName: string

      Name of the argument (name=somecommand).

    Returns CommandArgument

    CommandArgument CommandArgument or null if not found.

Generated using TypeDoc