mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-03-06 09:49:28 +00:00
Discourse is able to share topics and replies to normal Discord channels, but it doesn't work with forum channels, which require an additional `thread_name` parameter. This change fixes the issue by checking for the specific error the Discord returns when trying to share to a forum channel, adding the `thread_name`, then trying again. This is intentionally a minimal fix, additional work would be required to make the sharing more closely fit the style of Discord forum channels.