Skip to content

RemainingStringAttribute to allow raw remaining string to be matched. #14

@decaprime

Description

@decaprime

Add an attribute that would enable capturing the remaining string as a single string value as the last parameter in a command signature.

Consider if you wanted to make a command that echos the message to discord, in use it could look like:
.discord #general Hey folks
.discord #admins Can someone keep an eye on this player, they had some situation earlier and blah blah blah...

The command could look like:

[Command("discord")]
void Command(ICommandContext ctx, string channel, [Remainder]string remainder)
{
..
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions