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

@fedify/botkit@0.2.0-dev.77+d1f283de
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
3 weeks ago (0.2.0-dev.77+d1f283de)
interface FollowRequest

A follow request to the bot.

Properties

readonly
id: URL

The URI of the follow request.

readonly
raw: Follow

The raw follow request object.

readonly
follower: Actor

The follower actor.

readonly
state:
"pending"
| "accepted"
| "rejected"

The state of the follow request.

  • "pending": The follow request is pending.
  • "accepted": The follow request is accepted.
  • "rejected": The follow request is rejected.

Methods

accept(): Promise<void>

Accepts the follow request.

reject(): Promise<void>

Rejects the follow request.

Add Package

deno add jsr:@fedify/botkit

Import symbol

import { type FollowRequest } from "@fedify/botkit/follow";

---- OR ----

Import directly with a jsr specifier

import { type FollowRequest } from "jsr:@fedify/botkit/follow";