Closed vladfrangu closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
IG this (and the JSDoc) can also be updated to include PartialGroupDMChannel since it's considered text-based now https://github.com/discordjs/discord.js/blob/4594896b5404c6a34e07544951c59ff8f3657184/packages/discord.js/src/util/Constants.js#L96-L122
Please describe the changes this PR makes and why it should be merged:
Adds in
BaseChannel#isSendable
, which is a mix ofisTextBased()
and checking if you can actually send messages in the channel. This way, we can have the correct types for interaction.channel, and you can assert whether you got the interaction from a Group DM Channel or notStatus and versioning classification: