Skip to content

SlashArgError variants are private and have no constructor functions #343

@kb-1000

Description

@kb-1000

I've been trying to implement SlashArgument for a custom Mentionable enum (containing Member, not User), but while SlashArgError::new_command_structure_mismatch exists, there is no way to construct SlashArgError::Invalid the way Member's implementation does.

It'd be nice to have such an enum in the framework as well, of course (and it does seem like I can just call Member::extract myself), but since it's not documented that you aren't supposed to implementSlashArgument yourself, this surprises me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions