NetCordDev / NetCordDev/NetCord
Add a way to ignore specific enum values from being shown as options on discord.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 454
- Forks
- 42
- Avg merge
- 22h 41m
- Merged PRs (30d)
- 14
Description
Description
I have a use case where I have a bot enum and with my enums .NET will warn me if I do not provide None = 0 in said enums.
The issue here:
- Because of this
Noneends up being an option in the parameters to my commands that takes in those enums, which in the implementation to my bot is an invalid option that will throw by design.
This is why I think this is needed as other people might be getting bitten by this as well.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or specific entry points. Start by locating the command-parameter handling that turns enum members into Discord options, then determine how an enum value could be excluded without affecting other values. Done means callers can mark or configure specific values such as None so they are not presented as command options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100