Skip to content

Conversation

manuelvleeuwen
Copy link
Contributor

@manuelvleeuwen manuelvleeuwen commented Nov 12, 2021

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

  • Removes unnecessary & this's for interaction typeguards. With the introduction of generic interaction classes in types(Interaction): allow Interaction cached properties to be type narrowed #6668, these are not needed anymore.
  • Added in*Guild typeguards in all interaction classes that didn't have it already, this way you won't get MessageComponentInteraction<"cached"> & ButtonInteraction<CacheType> anymore for example.
  • In the AutocompleteInteraction typeguards, CommandInteraction was accessed for some reason. This PR fixes that too.

Status and versioning classification:

  • I know how to update typings and have done so, or typings don't need updating

@iCrawl iCrawl merged commit 06cd16f into discordjs:main Nov 16, 2021
@manuelvleeuwen manuelvleeuwen deleted the fix-interaction-typeguards branch November 16, 2021 17:33
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