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(guildbanmanager)!: rename days option to deleteMessageDays #7447

Merged
merged 2 commits into from
Feb 13, 2022

Conversation

ImRodry
Copy link
Contributor

@ImRodry ImRodry commented Feb 11, 2022

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

This PR renamed the days option in BanOptions to deleteMessageDays to be inline with the API name and to avoid confusion with users thinking it's a way to tempban people, which it's not. It also removes the default of 0 since that's handled by the API (not documented, but it is 0)

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)

@almeidx
Copy link
Member

almeidx commented Feb 11, 2022

Missed this
https://github.com/ImRodry/discord.js/blob/f628da5c0d34d12f8e8d6da10bac563c27f6a13f/packages/discord.js/src/structures/GuildMember.js#L347

Copy link
Member

@vladfrangu vladfrangu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as you're sure you didn't miss any, LGTM

@ImRodry
Copy link
Contributor Author

ImRodry commented Feb 12, 2022

As long as you're sure you didn't miss any, LGTM

Triple checked it!

@ImRodry
Copy link
Contributor Author

ImRodry commented Feb 13, 2022

Failing CI because of #7422

@iCrawl iCrawl merged commit 0dfdb2c into discordjs:main Feb 13, 2022
@ImRodry ImRodry deleted the refactor/ban-days branch February 13, 2022 15:52
Jiralite added a commit to suneettipirneni/guide that referenced this pull request Feb 25, 2022
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.

6 participants