Skip to content

InteractionLocalizerAttribute does not snake-case slash command names and args #1950

@ecrocombe

Description

@ecrocombe

Description

command names and arg names can't contain uppercase, so the extension snake-cases them automatically. you can manually specify a parameter name using this attribute, if you need to.

However, when using the DSharpPlus.Commands.Processors.SlashCommands.Localization.InteractionLocalizerAttribute, the above case does not apply.

Consistency update?

Specify the libraries you want this feature request to affect

DSharpPlus.Commands

Other considerations

Adding to the difficulty of this request, using .ToLower() may have to be performed whilst the the thread is set to the culture of the language? idk tbh 🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    commandsFor issues related to DSharpPlus.Commandsenhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions