Interface Embed.Fields

Enclosing class:
Embed

public static interface Embed.Fields
Methods for manipulating the fields of an Embed.
  • Method Details

    • removeIf

      Removes all fields of this embed based on the given Predicate.
      Parameters:
      filter - the Predicate to test the fields with
      Returns:
      this instance for fluent interface
    • removeIf

      default Embed.Fields removeIf(String name, Predicate<MessageEmbed.Field> filter)
      Removes all fields with the given name of this embed based on the given Predicate.
      Parameters:
      name - the name of the fields to test
      filter - the Predicate to test the fields with
      Returns:
      this instance for fluent interface
    • remove

      default Embed.Fields remove(String value)
      Removes all fields with the given value.
      Parameters:
      value - the value of a field that should be removed
      Returns:
      this instance for fluent interface
    • removeByName

      default Embed.Fields removeByName(String name)
      Removes all fields with the given name.
      Parameters:
      name - the name of a field that should be removed
      Returns:
      this instance for fluent interface
    • remove

      default Embed.Fields remove(String name, String value)
      Removes all fields with the given name and value.
      Parameters:
      name - the name of the field that should be removed
      value - the value of the field that should be removed
      Returns:
      this instance for fluent interface