T - Implementing classpublic abstract class AbstractInlineMenuBuilder<T extends AbstractInlineMenuBuilder> extends Object
| Constructor and Description |
|---|
AbstractInlineMenuBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
allowedUser(long userId)
Allow a single user to use this menu
|
T |
allowedUser(User allowedUser)
Allow a single user to use this menu
|
T |
allowedUsers(long... userIds)
Allow a list of users to use this menu
|
T |
allowedUsers(User... users)
Allow a list of users to use this menu
|
abstract InlineMenu |
buildMenu()
Build the menu
|
protected InlineMenu |
buildMenu(Message base)
Build a menu from message base.
|
protected abstract T |
instance()
Return current instance.
|
InlineMenuRowBuilder<T> |
newRow()
Create a new row
|
T |
removeLast()
Remove the last row.
|
T |
userFilter(Predicate<User> predicate)
Add a user filter to the menu.
|
public InlineMenuRowBuilder<T> newRow()
public abstract InlineMenu buildMenu()
protected abstract T instance()
protected InlineMenu buildMenu(Message base)
base - Messagepublic T removeLast()
public T userFilter(Predicate<User> predicate)
predicate - user filterpublic T allowedUsers(User... users)
users - Allowed userspublic T allowedUser(User allowedUser)
allowedUser - allowed userpublic T allowedUsers(long... userIds)
userIds - allows user idspublic T allowedUser(long userId)
userId - the id of said userCopyright © 2017. All rights reserved.