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: webhook message editing on forums missing thread_id #1981

Merged
merged 8 commits into from
Apr 18, 2023
2 changes: 2 additions & 0 deletions discord/webhook/async_.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,8 @@ async def edit(
thread = Object(self._thread_id)
elif isinstance(self.channel, Thread):
thread = Object(self.channel.id)
elif isinstance(self.channel, ForumChannel):
Lulalaby marked this conversation as resolved.
Show resolved Hide resolved
thread = Object(self.id)

if attachments is MISSING:
attachments = self.attachments or MISSING
Expand Down