Sign In

posted

This event is called when your bot's stats are posted to Top.gg

v1.0.0+

Register the event

Enable posted in events in your ForgeTopGG options in index.js:

const { ForgeClient } = require("@tryforge/forgescript")
const { ForgeTopGG } = require("@tryforge/forge.topgg")

const topgg = new ForgeTopGG({
  events: [
    "posted"
  ]
})

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

Handle the event

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

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

Was this page helpful?