Skip to content

Add DATE as ApplicationCommandOptionType #2706

@thecodrr

Description

@thecodrr

Description

Currently Slash Commands only allow these option types. It'd be extremely useful to allow users to be able to select dates using a UI (similar to the one in Search).

Why This is Needed

For me personally, I am building a project tracker which includes setting deadlines. The bot uses the deadline date to send reminder messages to the users (if they haven't updated their progress at the end of that day). It'd be really easy for users to select deadlines from a calendar based UI.

Moreover, this feature can be used for setting reminders, recording events etc.

Alternatives Considered

Alternatives include asking users to put the date in MM-DD-YYYY format in the STRING option. It isn't very intuitive and requires a lot of validation logic in the backend.
Another option would be to redirect them to a website but that's a whole another story.

Additional Details

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions