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)
method Bot.addCustomEmojis
Bot.addCustomEmojis<TEmojiName extends string>(emojis: Readonly<Record<TEmojiName, CustomEmoji>>): Readonly<Record<TEmojiName, DeferredCustomEmoji<TContextData>>>

Defines custom emojis for the bot. The custom emojis are used for rendering the bot's profile and posts. The custom emojis are defined by their names, and the names are used as the keys of the emojis.

Type Parameters

TEmojiName extends string

Parameters

emojis: Readonly<Record<TEmojiName, CustomEmoji>>

The custom emojis to define. The keys are the names of the emojis, and the values are the custom emoji definitions.

Return Type

Readonly<Record<TEmojiName, DeferredCustomEmoji<TContextData>>>

The defined emojis. The keys are the names of the emojis, and the values are the emoji objects, which are used for passing to the customEmoji function.

Throws

TypeError

If any emoji name is invalid or duplicate.

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 Bot } from "@fedify/botkit/bot";
or

Import directly with a jsr specifier

import { type Bot } from "jsr:@fedify/botkit/bot";