Interface AllowedMentions


  • public interface AllowedMentions
    This interface represents a mention.
    • 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 if AllowedMentionsBuilder.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 if AllowedMentionsBuilder.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.