Search
Preparing search index...
The search index is not available
node-groupme
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
PollManager
Exports
Class PollManager
Hierarchy
BaseManager
<
Poll
,
typeof Poll
>
PollManager
Implements
PollManagerInterface
Constructors
constructor
Properties
cache
client
group
holds
Methods
_remove
_upsert
create
fetch
resolve
resolve
Id
Constructors
constructor
new
Poll
Manager
(
client
:
Client
, group
:
Group
)
:
PollManager
Parameters
client:
Client
group:
Group
Returns
PollManager
Properties
Readonly
cache
cache
:
Collection
<
string
,
Poll
>
Readonly
client
client
:
Client
Readonly
group
group
:
Group
Readonly
holds
holds
:
typeof Poll
Methods
_remove
_remove
(
data
:
Poll
)
:
boolean
Parameters
data:
Poll
Returns
boolean
_upsert
_upsert
(
data
:
Poll
)
:
Poll
Parameters
data:
Poll
Returns
Poll
create
create
(
question
:
string
, options
:
string
[]
, settings
?:
object
)
:
Promise
<
Poll
>
Parameters
question:
string
options:
string
[]
Optional
settings:
object
Optional
allow
Multiple
Responses
?:
boolean
Optional
duration
?:
number
Optional
end
At
?:
Date
Optional
public
?:
boolean
Returns
Promise
<
Poll
>
fetch
fetch
(
)
:
Promise
<
Collection
<
string
,
Poll
>
>
fetch
(
id
:
string
)
:
Promise
<
Poll
>
Returns
Promise
<
Collection
<
string
,
Poll
>
>
Parameters
id:
string
Returns
Promise
<
Poll
>
resolve
resolve
(
data
:
unknown
)
:
null
|
Poll
Parameters
data:
unknown
Returns
null
|
Poll
resolve
Id
resolve
Id
(
data
:
unknown
)
:
null
|
string
Parameters
data:
unknown
Returns
null
|
string
Channel
Type
Former
Member
State
Attachment
Base
Base
Group
Base
Manager
Channel
Chat
Chat
Manager
Chat
Message
Chat
Message
Manager
Client
Collection
Former
Group
Former
Group
Manager
Former
Member
Former
Member
Manager
Group
Group
Manager
Group
Message
Group
Message
Manager
Member
Member
Manager
Message
Message
Like
Manager
Message
Manager
Poll
Poll
Manager
constructor
cache
client
group
holds
_remove
_upsert
create
fetch
resolve
resolve
Id
Poll
Option
Relationship
Relationship
Manager
User
User
Manager
Sendable
Channel
Interface
Generated using
TypeDoc