Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Poll

Hierarchy

Implements

  • PollInterface

Constructors

constructor

Properties

Private _active

_active: boolean

Readonly client

client: Client

createdAt

createdAt: number

creator

creator: User

expiresAt

expiresAt: number

group

group: Group

Readonly id

id: string

multi

multi: boolean

Optional myVote

myVote: string | string[]

options

options: Collection<string, PollOption>

public

public: boolean

question

question: string

updatedAt

updatedAt: number

Optional voters

voters: Collection<string, string> | Collection<string, string[]>

Accessors

active

  • get active(): boolean
  • Returns boolean

canEnd

  • get canEnd(): boolean
  • Returns boolean

Methods

_clone

  • _clone(): any
  • Returns any

_patch

  • _patch(data: Partial<APIPoll>): Poll
  • Parameters

    • data: Partial<APIPoll>

    Returns Poll

end

  • end(): Promise<Poll>
  • Returns Promise<Poll>

fetch

  • fetch(): Promise<Poll>
  • Returns Promise<Poll>

vote

  • Parameters

    Returns Promise<Poll>

  • Parameters

    Returns Promise<Poll>

Generated using TypeDoc