Interface Embed.Fields
- Enclosing class:
Embed
public static interface Embed.Fields
Methods for manipulating the fields of an
Embed
.-
Method Summary
Modifier and TypeMethodDescriptiondefault Embed.Fields
Removes all fields with the given value.default Embed.Fields
Removes all fields with the given name and value.default Embed.Fields
removeByName
(String name) Removes all fields with the given name.default Embed.Fields
removeIf
(String name, Predicate<MessageEmbed.Field> filter) Removes all fields with the given name of this embed based on the givenPredicate
.removeIf
(Predicate<MessageEmbed.Field> filter) Removes all fields of this embed based on the givenPredicate
.
-
Method Details
-
removeIf
-
removeIf
-
remove
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
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
Removes all fields with the given name and value.- Parameters:
name
- the name of the field that should be removedvalue
- the value of the field that should be removed- Returns:
- this instance for fluent interface
-