Filters
Table of contents
Constructors
Accessors
Methods
- apply
- clear
- set
- setChannelMix
- setDistortion
- setEqualizer
- setKaraoke
- setLowPass
- setRotation
- setTimescale
- setTremolo
- setVibrato
- setVolume
Constructors
constructor
• new Filters(player
)
創建一個 Filters 實例
Parameters
Name | Type |
---|---|
player | Player |
Defined in
Accessors
active
• get
active(): FilterOptions
獲取活動 Filters 物件的副本
Returns
Defined in
enabled
• get
enabled(): boolean
檢查某個 Filters 是否已啟用
Returns
boolean
Defined in
Methods
apply
▸ apply(): void
將 Filters 設置傳送到 Lavalink 節點
Returns
void
Defined in
clear
▸ clear(): void
清除所有活動的 Filters
Returns
void
Defined in
set
▸ set(filters
): void
設置所有 Filters
Parameters
Name | Type |
---|---|
filters | FilterOptions |
Returns
void
Defined in
setChannelMix
▸ setChannelMix(options
, apply?
): Filters
設置 ChannelMix Filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | ChannelMixOptions | undefined | channel mix 選項 |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫
Defined in
setDistortion
▸ setDistortion(options
, apply?
): Filters
設置 Distortion Filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | DistortionOptions | undefined | distortion 選項 |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫
Defined in
setEqualizer
▸ setEqualizer(options
, apply?
): Filters
設置 Equalizer Filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | number [] | undefined | 等化器陣列 |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫
Defined in
setKaraoke
▸ setKaraoke(options
, apply?
): Filters
設置 Karaoke Filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | KaraokeOptions | undefined | karaoke 選項 |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫
Defined in
setLowPass
▸ setLowPass(options
, apply?
): Filters
設置 LowPass Filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | LowPassOptions | undefined | lowpass 選項 |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫
Defined in
setRotation
▸ setRotation(options
, apply?
): Filters
設置 Rotation Filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | RotationOptions | undefined | rotation 選項 |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫
Defined in
setTimescale
▸ setTimescale(options
, apply?
): Filters
設置 Timescale Filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | TimescaleOptions | undefined | timescale 選項 |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫
Defined in
setTremolo
▸ setTremolo(options
, apply?
): Filters
設置 Tremolo filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | TremoloOptions | undefined | tremolo 選項 |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫
Defined in
setVibrato
▸ setVibrato(options
, apply?
): Filters
設置 Vibrato filter
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | null | VibratoOptions | undefined | vibrato 選項 |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫
Defined in
setVolume
▸ setVolume(vol
, apply?
): Filters
設置音量
Parameters
Name | Type | Default value | Description |
---|---|---|---|
vol | number | undefined | 要設置的音量 [0,500] |
apply | boolean | true | 是否將 Filter 設置傳送到 Lavalink 節點 |
Returns
Filter 實例,用於鏈式呼叫