Find if Thread is "newly_created" #1242
-
I'm telling my bot to look for the THREAD_CREATE event, and send a message there. But, because it's sending a message, it adds itself to the thread, firing the THREAD_CREATE event again. I found this in the Discord documentation: https://discord.com/developers/docs/topics/gateway-events#thread-create But I don't know how to access it, and "$thread->created" also doesn't work, for some godforsaken reason, leaving me stuck. I'm on DiscordPHP 10.0.0-RC6. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Added Note this attribute may only exist inside THREAD_CREATE event and is nullable. Thanks for the heads up! |
Beta Was this translation helpful? Give feedback.
Added
$thread->newly_created
attribute in latest dev-master#28409d4Note this attribute may only exist inside THREAD_CREATE event and is nullable.
Thanks for the heads up!