NetCordDev / NetCordDev/NetCord

Add a way to ignore specific enum values from being shown as options on discord.

Open
#330 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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 None ends 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.