Package io.manebot.chat
Class BasicTextChatMessage.Builder
- java.lang.Object
-
- io.manebot.chat.BasicTextChatMessage.Builder
-
- All Implemented Interfaces:
ChatMessage.Builder
- Enclosing class:
- BasicTextChatMessage
public static class BasicTextChatMessage.Builder extends java.lang.Object implements ChatMessage.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder(PlatformUser user, Chat chat)
-
Method Summary
Modifier and Type Method Description BasicTextChatMessagebuild()BasicTextChatMessage.Builderembed(java.util.function.Consumer<ChatEmbed.Builder> function)Appends an abstract embed to the message.ChatgetChat()Gets the chat associated with building this message.java.lang.StringgetMessage()PlatformUsergetUser()Gets the platform user that will be sending this message.ChatMessage.BuilderrawMessage(java.lang.String message)Sets the raw message to get on this chat message.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.manebot.chat.ChatMessage.Builder
message, message
-
-
-
-
Constructor Detail
-
Builder
public Builder(PlatformUser user, Chat chat)
-
-
Method Detail
-
getUser
public PlatformUser getUser()
Description copied from interface:ChatMessage.BuilderGets the platform user that will be sending this message.- Specified by:
getUserin interfaceChatMessage.Builder- Returns:
- platform user sending the message.
-
getChat
public Chat getChat()
Description copied from interface:ChatMessage.BuilderGets the chat associated with building this message.- Specified by:
getChatin interfaceChatMessage.Builder- Returns:
- Chat instance.
-
rawMessage
public ChatMessage.Builder rawMessage(java.lang.String message)
Description copied from interface:ChatMessage.BuilderSets the raw message to get on this chat message.- Specified by:
rawMessagein interfaceChatMessage.Builder- Parameters:
message- raw message to set.- Returns:
- Builder instance.
-
embed
public BasicTextChatMessage.Builder embed(java.util.function.Consumer<ChatEmbed.Builder> function)
Description copied from interface:ChatMessage.BuilderAppends an abstract embed to the message.- Specified by:
embedin interfaceChatMessage.Builder- Parameters:
function- embed to append.- Returns:
- Builder instance.
-
getMessage
public java.lang.String getMessage()
-
build
public BasicTextChatMessage build()
-
-