import { RCEEvent, type TeamInviteEventPayload } from "rce.js";
// ...
rce.events.on(RCEEvent.TeamInvite, (payload: TeamInviteEventPayload) => {
console.log(`${payload.owner} has invited ${payload.ign} on ${payload.server.identifier} with ID: ${payload.id}`);
});
const { RCEEvent } = require("rce.js");
// ...
rce.events.on(RCEEvent.TeamInvite, (payload) => {
console.log(`${payload.owner} has invited ${payload.ign} on ${payload.server.identifier} with ID: ${payload.id}`);
});