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

feat(NewsChannel)!: return followed channel data #8566

Conversation

Syjalo
Copy link
Contributor

@Syjalo Syjalo commented Aug 28, 2022

BREAKING CHANGE: GuildChannelManager#addFollower and AnnouncementChannel#addFollower now return FollowedChannelData instead of the webhook id.

Please describe the changes this PR makes and why it should be merged:
This PR changes the return type of NewsChannel#addFollower() method to the followed channel.

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)

@vercel
Copy link

vercel bot commented Aug 28, 2022

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

Name Status Preview Comments Updated (UTC)
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2025 5:37pm
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2025 5:37pm

@Jiralite
Copy link
Member

I agree with this change. Sadly, this is currently breaking.

What we can do in a non-breaking way is add this method to the GuildChannelManager as it doesn't exist (for some reason). That would not be breaking and the return type can be a Snowflake. In the breaking change, we would internally call the GuildChannelManager.

@Jiralite Jiralite removed the blocked label Oct 1, 2024
@Jiralite Jiralite changed the title feat(NewsChannel): return created webhook id feat(NewsChannel)!: return created webhook id Oct 8, 2024
Copy link
Member

@Jiralite Jiralite left a comment

Choose a reason for hiding this comment

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

This should be calling the guild channel manager's method (as noted here: #8566 (comment)) and ideally have the changes made noted here: #8566 (comment). Also, please resolve conflicts!

@Syjalo Syjalo force-pushed the feat/NewsChannel#addFollower()-return-webhook-id branch from 6c2beb4 to 522498b Compare December 11, 2024 14:16
@Syjalo Syjalo closed this Dec 11, 2024
@Syjalo Syjalo force-pushed the feat/NewsChannel#addFollower()-return-webhook-id branch from 0bdea49 to 2ff47d8 Compare December 11, 2024 14:30
@Syjalo Syjalo changed the title feat(NewsChannel)!: return created webhook id feat(NewsChannel)!: return followed channel Dec 11, 2024
@almeidx almeidx changed the title feat(NewsChannel)!: return followed channel feat(NewsChannel)!: return followed channel data Jan 4, 2025
@almeidx almeidx requested a review from Jiralite January 4, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants