public interface MessageReceiver extends Actor
Actor
capable of receiving messages.Modifier and Type | Method and Description |
---|---|
default @NonNull String |
getLowerCaseMessagingName()
Gets the lowercase version of the name used when sending messages.
|
@NonNull String |
getMessagingName()
Gets the name used when sending messages.
|
default void |
sendCtcpMessage(@NonNull String message)
Sends this actor a CTCP message.
|
default void |
sendMessage(@NonNull String message)
Sends this actor a message.
|
default void |
sendMultiLineMessage(@NonNull String message)
Sends this actor a potentially multi-line message using the client's
default message cutter.
|
default void |
sendMultiLineMessage(@NonNull String message,
@NonNull Cutter cutter)
Sends this actor a potentially multi-line message using a specified
message cutter.
|
default void |
sendMultiLineNotice(@NonNull String message)
Sends this actor a potentially multi-line notice using the client's
default message cutter.
|
default void |
sendMultiLineNotice(@NonNull String message,
@NonNull Cutter cutter)
Sends this actor a potentially multi-line notice using a specified
message cutter.
|
default void |
sendNotice(@NonNull String message)
Sends this actor a notice.
|
getLowerCaseName, getName
getCreationTime
getClient
@NonNull String getMessagingName()
default @NonNull String getLowerCaseMessagingName()
default void sendCtcpMessage(@NonNull String message)
message
- the message to sendClient.sendCtcpMessage(MessageReceiver, String)
default void sendMessage(@NonNull String message)
message
- the message to sendClient.sendMessage(MessageReceiver, String)
default void sendMultiLineMessage(@NonNull String message)
Note that bots may not react appropriately to a message split across multiple lines.
message
- message to sendClient.sendMultiLineMessage(MessageReceiver, String)
default void sendMultiLineMessage(@NonNull String message, @NonNull Cutter cutter)
Note that bots may not react appropriately to a message split across multiple lines.
message
- message to sendcutter
- cutter to utilizeClient.sendMultiLineMessage(MessageReceiver, String, Cutter)
default void sendNotice(@NonNull String message)
message
- the message to sendClient.sendNotice(MessageReceiver, String)
default void sendMultiLineNotice(@NonNull String message)
Note that bots may not react appropriately to a message split across multiple lines.
message
- message to sendClient.sendMultiLineNotice(MessageReceiver, String)
default void sendMultiLineNotice(@NonNull String message, @NonNull Cutter cutter)
Note that bots may not react appropriately to a message split across multiple lines.
message
- message to sendcutter
- cutter to utilizeClient.sendMultiLineNotice(MessageReceiver, String, Cutter)
Copyright © 2013–2021 Kitteh. All rights reserved.