Skip to main content
Home
This release is a pre-release — the latest non-prerelease version of @fedify/botkit is 0.2.1. Jump to this version

@fedify/botkit@0.3.0-dev.119+a1068dd9
Built and signed on GitHub Actions

A framework for creating ActivityPub bots

This package works with Deno
This package works with Deno
JSR Score
88%
Published
a week ago (0.3.0-dev.119+a1068dd9)
interface Vote

An interface representing a vote in a poll. Note that if the poll allows multiple selections, the options are represented as multiple Vote objects, each with a single option.

Type Parameters

TContextData

The type of the context data.

Properties

readonly
raw: Note

The underlying raw note object.

readonly
actor: Actor

The actor who voted.

The question to which the poll belongs.

readonly
poll: Poll

The poll to which the vote belongs.

readonly
option: string

The options selected by the actor. Note that this is a string even if the poll allows multiple selections. If the poll allows multiple selections, the options are represented as multiple Vote objects.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fedify/botkit

Import symbol

import { type Vote } from "@fedify/botkit/poll";
or

Import directly with a jsr specifier

import { type Vote } from "jsr:@fedify/botkit/poll";