Skip to main content

Documentation Index

Fetch the complete documentation index at: https://bym.lonestill.uk/llms.txt

Use this file to discover all available pages before exploring further.

Методы

await api.Clipboard.read()       // → string
await api.Clipboard.write(text)  // → void

Пример

BYM.register({ id: 'copy-track' }, (api) => ({
  start() {
    api.Hotkeys.register('Ctrl+Shift+C', async () => {
      const track = api.Player.getTrack();
      if (!track) return;
      await api.Clipboard.write(`${track.artist}${track.title}`);
      api.UI.toast('Скопировано', 1000);
    });
  },
  stop() {},
}));