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

Return immutable reconstructed interaction object lists #2220

Merged
merged 5 commits into from
Aug 27, 2022

Conversation

freya022
Copy link
Contributor

@freya022 freya022 commented Aug 19, 2022

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

I have seen that some interaction related methods were returning mutable lists, causing difficult to diagnose bugs, this makes sure the stream collector returns an unmodifiable list.

While there's a lot of other methods which could fail due to manipulating reconstructed objects, it is at least simple to prevent the users to add options, for example.

Other issues not covered by the PR include adding translations to an OptionData after adding it to the command

@freya022 freya022 changed the title Return immutable lists for reconstructed interaction object lists Return immutable reconstructed interaction object lists Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants