Sign In

linkedLyricsLine

Triggered when a new lyrics line is received

v2.0.0+

Register the event

Enable linkedLyricsLine in events in your ForgeLinked options in index.js:

const { ForgeClient } = require("@tryforge/forgescript")
const { ForgeLinked } = require("@tryforge/forge.linked")

const linked = new ForgeLinked({
  events: [
    "linkedLyricsLine"
  ]
})

const client = new ForgeClient({
  events: [
    "clientReady"
  ],
  intents: [
    "Guilds"
  ],
  extensions: [
    linked
  ]
})

Handle the event

Listen and react when linkedLyricsLine is triggered using an inline command or an external handler file:

linked.commands.add({
  type: "linkedLyricsLine",
  code: `$log[linkedLyricsLine event was triggered!]`
})

Was this page helpful?