Skip to content

Modals allow empty custom_ids #7835

@Inbestigator

Description

@Inbestigator

Description

When replying to an interaction with a modal, setting the custom_id key to "" is valid and will show a modal. This messes with the handling of a modal, because an empty identifier may break systems. This is also inconsistent with pretty much every other required string.

Steps to Reproduce

Respond to an interaction with a modal. Set the modal's custom_id to "".

Expected Behavior

Like components it should throw a <...>_CUSTOM_ID_REQUIRED error.

Current Behavior

It shows the modal

Screenshots/Videos

No response

Client and System Information

canary 443309 (cf3243a) Host 0.0.860 arm64 Build Override: N/A macOS 26 (25.0.0)

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