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(TransformerGraph): Explicitly include input args for readable input cases instead of just for string input cases #9793

Merged
merged 2 commits into from Aug 23, 2023

Conversation

White-Wolf
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:

Change also ensures that constant arrays are passed by value instead of by reference in TransformerGraph.ts, preventing them from accidentally being modified (which was part of the issue).

Fixes: #7232

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

…r string input cases.

Change also ensures that constant arrays are passed by value instead of by reference, preventing them from accidentally being modified.
@vercel
Copy link

vercel bot commented Aug 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
discord-js ❌ Failed (Inspect) Aug 23, 2023 4:09pm
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2023 4:09pm

@github-actions
Copy link

github-actions bot commented Aug 20, 2023

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 75
🟢 Accessibility 96
🟢 Best practices 100
🟠 SEO 67
🔴 PWA 33

Lighthouse ran on https://discord-js-guide-git-fork-white-wolf-main-discordjs.vercel.app/

@github-actions
Copy link

Running Lighthouse audit...

@Jiralite Jiralite added this to the voice 0.17.0 milestone Aug 20, 2023
@Jiralite Jiralite changed the title fix(Voice): Explicitly include input args for readable input cases instead of just for string input cases. fix(TransformerGraph): Explicitly include input args for readable input cases instead of just for string input cases Aug 20, 2023
@amishshah amishshah self-requested a review August 23, 2023 15:37
@kodiakhq kodiakhq bot merged commit 788888a into discordjs:main Aug 23, 2023
4 of 5 checks passed
almeidx pushed a commit to almeidx/discord.js that referenced this pull request Sep 24, 2023
…ut cases instead of just for string input cases (discordjs#9793)

Explicitly add input args for readable input cases instead of just for string input cases.
Change also ensures that constant arrays are passed by value instead of by reference, preventing them from accidentally being modified.

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

AudioPlayer does not play local files if a stream was played before
5 participants