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

refactor(GuildChannelManager): improve addFollower errors #10277

Merged
merged 2 commits into from
May 17, 2024

Conversation

Renegade334
Copy link
Contributor

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

This appears to be the last incidence of a naked Error being thrown within the d.js library. Changed to throw DiscordjsTypeError on failed resolution, along with individualising the parameter checks for easier debugging.

Adds a NewsChannelResolvable type for semantic purposes. This is a non-breaking type change.

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

@Renegade334 Renegade334 requested a review from a team as a code owner May 14, 2024 21:59
Copy link

vercel bot commented May 14, 2024

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

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview May 17, 2024 1:08pm
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview May 17, 2024 1:08pm

@kodiakhq kodiakhq bot merged commit 555961b into discordjs:main May 17, 2024
6 checks passed
@Jiralite Jiralite added this to the discord.js 14.15.3 milestone May 17, 2024
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.

None yet

6 participants