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(builders-methods): make methods consistent #7395

Merged
merged 7 commits into from Feb 12, 2022
Merged

refactor(builders-methods): make methods consistent #7395

merged 7 commits into from Feb 12, 2022

Conversation

BenjammingKirby
Copy link
Contributor

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

This makes builders methods such as <Embed>addFields and <SlashCommand..Option>.addChoice, <ActionRow>.setComponents, <SlashCommand..Option>.setChoices and <Embed>.setFields consistent

now <SlashCommand..Option>'s .setChoices, .addChoices, .addChoice all take in Objects like the embed methods instead of a tuple array

<SlashCommand..Option>'s .setChoices and addChoices as well as <ActionRow>.setComponents all now take a rest parameter instead of an array of their respective inputs to be more consistent with methods such as <Embed>.setFields

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
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
@iCrawl iCrawl added this to the builders v1 milestone Feb 5, 2022
@kyranet
Copy link
Member

kyranet commented Feb 9, 2022

There are merge conflicts.

@BenjammingKirby BenjammingKirby deleted the main branch March 6, 2022 16:28
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

10 participants