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(Guild): Destructure object in guild editing #8971

Merged
merged 6 commits into from Dec 31, 2022

Conversation

Jiralite
Copy link
Member

@Jiralite Jiralite commented Dec 25, 2022

Please describe the changes this PR makes and why it should be merged:
This style of code isn't consistent with other parts of the library. I think destructuring the object here looks pretty neat and seems to result in code that's easier to look at. Personally, every time I've come across this, I think about doing this but end up not bothering. But now's the time, apparently!

I also reordered the parameters as they are in Discord's documentation.

There was also a pretty suspicious max-len rule modification here which I removed. It must have served an ideal purpose in the past, but presently, it doesn't seem to do much at all.

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

@vercel
Copy link

vercel bot commented Dec 25, 2022

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

Name Status Preview Comments Updated
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Dec 31, 2022 at 0:37AM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
discord-js-guide ⬜️ Ignored (Inspect) Dec 31, 2022 at 0:37AM (UTC)

packages/discord.js/src/structures/Guild.js Outdated Show resolved Hide resolved
packages/discord.js/src/structures/Guild.js Outdated Show resolved Hide resolved
@kodiakhq kodiakhq bot merged commit d3e9f2a into discordjs:main Dec 31, 2022
@Jiralite Jiralite deleted the refactor/guild-edit-nicer branch December 31, 2022 00:37
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

4 participants