Skip to content

Check guild when retrieving a thread from a guild, add function to retrieve a thread from any guild - #269

Merged
freya022 merged 5 commits into
3.Xfrom
retrieve-thread-guild-check
Jul 1, 2026
Merged

Check guild when retrieving a thread from a guild, add function to retrieve a thread from any guild#269
freya022 merged 5 commits into
3.Xfrom
retrieve-thread-guild-check

Conversation

@freya022

@freya022 freya022 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Changes

  • Guild#retrieveThreadChannelById now throws ParentGuildMismatchException if the retrieved thread isn't from the same guild
    • OrNull variants will return null in those cases

New features

  • JDA#retrieveThreadChannelById(OrNull) was added

@freya022 freya022 added bug Something isn't working type: enhancement labels Jul 1, 2026
@freya022
freya022 force-pushed the retrieve-thread-guild-check branch from b546b98 to 0e58de2 Compare July 1, 2026 15:59
@freya022
freya022 merged commit 2125ad8 into 3.X Jul 1, 2026
1 check passed
@freya022
freya022 deleted the retrieve-thread-guild-check branch July 1, 2026 16:07
freya022 added a commit that referenced this pull request Jul 3, 2026
… a thread from any guild (#269)

(cherry picked from commit 2125ad8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working type: enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant