Skip to content
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mcl-playz
Comment options

Answer selected by MinnDevelopment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants