UNPKG

@ayanaware/bentocord

Version:

Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.

11 lines (10 loc) 698 B
import type { BaseContext } from '../contexts/BaseContext'; import { PossiblyTranslatable } from '../interfaces/Translatable'; import { CodeblockLineItem, CodeblockBuilder } from './CodeblockBuilder'; export declare class LocalizedCodeblockBuilder extends CodeblockBuilder { private readonly ctx; constructor(ctx: BaseContext, language?: string); setTranslatedHeader(key: string, repl?: Record<string, unknown>, backup?: string): Promise<void>; setTranslatedFooter(key: string, repl?: Record<string, unknown>, backup?: string): Promise<void>; addTranslatedLine(item: PossiblyTranslatable, value?: PossiblyTranslatable | CodeblockLineItem): Promise<LocalizedCodeblockBuilder>; }