Preparing search index...
The search index is not available
@aoijs/aoi.music
@aoijs/aoi.music
Manager
Class Manager
Hierarchy (
View Summary
)
TypedEmitter
<
ManagerEvents
>
Manager
AoiVoice
Index
Constructors
constructor
Properties
configs
platforms
players
plugins
spotify
Api
default
Max
Listeners
Methods
add
Listener
add
Plugin
emit
event
Names
get
Max
Listeners
join
Vc
leave
Vc
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
search
set
Max
Listeners
default
Config
Constructors
constructor
new
Manager
(
config
?:
ManagerConfigurations
)
:
Manager
Parameters
Optional
config
:
ManagerConfigurations
Returns
Manager
Properties
configs
configs
:
ManagerConfigurations
platforms
platforms
:
{
soundcloud
:
SCDL
;
spotify
?:
Spotify
;
youtube
:
Promise
<
Innertube
>
}
players
players
:
Map
<
string
,
AudioPlayer
>
plugins
plugins
:
Map
<
PluginName
,
Plugin
<
PluginName
>
>
= ...
spotify
Api
spotifyApi
:
SpotifyWebApi
Static
default
Max
Listeners
defaultMaxListeners
:
number
Methods
add
Listener
addListener
<
U
extends
keyof
ManagerEvents
>
(
event
:
U
,
listener
:
ManagerEvents
[
U
]
,
)
:
this
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
event
:
U
listener
:
ManagerEvents
[
U
]
Returns
this
add
Plugin
addPlugin
<
A
extends
PluginName
>
(
name
:
A
,
plugin
:
Plugin
<
A
>
)
:
void
Type Parameters
A
extends
PluginName
Parameters
name
:
A
plugin
:
Plugin
<
A
>
Returns
void
emit
emit
<
U
extends
keyof
ManagerEvents
>
(
event
:
U
,
...
args
:
Parameters
<
ManagerEvents
[
U
]
>
,
)
:
boolean
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
event
:
U
...
args
:
Parameters
<
ManagerEvents
[
U
]
>
Returns
boolean
event
Names
eventNames
<
U
extends
keyof
ManagerEvents
>
()
:
U
[]
Type Parameters
U
extends
keyof
ManagerEvents
Returns
U
[]
get
Max
Listeners
getMaxListeners
()
:
number
Returns
number
join
Vc
joinVc
(
__namedParameters
:
{
adapter
?:
any
;
selfDeaf
?:
boolean
;
selfMute
?:
boolean
;
type
:
"default"
|
"fonly"
|
"bidirect"
;
voiceChannel
:
VoiceBasedChannel
;
}
,
)
:
Promise
<
boolean
>
Parameters
__namedParameters
:
{
adapter
?:
any
;
selfDeaf
?:
boolean
;
selfMute
?:
boolean
;
type
:
"default"
|
"fonly"
|
"bidirect"
;
voiceChannel
:
VoiceBasedChannel
;
}
Returns
Promise
<
boolean
>
leave
Vc
leaveVc
(
guildId
:
string
)
:
void
Parameters
guildId
:
string
Returns
void
listener
Count
listenerCount
(
type
:
keyof
ManagerEvents
)
:
number
Parameters
type
:
keyof
ManagerEvents
Returns
number
listeners
listeners
<
U
extends
keyof
ManagerEvents
>
(
type
:
U
)
:
ManagerEvents
[
U
]
[]
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
type
:
U
Returns
ManagerEvents
[
U
]
[]
off
off
<
U
extends
keyof
ManagerEvents
>
(
event
:
U
,
listener
:
ManagerEvents
[
U
]
)
:
this
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
event
:
U
listener
:
ManagerEvents
[
U
]
Returns
this
on
on
<
U
extends
keyof
ManagerEvents
>
(
event
:
U
,
listener
:
ManagerEvents
[
U
]
)
:
this
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
event
:
U
listener
:
ManagerEvents
[
U
]
Returns
this
once
once
<
U
extends
keyof
ManagerEvents
>
(
event
:
U
,
listener
:
ManagerEvents
[
U
]
)
:
this
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
event
:
U
listener
:
ManagerEvents
[
U
]
Returns
this
prepend
Listener
prependListener
<
U
extends
keyof
ManagerEvents
>
(
event
:
U
,
listener
:
ManagerEvents
[
U
]
,
)
:
this
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
event
:
U
listener
:
ManagerEvents
[
U
]
Returns
this
prepend
Once
Listener
prependOnceListener
<
U
extends
keyof
ManagerEvents
>
(
event
:
U
,
listener
:
ManagerEvents
[
U
]
,
)
:
this
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
event
:
U
listener
:
ManagerEvents
[
U
]
Returns
this
raw
Listeners
rawListeners
<
U
extends
keyof
ManagerEvents
>
(
type
:
U
)
:
ManagerEvents
[
U
]
[]
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
type
:
U
Returns
ManagerEvents
[
U
]
[]
remove
All
Listeners
removeAllListeners
(
event
?:
keyof
ManagerEvents
)
:
this
Parameters
Optional
event
:
keyof
ManagerEvents
Returns
this
remove
Listener
removeListener
<
U
extends
keyof
ManagerEvents
>
(
event
:
U
,
listener
:
ManagerEvents
[
U
]
,
)
:
this
Type Parameters
U
extends
keyof
ManagerEvents
Parameters
event
:
U
listener
:
ManagerEvents
[
U
]
Returns
this
search
search
<
T
extends
PlatformType
>
(
type
:
T
,
query
:
string
,
limit
?:
number
,
)
:
Promise
<
any
>
Type Parameters
T
extends
PlatformType
Parameters
type
:
T
query
:
string
limit
:
number
= 1
Returns
Promise
<
any
>
set
Max
Listeners
setMaxListeners
(
n
:
number
)
:
this
Parameters
n
:
number
Returns
this
Static
default
Config
defaultConfig
()
:
ManagerConfigurations
Returns
ManagerConfigurations
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
configs
platforms
players
plugins
spotify
Api
default
Max
Listeners
Methods
add
Listener
add
Plugin
emit
event
Names
get
Max
Listeners
join
Vc
leave
Vc
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Listener
search
set
Max
Listeners
default
Config
@aoijs/aoi.music
Loading...