Skip to content

Add handling of threads to starboard#1046

Merged
patrickklaeren merged 4 commits intodiscord-csharp:mainfrom
hamarb123:main
Oct 23, 2025
Merged

Add handling of threads to starboard#1046
patrickklaeren merged 4 commits intodiscord-csharp:mainfrom
hamarb123:main

Conversation

@hamarb123
Copy link
Copy Markdown
Contributor

@hamarb123 hamarb123 commented Oct 21, 2025

  • Exclude private thread channels always, as they are only visible to people who are mentioned in the thread (I don't think we have any of these on the C# discord currently)
  • Exclude threads whose parent channel is ignored from the starboard
  • Doesn't remove existing messages on starboard that meet these requirements

I haven't tested this code. Please let me know if I need to do something relating to that.

Edit: not certain if we need null handling for ParentChannel, I'd assumed it's not nullable since it wasn't marked as nullable, but it seems they don't have nullable annotations, so I'm not sure - I've added null handling in the second commit, I can remove it if we think it's not necessary.

- Exclude private thread channels always, as they are only visible to people who are mentioned in the thread
- Exclude threads whose parent channel is ignored from the starboard
- Doesn't remove existing messages on starboard that meet these requirements
- Not certain if this is strictly required, but probably a good idea to have in case it is
Comment thread src/Modix.Bot/Responders/StarboardReactionResponder.cs Outdated
Comment thread src/Modix.Bot/Responders/StarboardReactionResponder.cs Outdated
@patrickklaeren patrickklaeren merged commit 078982d into discord-csharp:main Oct 23, 2025
2 checks passed
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.

2 participants