ALB Studio

Discord logging

Send messages and embeds to named Discord webhooks from any plugin.

Docs updated · What changed

On this page

Name your webhooks in ALBCore's config.yml, then send from any plugin. Requests run in the background, and mentions are always disabled so logged player text can never ping anyone.

Set up a webhookLink to this section

plugins/ALBCore/config.yml
discord:
  webhooks:
    staff:
      url: "https://discord.com/api/webhooks/..."
      username: "Server logs"

/albcore reload applies webhook changes without a restart.

Send messagesLink to this section

Kotlin
DiscordLogger.on("staff").warning("Big trade", "${a.name} gave ${b.name} 64 diamonds")
DiscordLogger.on("staff").embed {
    title = "Boss killed"
    color = DiscordColor.PURPLE
    field("Floor", "E", inline = true)
    timestamp = true
}

Type a class, method, config key or topic. Use the arrow keys and Enter to open a result.