Interface AllowedMentions
-
public interface AllowedMentionsThis interface represents a mention.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Long>getAllowedRoleMentions()Gets the explicitly allowed user mentions from the message.List<Long>getAllowedUserMentions()Gets the explicitly allowed role mentions from the message.EnumSet<AllowedMentionType>getMentionTypes()Gets the explicitly allowed mention types from the message.
-
-
-
Method Detail
-
getAllowedRoleMentions
List<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
List<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
EnumSet<AllowedMentionType> getMentionTypes()
Gets the explicitly allowed mention types from the message.- Returns:
- The allowed mention types of the message.
-
-