Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for properties for TwitchHelpMessage and TwitchManualCode #553

Open
Emik03 opened this issue Feb 26, 2021 · 0 comments
Open
Labels
enhancement Changing the intended behavior.

Comments

@Emik03
Copy link

Emik03 commented Feb 26, 2021

Pretty self-explanatory, currently it can only grab fields with the name, I hope to see it be supported with properties.
For instance people can create an abstract class to make TP support easier to implement...

internal abstract string TwitchHelpMessage { get; }

...Or people can make more dynamic help commands based on what the module is, to not have to assign the field.

internal string TwitchHelpMessage
{
    get
    {
        if (someCondition)
            return @"SomeConditionHelpMessage";
        if (someOtherCondition)
            return @"SomeOtherConditionHelpMessage";
        return @"DefaultHelpMessage";
    }
}
@samfundev samfundev added the enhancement Changing the intended behavior. label Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changing the intended behavior.
Projects
None yet
Development

No branches or pull requests

2 participants