Skip to content

[FeatureRequest] [CommandHandler] Custom callback method argument type converter #19

Description

@RainOrigami
this.CommandHandler.RegisterTypeConversion(typeof(AnyPlayer), findPlayerByAnything);
// ...
AnyPlayer findPlayerByAnything(string input) {
   // resolve AnyPlayer from input through DB or whatever
   if (badInputFormat)
   {
     throw new Exception("Can't parse input to AnyPlayer");
   }

   return foundPlayer;
}

something like that

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions