retrieveThreadChannelOrNull

Retrieves a thread by ID.

The cached threads are checked first, and then a request is made.

The returned thread may be null if:

  • It doesn't exist

  • The bot doesn't have access to it

  • The channel isn't a thread

See also