mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 14:38:49 +00:00
Add docs for channelForMessage
This commit is contained in:
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);
|
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);
|
ChannelMessage channelForMessage(final Component message);
|
||||||
|
|
||||||
record ChannelMessage(Component message, @Nullable ChatChannel channel) {}
|
record ChannelMessage(Component message, @Nullable ChatChannel channel) {}
|
||||||
|
|||||||
Reference in new issue
Block a user