How to know if a slash command is executed in a thread|post or in a channel ?

Hi,
I don't understand how to check if the ChatInputInteraction was executed on a channel or a thread since there is no "threadId" property.

Does anyone could help me please ?
Was this page helpful?