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(ThreadChannel): insert starter message from threads created in forum channels #9100

Merged
merged 3 commits into from Feb 17, 2023

Conversation

Jiralite
Copy link
Member

@Jiralite Jiralite commented Jan 31, 2023

Please describe the changes this PR makes and why it should be merged:
Threads created in forum channels return the message object within the payload1. discord.js ignored detecting if message was in data here leaving it to the later MESSAGE_CREATE event to populate, but we can do this straight away.

One may ask if it could be possible for both the handler and the WebSocket to inject a duplicate message into the cache here. I have found that the gateway does not emit the message—only via REST it does.

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

Footnotes

  1. https://discord.com/developers/docs/resources/channel#start-thread-in-forum-channel

@vercel
Copy link

vercel bot commented Feb 17, 2023

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

Name Status Preview Comments Updated
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 17, 2023 at 7:44PM (UTC)
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 17, 2023 at 7:44PM (UTC)

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.

None yet

4 participants