import { GuildMember, Message } from 'discord.js'; import { CommandArgument } from './CommandArgument'; export declare type MESSAGE_TYPE = Message & GuildMember; /** * Takes in a obj and parses it out into a Command Class Instance. */ export declare class CommandParser { /** * Name of the command parsed out. */ command: string; /** * Arguments parsed out between commas. */ arguments: CommandArgument[]; /** * Arguments parsed out between commas, as an object using name as the key. */ namedarguments: any; /** * Discord.js Message Object. */ obj: MESSAGE_TYPE; /** * @description Class Constructor requiring a Discord.js Message Object. * * @param obj Discord.js object. * */ constructor(obj: MESSAGE_TYPE); /** * @description Retrives a parsed argument by it's name. * * @param commandName Name of the argument (name=somecommand). * * @returns CommandArgument CommandArgument or null if not found. * */ getArgumentByName(commandName: string): CommandArgument; }