Announcement channel from message mentions #2027
-
Hey, So I was creating this feature in my bot where I could mention a channel at the top of my message, to send the rest of the message in the mentioned channel. This is all working, but somehow not for Announcement (News) channels. I was wondering if there is a way to get such a channel from a mention. Some code to help you understand:
When mentioned any textchannel Any help would be appreciated! Thanks in advance! :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This looks like a bug in the JDA to me. I tested it with JDA Version 5.0.0-alpha.6, and it always returns an empty list if I mention a news channel. My guess is that they forgot to add NewsChannel to the MentionType.CHANNEL because the whole channel hierarchy was redone in the 5.0.0 alphas. I also tried the code in v4, and it worked as expected. |
Beta Was this translation helpful? Give feedback.
This looks like a bug in the JDA to me. I tested it with JDA Version 5.0.0-alpha.6, and it always returns an empty list if I mention a news channel. My guess is that they forgot to add NewsChannel to the MentionType.CHANNEL because the whole channel hierarchy was redone in the 5.0.0 alphas. I also tried the code in v4, and it worked as expected.