Interface AllowedMentionsBuilderDelegate



  • public interface AllowedMentionsBuilderDelegate
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addRole​(long roleId)
      Adds a role to the mentions list which should be mentioned if mentioned.
      void addRole​(String roleId)
      Adds a role to the mentions list which should be mentioned if mentioned.
      void addRoles​(Collection<Long> roleIds)
      Adds a collection of roles to the mentions list which should be mentioned if mentioned.
      void addUser​(long userId)
      Adds an user to the mentions list which should be mentioned if mentioned.
      void addUser​(String userId)
      Adds an user to the mentions list which should be mentioned if mentioned.
      void addUsers​(Collection<Long> userIds)
      Adds a collection of user id's to the mentions list which should be mentioned if mentioned.
      AllowedMentions build​()
      Creates a AllowedMentions instance with the given values.
      void removeRole​(long roleId)
      Removes a role from the mentions list if previously added.
      void removeRole​(String roleId)
      Removes a role from the mentions list if previously added.
      void removeRoles​(Collection<Long> roleIds)
      Removes a collection of role id's from the mentions list if previously added.
      void removeUser​(long userId)
      Removes an user from the mentions list if previously added.
      void removeUser​(String userId)
      Removes an user from the mentions list if previously added.
      void removeUsers​(Collection<Long> userIds)
      Removes a collection of user id's from the mentions list if previously added.
      void setMentionEveryoneAndHere​(boolean value)
      Sets the general mentions of the message.
      void setMentionRoles​(boolean value)
      Sets the general mentions of the message.
      void setMentionUsers​(boolean value)
      Sets the general mentions of the message.
    • Method Detail

      • setMentionEveryoneAndHere

        void setMentionEveryoneAndHere​(boolean value)
        Sets the general mentions of the message.
        Parameters:
        value - Whether the message mentions @everyone and @here.
      • setMentionRoles

        void setMentionRoles​(boolean value)
        Sets the general mentions of the message.
        Parameters:
        value - Whether the message mentions all mentioned roles.
      • setMentionUsers

        void setMentionUsers​(boolean value)
        Sets the general mentions of the message.
        Parameters:
        value - Whether the message mentions all mentioned users.
      • addUser

        void addUser​(long userId)
        Adds an user to the mentions list which should be mentioned if mentioned.
        Parameters:
        userId - Whether the message mentions the mentioned user.
      • addUser

        void addUser​(String userId)
        Adds an user to the mentions list which should be mentioned if mentioned.
        Parameters:
        userId - Whether the message mentions the mentioned user.
      • addUsers

        void addUsers​(Collection<Long> userIds)
        Adds a collection of user id's to the mentions list which should be mentioned if mentioned.
        Parameters:
        userIds - Whether the message mentions the mentioned users.
      • addRole

        void addRole​(long roleId)
        Adds a role to the mentions list which should be mentioned if mentioned.
        Parameters:
        roleId - Whether the message mentions the mentioned roles.
      • addRole

        void addRole​(String roleId)
        Adds a role to the mentions list which should be mentioned if mentioned.
        Parameters:
        roleId - Whether the message mentions the mentioned roles.
      • addRoles

        void addRoles​(Collection<Long> roleIds)
        Adds a collection of roles to the mentions list which should be mentioned if mentioned.
        Parameters:
        roleIds - Whether the message mentions the mentioned roles.
      • removeUser

        void removeUser​(long userId)
        Removes an user from the mentions list if previously added.
        Parameters:
        userId - The id of the user which should be removed from the list.
      • removeUser

        void removeUser​(String userId)
        Removes an user from the mentions list if previously added.
        Parameters:
        userId - The id of the user which should be removed from the list.
      • removeRole

        void removeRole​(long roleId)
        Removes a role from the mentions list if previously added.
        Parameters:
        roleId - The id of the role which should be removed from the list.
      • removeRole

        void removeRole​(String roleId)
        Removes a role from the mentions list if previously added.
        Parameters:
        roleId - The id of the role which should be removed from the list.
      • removeUsers

        void removeUsers​(Collection<Long> userIds)
        Removes a collection of user id's from the mentions list if previously added.
        Parameters:
        userIds - A collection of user id's which should be removed from the list.
      • removeRoles

        void removeRoles​(Collection<Long> roleIds)
        Removes a collection of role id's from the mentions list if previously added.
        Parameters:
        roleIds - A collection of role id's which should be removed from the list.