retrieveThreadChannelByIdOrNull

Retrieves a thread belonging to this guild, 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

  • The channel isn't from the correct guild

See also


Retrieves a thread from any guild, 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

  • The thread isn't owned by a guild of this shard

See also