Preparing search index...
The search index is not available
onebot-client
onebot-client
User
Class User
Hierarchy
Contactable
Hierarchy
User
Hierarchy
Member
Index
Constructors
constructor
Properties
c
group_
id?
max
Listeners
uid
user_
id?
Accessors
client
Methods
add
Listener
add
Once
Listener
after
as
Friend
as
Member
bail
bail
Sync
before
em
emit
emit
Async
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
remove
Listener
set
Max
Listeners
as
Constructors
constructor
new
User
(
c
:
Client
, uid
:
number
)
:
User
Parameters
c:
Client
uid:
number
Returns
User
Properties
c
c
:
Client
Protected
Optional
group_
id
group_
id
?:
number
max
Listeners
max
Listeners
:
number
Readonly
uid
uid
:
number
Protected
Optional
user_
id
user_
id
?:
number
Accessors
client
get
client
(
)
:
Client
Returns
Client
Methods
add
Listener
add
Listener
(
event
:
EventName
, listener
:
Listener
, prepend
?:
boolean
)
:
Dispose
Parameters
event:
EventName
listener:
Listener
Optional
prepend:
boolean
Returns
Dispose
add
Once
Listener
add
Once
Listener
(
event
:
EventName
, listener
:
Listener
, prepend
?:
boolean
)
:
Dispose
Parameters
event:
EventName
listener:
Listener
Optional
prepend:
boolean
Returns
Dispose
after
after
(
event
:
string
, listener
:
Listener
)
:
Dispose
Parameters
event:
string
listener:
Listener
Returns
Dispose
as
Friend
as
Friend
(
)
:
Friend
Returns
Friend
as
Member
as
Member
(
gid
:
number
)
:
Member
Parameters
gid:
number
Returns
Member
bail
bail
(
event
:
EventName
,
...
args
:
any
[]
)
:
any
Parameters
event:
EventName
Rest
...
args:
any
[]
Returns
any
bail
Sync
bail
Sync
(
event
:
EventName
,
...
args
:
any
[]
)
:
Promise
<
any
>
Parameters
event:
EventName
Rest
...
args:
any
[]
Returns
Promise
<
any
>
before
before
(
event
:
string
, listener
:
Listener
)
:
Dispose
Parameters
event:
string
listener:
Listener
Returns
Dispose
em
em
(
name
:
string
, data
:
any
)
:
void
Parameters
name:
string
data:
any
Returns
void
emit
emit
(
event
:
EventName
,
...
args
:
any
[]
)
:
void
Parameters
event:
EventName
Rest
...
args:
any
[]
Returns
void
emit
Async
emit
Async
(
event
:
EventName
,
...
args
:
any
[]
)
:
Promise
<
void
>
Parameters
event:
EventName
Rest
...
args:
any
[]
Returns
Promise
<
void
>
event
Names
event
Names
(
)
:
EventName
[]
Returns
EventName
[]
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
listener
Count
listener
Count
(
event
:
EventName
)
:
number
Parameters
event:
EventName
Returns
number
listeners
listeners
(
event
?:
EventName
)
:
Listener
[]
Parameters
Optional
event:
EventName
Returns
Listener
[]
off
off
(
event
?:
EventName
, listener
?:
Listener
)
:
boolean
Parameters
Optional
event:
EventName
Optional
listener:
Listener
Returns
boolean
on
on
(
event
:
EventName
, listener
:
Listener
, prepend
?:
boolean
)
:
Dispose
Parameters
event:
EventName
listener:
Listener
Optional
prepend:
boolean
Returns
Dispose
once
once
(
event
:
EventName
, listener
:
Listener
, prepend
?:
boolean
)
:
Dispose
Parameters
event:
EventName
listener:
Listener
Optional
prepend:
boolean
Returns
Dispose
prepend
Listener
prepend
Listener
(
event
:
EventName
, listener
:
Listener
, append
?:
boolean
)
:
Dispose
Parameters
event:
EventName
listener:
Listener
Optional
append:
boolean
Returns
Dispose
prepend
Once
Listener
prepend
Once
Listener
(
event
:
EventName
, listener
:
Listener
, append
?:
boolean
)
:
Dispose
Parameters
event:
EventName
listener:
Listener
Optional
append:
boolean
Returns
Dispose
remove
Listener
remove
Listener
(
event
?:
EventName
, listener
?:
Listener
)
:
boolean
Parameters
Optional
event:
EventName
Optional
listener:
Listener
Returns
boolean
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
User
Parameters
n:
number
Returns
User
Static
as
as
(
this
:
Client
, uid
:
number
)
:
User
Parameters
this:
Client
uid:
number
Returns
User
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
onebot-
client
Client
User
constructor
c
group_
id?
max
Listeners
uid
user_
id?
client
add
Listener
add
Once
Listener
after
as
Friend
as
Member
bail
bail
Sync
before
em
emit
emit
Async
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
remove
Listener
set
Max
Listeners
as
Generated using
TypeDoc