pylav.extension.red.converters package#

Submodules#

pylav.extension.red.converters.equalizer module#

class pylav.extension.red.converters.equalizer.BassBoostConverter[source]#

Bases: Transformer

async classmethod autocomplete(interaction, current)[source]#

An autocomplete prompt handler to be automatically used by options using this transformer.

Note

Autocomplete is only supported for options with a type() of string, integer, or number.

Parameters:
  • interaction (Interaction) – The autocomplete interaction being handled.

  • value (Union[:class:`str`, int, float]) – The current value entered by the user.

Returns:

A list of choices to be displayed to the user, a maximum of 25.

Return type:

List[:class:`~discord.app_commands.Choice]`

async classmethod convert(ctx, arg)[source]#

Converts user input to a valid argument for the bassboost command

async classmethod transform(interaction, argument)[source]#

Transforms the converted option value into another value.

The value passed into this transform function is the same as the one in the conversion table.

Parameters:
  • interaction (Interaction) – The interaction being handled.

  • value (Any) – The value of the given argument after being resolved. See the conversion table for how certain option types correspond to certain values.

Module contents#