Skip to content

Commit

Permalink
fix(ThreadChannel): insert starter message from threads created in fo…
Browse files Browse the repository at this point in the history
…rum channels (#9100)

fix(ThreadChannel): insert starter message from forums

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Jiralite and kodiakhq[bot] committed Feb 17, 2023
1 parent f70df91 commit 0b76ab4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/discord.js/src/structures/ThreadChannel.js
Expand Up @@ -46,6 +46,8 @@ class ThreadChannel extends BaseChannel {
_patch(data, partial = false) {
super._patch(data);

if ('message' in data) this.messages._add(data.message);

if ('name' in data) {
/**
* The name of the thread
Expand Down

2 comments on commit 0b76ab4

@vercel
Copy link

@vercel vercel bot commented on 0b76ab4 Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 0b76ab4 Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.