UNPKG

@ayanaware/bentocord

Version:

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

15 lines (14 loc) 433 B
export interface ParsedCustomId { prefix?: string; id: string; state: Record<string, unknown>; } /** * custom_id format: primary delimeter is "," * the first group contains the id with optional prefix, remaining * groups contain k/v pair states delimetered by "=" * Example of a full custom_id: prefix:some_id,foo=bar,bizz=bazz * * @param raw */ export declare function ParseCustomId(raw: string): ParsedCustomId;