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

types: Reintroduction of the PartialGroupDMChannel within the exclude of TextBasedChannel #10479

Closed
wants to merge 1 commit into from

Conversation

aquafenaa
Copy link

@aquafenaa aquafenaa commented Sep 3, 2024

Please describe the changes this PR makes and why it should be merged:
I believe that during this merge, "PartialGroupDMChannel" was incorrectly removed from the excluded definition of "TextBasedChannel." This leads to the inability to use the 'send' function on any "TextBasedChannel"
Status and versioning classification:

@aquafenaa aquafenaa requested a review from a team as a code owner September 3, 2024 19:27
Copy link

vercel bot commented Sep 3, 2024

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Sep 3, 2024 7:27pm
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Sep 3, 2024 7:27pm

@Qjuh
Copy link
Contributor

Qjuh commented Sep 3, 2024

With the introduction of user-installable apps it is now possible for a bot to receive interactions or even messages (through context menu commands) from group dm channels. So no, this was done on purpose and is correct.

@aquafenaa aquafenaa changed the title Reintroduction of the PartialGroupDMChannel within the exclude of Tex… types: Reintroduction of the PartialGroupDMChannel within the exclude of Tex… Sep 3, 2024
@aquafenaa
Copy link
Author

With the introduction of user-installable apps it is now possible for a bot to receive interactions or even messages (through context menu commands) from group dm channels. So no, this was done on purpose and is correct.

Understood! Sorry for the hassle then. Is there a separate function I can use to ensure that I am able to send a message to that channel? Or should I just include an extra check to make sure that it isn't a PartialGroupDMChannel?

@Moebits
Copy link
Contributor

Moebits commented Sep 4, 2024

With the introduction of user-installable apps it is now possible for a bot to receive interactions or even messages (through context menu commands) from group dm channels. So no, this was done on purpose and is correct.

Understood! Sorry for the hassle then. Is there a separate function I can use to ensure that I am able to send a message to that channel? Or should I just include an extra check to make sure that it isn't a PartialGroupDMChannel?

Now you will have to typeguard to ensure the channel has a "send" property. There's some PR's that will add some helper methods to make it easier: #10482

@Jiralite Jiralite changed the title types: Reintroduction of the PartialGroupDMChannel within the exclude of Tex… types: Reintroduction of the PartialGroupDMChannel within the exclude of TextBasedChannel Sep 4, 2024
@Jiralite
Copy link
Member

Jiralite commented Sep 4, 2024

Closing in favour of #10482.

@Jiralite Jiralite closed this Sep 4, 2024
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.

4 participants