Add docs for channelForMessage

This commit is contained in:
Draycia committed 2023-05-28 17:55:12 -07:00
1 parent d322229744
commit 24602555ff
1 file changed
+7
@@ -154,6 +154,13 @@ public interface CarbonPlayer extends Audience, Identified {
*/
void selectedChannel(final @Nullable ChatChannel chatChannel);
/**
* Determines which channel the message should go to, and removes any channel prefixes from the message
*
* @param message the message to be sent
* @return the channel and message
* @since 2.1.0
*/
ChannelMessage channelForMessage(final Component message);
record ChannelMessage(Component message, @Nullable ChatChannel channel) {}