Class PollAttachment

Hierarchy (view full)

Constructors

Properties

$filled: boolean
api: API
type: "poll" | POLL

Accessors

  • get answers(): undefined | {
        id: number;
        rate: number;
        text: string;
        votes: number;
    }[]
  • Returns the information about the options for the answer

    Returns undefined | {
        id: number;
        rate: number;
        text: string;
        votes: number;
    }[]

  • get background(): undefined | {
        angle: number;
        color: string;
        height: number;
        id: number;
        images: undefined | IPhotoSize[];
        points: {
            color: string;
            position: number;
        }[];
        type: "gradient" | "tile";
        width: number;
    }
  • Returns the poll snippet background

    Returns undefined | {
        angle: number;
        color: string;
        height: number;
        id: number;
        images: undefined | IPhotoSize[];
        points: {
            color: string;
            position: number;
        }[];
        type: "gradient" | "tile";
        width: number;
    }

Methods

Generated using TypeDoc