Checking for new posts #2511
-
|
How would i check when a post is created in a specific forum. I just need it to send a message in that post. |
Beta Was this translation helpful? Give feedback.
Answered by
MinnDevelopment
Jul 30, 2023
Replies: 1 comment 1 reply
-
|
In the MessageReceivedEvent, you need to check that the message came from a thread channel, and then check the parent channel type: event.isFromThread() && event.getChannel().asThreadChannel().getParentChannel().getType() == ChannelType.FORUM |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MinnDevelopment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the MessageReceivedEvent, you need to check that the message came from a thread channel, and then check the parent channel type: