Interface AllowedMentionsBuilderDelegate
-
public interface AllowedMentionsBuilderDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRole(long roleId)Adds a role to the mentions list which should be mentioned if mentioned.voidaddRole(java.lang.String roleId)Adds a role to the mentions list which should be mentioned if mentioned.voidaddRoles(java.util.Collection<java.lang.Long> roleIds)Adds a collection of roles to the mentions list which should be mentioned if mentioned.voidaddUser(long userId)Adds a user to the mentions list which should be mentioned if mentioned.voidaddUser(java.lang.String userId)Adds a user to the mentions list which should be mentioned if mentioned.voidaddUsers(java.util.Collection<java.lang.Long> userIds)Adds a collection of user id's to the mentions list which should be mentioned if mentioned.AllowedMentionsbuild()Creates aAllowedMentionsinstance with the given values.voidremoveRole(long roleId)Removes a role from the mentions list if previously added.voidremoveRole(java.lang.String roleId)Removes a role from the mentions list if previously added.voidremoveRoles(java.util.Collection<java.lang.Long> roleIds)Removes a collection of role id's from the mentions list if previously added.voidremoveUser(long userId)Removes a user from the mentions list if previously added.voidremoveUser(java.lang.String userId)Removes a user from the mentions list if previously added.voidremoveUsers(java.util.Collection<java.lang.Long> userIds)Removes a collection of user id's from the mentions list if previously added.voidsetMentionEveryoneAndHere(boolean value)Sets the general mentions of the message.voidsetMentionRepliedUser(boolean value)Sets whether the replied user should be mentioned if the message is a reply.voidsetMentionRoles(boolean value)Sets the general mentions of the message.voidsetMentionUsers(boolean value)Sets the general mentions of the message.
-
-
-
Method Detail
-
setMentionEveryoneAndHere
void setMentionEveryoneAndHere(boolean value)
Sets the general mentions of the message.- Parameters:
value- Whether the message mentions @everyone and @here.
-
setMentionRoles
void setMentionRoles(boolean value)
Sets the general mentions of the message.- Parameters:
value- Whether the message mentions all mentioned roles.
-
setMentionUsers
void setMentionUsers(boolean value)
Sets the general mentions of the message.- Parameters:
value- Whether the message mentions all mentioned users.
-
setMentionRepliedUser
void setMentionRepliedUser(boolean value)
Sets whether the replied user should be mentioned if the message is a reply.- Parameters:
value- Whether the message mentions the replied user.
-
addUser
void addUser(long userId)
Adds a user to the mentions list which should be mentioned if mentioned.- Parameters:
userId- Whether the message mentions the mentioned user.
-
addUser
void addUser(java.lang.String userId)
Adds a user to the mentions list which should be mentioned if mentioned.- Parameters:
userId- Whether the message mentions the mentioned user.
-
addUsers
void addUsers(java.util.Collection<java.lang.Long> userIds)
Adds a collection of user id's to the mentions list which should be mentioned if mentioned.- Parameters:
userIds- Whether the message mentions the mentioned users.
-
addRole
void addRole(long roleId)
Adds a role to the mentions list which should be mentioned if mentioned.- Parameters:
roleId- Whether the message mentions the mentioned roles.
-
addRole
void addRole(java.lang.String roleId)
Adds a role to the mentions list which should be mentioned if mentioned.- Parameters:
roleId- Whether the message mentions the mentioned roles.
-
addRoles
void addRoles(java.util.Collection<java.lang.Long> roleIds)
Adds a collection of roles to the mentions list which should be mentioned if mentioned.- Parameters:
roleIds- Whether the message mentions the mentioned roles.
-
removeUser
void removeUser(long userId)
Removes a user from the mentions list if previously added.- Parameters:
userId- The id of the user which should be removed from the list.
-
removeUser
void removeUser(java.lang.String userId)
Removes a user from the mentions list if previously added.- Parameters:
userId- The id of the user which should be removed from the list.
-
removeRole
void removeRole(long roleId)
Removes a role from the mentions list if previously added.- Parameters:
roleId- The id of the role which should be removed from the list.
-
removeRole
void removeRole(java.lang.String roleId)
Removes a role from the mentions list if previously added.- Parameters:
roleId- The id of the role which should be removed from the list.
-
removeUsers
void removeUsers(java.util.Collection<java.lang.Long> userIds)
Removes a collection of user id's from the mentions list if previously added.- Parameters:
userIds- A collection of user id's which should be removed from the list.
-
removeRoles
void removeRoles(java.util.Collection<java.lang.Long> roleIds)
Removes a collection of role id's from the mentions list if previously added.- Parameters:
roleIds- A collection of role id's which should be removed from the list.
-
build
AllowedMentions build()
Creates aAllowedMentionsinstance with the given values.- Returns:
- The created permissions instance.
-
-