C# Class Nekobot.Commands.CommandMap

Exibir arquivo Open project: Kusoneko/Nekobot Class Usage Examples

Public Methods

Method Description
AddCommand ( string text, Nekobot.Commands.Command command, bool isAlias ) : void
CanRun ( Discord.User user, Discord.Channel channel, string &error ) : bool
CommandMap ( ) : System.Collections.Generic
CommandMap ( CommandMap parent, string name, string fullName ) : System.Collections.Generic
GetCommands ( ) : IEnumerable
GetCommands ( int index, string parts ) : IEnumerable
GetCommands ( string text ) : IEnumerable
GetItem ( int index, string parts ) : CommandMap
GetItem ( string text ) : CommandMap

Private Methods

Method Description
AddCommand ( int index, string parts, Nekobot.Commands.Command command, bool isAlias ) : void

Method Details

AddCommand() public method

public AddCommand ( string text, Nekobot.Commands.Command command, bool isAlias ) : void
text string
command Nekobot.Commands.Command
isAlias bool
return void

CanRun() public method

public CanRun ( Discord.User user, Discord.Channel channel, string &error ) : bool
user Discord.User
channel Discord.Channel
error string
return bool

CommandMap() public method

public CommandMap ( ) : System.Collections.Generic
return System.Collections.Generic

CommandMap() public method

public CommandMap ( CommandMap parent, string name, string fullName ) : System.Collections.Generic
parent CommandMap
name string
fullName string
return System.Collections.Generic

GetCommands() public method

public GetCommands ( ) : IEnumerable
return IEnumerable

GetCommands() public method

public GetCommands ( int index, string parts ) : IEnumerable
index int
parts string
return IEnumerable

GetCommands() public method

public GetCommands ( string text ) : IEnumerable
text string
return IEnumerable

GetItem() public method

public GetItem ( int index, string parts ) : CommandMap
index int
parts string
return CommandMap

GetItem() public method

public GetItem ( string text ) : CommandMap
text string
return CommandMap