Package io.manebot.user
Interface UserPrompt
-
public interface UserPrompt
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
UserPrompt.Builder
-
Method Summary
Modifier and Type Method Description void
complete()
Completes this prompt.User
getCaller()
Gets the user that constructed this prompt.java.util.function.Consumer<TextBuilder>
getDescription()
Gets the description builder.java.lang.String
getName()
Gets the name of this prompt.User
getUser()
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 CommandExecutionException
Completes this prompt.- Throws:
CommandExecutionException
- if there was a problem fulfilling the prompt.
-
-