Interface AllowedMentions
-
public interface AllowedMentions
This interface represents a mention.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.Long>
getAllowedRoleMentions()
Gets the explicitly allowed user mentions from the message.java.util.Set<java.lang.Long>
getAllowedUserMentions()
Gets the explicitly allowed role mentions from the message.boolean
getMentionRepliedUser()
Whether to mention the replied user if this message is a reply.java.util.EnumSet<AllowedMentionType>
getMentionTypes()
Gets the explicitly allowed mention types from the message.
-
-
-
Method Detail
-
getAllowedRoleMentions
java.util.Set<java.lang.Long> getAllowedRoleMentions()
Gets the explicitly allowed user mentions from the message. This could differ from the actual mentioned roles ifAllowedMentionsBuilder.setMentionRoles(boolean)
has been set to true.- Returns:
- The explicitly allowed mentions for users of the message.
-
getAllowedUserMentions
java.util.Set<java.lang.Long> getAllowedUserMentions()
Gets the explicitly allowed role mentions from the message. This could differ from the actual mentioned users ifAllowedMentionsBuilder.setMentionUsers(boolean)
has been set to true.- Returns:
- The explicitly allowed mentions for roles of the message.
-
getMentionTypes
java.util.EnumSet<AllowedMentionType> getMentionTypes()
Gets the explicitly allowed mention types from the message.- Returns:
- The allowed mention types of the message.
-
getMentionRepliedUser
boolean getMentionRepliedUser()
Whether to mention the replied user if this message is a reply.- Returns:
- Whether to mention the replied user.
-
-