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(InviteDelete): guild can be missing #5457

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

almostSouji
Copy link
Member

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

The recent addition of stage channels has brought up a bug in our handling of the INVITE_DELETE. We currently only return if both the channel as well as the guild can not be found in the cache, however, according to upstream documentation
guild_id? can be missing.

We should instead return if the channel can not be found, no matter if the guild can be.

Trivia: came to light, since currently stage channels never enter the cache to begin with, meaning it can never be retrieved here.

Status and versioning classification:

Please move lines that apply to you out of the comment:

  • 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
Copy link
Member

iCrawl commented Mar 31, 2021

🤙

@iCrawl iCrawl merged commit 6c6b105 into discordjs:master Mar 31, 2021
iCrawl pushed a commit that referenced this pull request Mar 31, 2021
@infinitytmbots
Copy link

The issue still persists even after updating the library

@almostSouji almostSouji deleted the fix-invitedelete branch April 6, 2021 20:19
@iCrawl iCrawl added this to the Version 13 milestone Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants