import { InteractionEditReplyOptions, Message, MessageEditOptions, MessagePayload, User } from 'discord.js'; import { EventEmitter } from 'node:events'; import { BaseConstructorOptions, DeepRequired, MessageType, Position } from './Base'; export interface SnakeConstructorOptions extends BaseConstructorOptions { embed?: { title?: string; color?: string; overTitle?: string; }; snake?: { head?: string; body?: string; tail?: string; skull?: string; }; emojis?: { board?: string; food?: string; up?: string; down?: string; left?: string; right?: string; }; foods?: string[]; stopButton?: string; timeoutTime?: number; } export class Snake extends EventEmitter { options: DeepRequired>; message: MessageType; snake: Position[]; apple: Position; snakeLength: number; gameBoard: string[]; score: number; on(eventName: 'gameOver', listener: (result: { result: 'win' | 'lose'; player: User; score: number }) => void): this; once(...args: Parameters): this; constructor(options: SnakeConstructorOptions); getBoardContent(isSkull: boolean): string; isSnake(pos: Position): Position | false; // I think this should be boolean type in the src updateFoodLoc(): void; sendMessage( content: string | MessagePayload | (IsSlashGame extends true ? InteractionEditReplyOptions : MessageEditOptions) ): Promise; startGame(): Promise; updateGame(msg: Message): Promise; gameOver(msg: Message): Promise; handleButtons(msg: Message): void; }