UNPKG

discord-starboard-plus

Version:

Discord Starboard Plus: A clean, maintainable starboard system for Discord.js bots. Features per-guild configuration, TypeScript support. Highlight your community's favorite messages with customizable starboards.

48 lines 1.79 kB
/** * Discord Starboard Plus * * A clean, maintainable starboard system for Discord.js bots. * and follows clean code principles. * * @module discord-starboard-plus * @version 4.0.0 */ import type { Client } from 'discord.js'; import type { StarboardOptionsInput } from './types'; import { StarboardManager } from './core/StarboardManager'; export { StarboardManager } from './core/StarboardManager'; export { GuildConfigManager } from './core/GuildConfigManager'; export { ValidationService } from './services/ValidationService'; export { MessageSearchService } from './services/MessageSearchService'; export { EmbedBuilderService } from './services/EmbedBuilderService'; export { Logger } from './utils/Logger'; export { ConfigValidator } from './utils/ConfigValidator'; export type { StarboardOptions, StarboardOptionsInput, StarboardEntry, GuildConfig, MessageSearchResult, StarboardChannel, StarboardEmbedResult, LoggerOptions, LogContext, Snowflake, ReactionEventHandler, MessageDeleteEventHandler } from './types'; /** * Starboard class - Backward compatible wrapper for StarboardManager. * * This class maintains API compatibility with v2.x while providing * all the new features and bug fixes of v3.x. * * @example * ```typescript * import Starboard from 'discord-starboard-plus'; * * const starboard = new Starboard(client, { * starboardChannelID: '123456789', * requiredReactions: 3, * starEmoji: '\u2b50' * }); * * // Per-guild configuration * starboard.setGuildConfig('987654321', { * starboardChannelID: '111222333', * requiredReactions: 5 * }); * ``` */ export declare class Starboard extends StarboardManager { constructor(client: Client, options: StarboardOptionsInput); } export default Starboard; //# sourceMappingURL=index.d.ts.map