Class AllowedMentionsImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      AllowedMentionsImpl​(boolean mentionAllRoles, boolean mentionAllUsers, boolean mentionEveryoneAndHere, boolean mentionRepliedUser, java.util.HashSet<java.lang.Long> allowedRoleMentions, java.util.HashSet<java.lang.Long> allowedUserMentions)
      Creates a new mention.
    • Constructor Detail

      • AllowedMentionsImpl

        public AllowedMentionsImpl​(boolean mentionAllRoles,
                                   boolean mentionAllUsers,
                                   boolean mentionEveryoneAndHere,
                                   boolean mentionRepliedUser,
                                   java.util.HashSet<java.lang.Long> allowedRoleMentions,
                                   java.util.HashSet<java.lang.Long> allowedUserMentions)
        Creates a new mention.
        Parameters:
        mentionAllRoles - Whether it mentions all roles.
        mentionAllUsers - Whether it mentions all users.
        mentionEveryoneAndHere - Whether it mentions @everyone and @here.
        mentionRepliedUser - Whether it mentions the replied user.
        allowedRoleMentions - Mentions added role ids.
        allowedUserMentions - Mentions added user ids.
    • Method Detail

      • toJsonNode

        public com.fasterxml.jackson.databind.node.ObjectNode toJsonNode()
        Gets the embed as a ObjectNode. This is what is sent to Discord.
        Returns:
        The embed as a ObjectNode.
      • toJsonNode

        public com.fasterxml.jackson.databind.node.ObjectNode toJsonNode​(com.fasterxml.jackson.databind.node.ObjectNode object)
        Adds the json data to the given object node.
        Parameters:
        object - The object, the data should be added to.
        Returns:
        The provided object with the data of the embed.