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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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