Interface AllowedMentions



  • public interface AllowedMentions
    This interface represents a mention.
    • Method Detail

      • getAllowedRoleMentions

        List<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

        List<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

        EnumSet<AllowedMentionType> getMentionTypes​()
        Gets the explicitly allowed mention types from the message.
        Returns:
        The allowed mention types of the message.