Search
Preparing search index...
The search index is not available
Synergy 3
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Synergy 3
UserManager
UserManager
Class UserManager
Hierarchy
UserManager
Index
Constructors
constructor
Properties
bot
cached
discord
Ids
Associations
timer
Methods
cache
From
Storage
Instance
create
From
Discord
fetch
Bulk
fetch
One
id
From
Discord
Id
sync
Cache
Entry
sync
Storage
update
Associations
Constructors
constructor
new
User
Manager
(
bot
:
Synergy
)
:
UserManager
Parameters
bot:
Synergy
Returns
UserManager
Properties
bot
bot
:
Synergy
cached
cached
:
Map
<
number
,
User
>
= ...
Private
discord
Ids
Associations
discord
Ids
Associations
:
Map
<
string
,
number
>
= ...
Private
timer
timer
:
Timeout
Methods
Private
cache
From
Storage
Instance
cache
From
Storage
Instance
(
storage_user
:
StorageUser
)
:
Promise
<
User
>
Parameters
storage_user:
StorageUser
Returns
Promise
<
User
>
create
From
Discord
create
From
Discord
(
dUser
:
User
, groups
?:
string
[]
)
:
Promise
<
User
>
Parameters
dUser:
User
groups:
string
[]
= ...
Returns
Promise
<
User
>
fetch
Bulk
fetch
Bulk
(
userIds
:
number
[]
, force
?:
boolean
)
:
Promise
<
User
[]
>
Parameters
userIds:
number
[]
Optional
force:
boolean
Returns
Promise
<
User
[]
>
fetch
One
fetch
One
(
userId
:
number
, force
?:
boolean
)
:
Promise
<
null
|
User
>
Parameters
userId:
number
Optional
force:
boolean
Returns
Promise
<
null
|
User
>
id
From
Discord
Id
id
From
Discord
Id
(
id
:
string
)
:
undefined
|
number
Parameters
id:
string
Returns
undefined
|
number
Private
sync
Cache
Entry
sync
Cache
Entry
(
user
:
User
, storageUser
:
StorageUser
, t
:
Transaction
)
:
Promise
<
void
>
Parameters
user:
User
storageUser:
StorageUser
t:
Transaction
Returns
Promise
<
void
>
sync
Storage
sync
Storage
(
)
:
Promise
<
void
>
Don't execute this function directly! It is for internal calls
Returns
Promise
<
void
>
update
Associations
update
Associations
(
)
:
Promise
<
void
>
Don't execute this function directly! It is for internal calls
Returns
Promise
<
void
>
Modules
Config
Manager
Database
Event
Manager
Global
Logger
Guild
Manager
Interactions/
Interaction
Types
Interactions/
Interactive
Base
Interactions/
Interactive
Command
Interactions/
Interactive
Component
Interactions
Manager
Models/
Storage
Guild
Models/
Storage
Module
Data
Container
Models/
Storage
User
Models/
Storage
User
Discord
Info
Models/
Storage
User
Economy
Info
Module
Data
Manager
Module
Manager
Modules/
Core
Modules/
Core/
Avatar
Modules/
Core/
Config
Modules/
Core/
Placeholder
Modules/
Core/
Profile
Modules/
Core/RHelp
Modules/IModule
Modules/
Module
Structures/
Access
Structures/
Errors
Structures/
Guild
Structures/
User
Synergy
User
Manager
Utils
index
User
Manager
constructor
bot
cached
discord
Ids
Associations
timer
cache
From
Storage
Instance
create
From
Discord
fetch
Bulk
fetch
One
id
From
Discord
Id
sync
Cache
Entry
sync
Storage
update
Associations
Generated using
TypeDoc
Don't execute this function directly! It is for internal calls