Board
Lichess API Docs - Board (opens in a new tab)
Stream incoming events
lichess.board.events()
Stream Board game state
lichess.board.stream({ gameId: string })
Make a Board move
lichess.board.move({ gameId: string, move: string })
Write in the chat
lichess.board.chat({
gameId: string
room?: 'player' | 'spectator'
text?: string
})
Fetch the game chat
lichess.board.chat.fetch({ gameId: string })
Abort a game
lichess.board.abort({ gameId: string })
Resign a game
lichess.board.resign({ gameId: string })
Handle draw offers
lichess.board.draw({ gameId: string, accept: boolean })
Handle takeback offers
lichess.board.takeback({ gameId: string, accept: boolean })
Claim victory of a game
lichess.board.victory({ gameId: string })
Berserk a tournament game
lichess.board.berserk({ gameId: string })