Abstract#
- class harmonize.abstract.Filter(values: T, plugin_filter: bool = False)[source]#
Basic class of filters
Note
This class can be used if additional filters are used that are not implemented
Operations#
- x == y
Checks if two filters are the same.
- x != y
Checks if two filters are not the same.
- hash(x)
Return the filter’s hash.
- values#
Values Needed Lavalink. See
harmonize.objects.ChannelMixfor example
- plugin_filter#
A flag indicating whether the filter is a plugin filter. Default is False.
- Type:
- abstract update(**kwargs) None[source]#
Update the filter with new parameters.
- Parameters:
kwargs (dict) – Keyword arguments representing the new parameters for the filter.
- Raises:
NotImplementedError – If the method is not implemented in a subclass.
- Return type:
None
- class harmonize.abstract.Serializable[source]#
Abstract base class for objects that can be serialized and deserialized.
- classmethod from_dict(data: dict) Serializable[source]#
Creates and returns a new instance of the class from the given dictionary data.
- Parameters:
data (dict) – A dictionary containing the data to initialize the new instance.
- Returns:
A new instance of the class initialized with the given data.
- Return type:
- Raises:
NotImplementedError – If the method is not implemented in a subclass.