Package io.manebot.user
Interface UserPrompt
-
public interface UserPrompt
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUserPrompt.Builder
-
Method Summary
Modifier and Type Method Description voidcomplete()Completes this prompt.UsergetCaller()Gets the user that constructed this prompt.java.util.function.Consumer<TextBuilder>getDescription()Gets the description builder.java.lang.StringgetName()Gets the name of this prompt.UsergetUser()Gets the user that this prompt is for.
-
-
-
Method Detail
-
getUser
User getUser()
Gets the user that this prompt is for.- Returns:
- user.
-
getCaller
User getCaller()
Gets the user that constructed this prompt.- Returns:
- caller.
-
getName
java.lang.String getName()
Gets the name of this prompt.- Returns:
- prompt name.
-
getDescription
java.util.function.Consumer<TextBuilder> getDescription()
Gets the description builder.- Returns:
- description builder.
-
complete
void complete() throws CommandExecutionExceptionCompletes this prompt.- Throws:
CommandExecutionException- if there was a problem fulfilling the prompt.
-
-