Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't specify a custom_id for ui.Modal #56

Merged
merged 1 commit into from
Jan 13, 2023

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