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(StoreChannel): mark as deprecated #7072

Merged
merged 1 commit into from Dec 7, 2021

Conversation

kyranet
Copy link
Member

@kyranet kyranet commented Dec 7, 2021

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

Marks StoreChannel and all methods to create new ones as deprecated in the typings, as per Self-serve Game Selling Deprecation.

Probably fixes #6610?. This is semver-patch, and Discord might re-add the possibility of creating new store channels (or a workaround to do so), so I'm not removing the support just yet. We can remove the class and anything related to it as soon as Discord removes them.

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

@iCrawl iCrawl merged commit 5ec542d into discordjs:main Dec 7, 2021
@kyranet kyranet deleted the fix/deprecate-store-channels branch December 7, 2021 20:08
@ImRodry
Copy link
Contributor

ImRodry commented Dec 7, 2021

Shouldn't the docs have these deprecation warnings as well as the code?

@kyranet
Copy link
Member Author

kyranet commented Dec 7, 2021

It's not needed to add those deprecations into code since creating new store channels will result on an error (see linked issue). What we can do is deprecate the class (so we don't need to deprecate a lot of methods), although we probably should check for the docs that create store channels and mark them as deprecated.

@ImRodry
Copy link
Contributor

ImRodry commented Dec 8, 2021

I would say add a warning block in the StoreChannel class and probably in the ChannelType typedef? That should be enough and we can let Discord do the other errors

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.

Bug: Cloning of store channels is documented and typed
6 participants