This would, via a command, scan the thread for a discord id (in the title or body of the post) and then get it ready for a scam ban. This would be easy to implement, and be helpful for mobile users.
To get the thread title:
Check the channel type, if it's a typeof Thread, then you can just use the name property and it will give you the title in plain text.
To get the first post, we would have to read the message history.
This would, via a command, scan the thread for a discord id (in the title or body of the post) and then get it ready for a scam ban. This would be easy to implement, and be helpful for mobile users.
To get the thread title: Check the channel type, if it's a typeof Thread, then you can just use the
name
property and it will give you the title in plain text.To get the first post, we would have to read the message history.