Skip to content

Conversation

@shiftinv
Copy link
Member

Description

Using custom_id with ui.Modal (not low-level modals) should be discouraged, since the modal store is only keyed by (user_id, custom_id), which can quickly result in weird issues/race conditions.
The randomly generated ID is pretty much always what you'd want here.

Relevant Issues

See (1.) here: DisnakeDev/disnake#914

Copy link
Member

@abhigyantrips abhigyantrips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@abhigyantrips abhigyantrips merged commit 384de89 into main Jan 13, 2023
@abhigyantrips abhigyantrips deleted the fix/ui-modal-custom-id branch January 13, 2023 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants