UNPKG

@tryforge/forgescript

Version:

ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.

25 lines 820 B
"use strict"; /* * SPDX-License-Identifier: GPL-3.0-or-later * Copyright © 2025 BotForge */ Object.defineProperty(exports, "__esModule", { value: true }); const discord_js_1 = require("discord.js"); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$botTeamID", version: "2.4.0", description: "Returns the client's team id", aliases: [ "$clientTeamID" ], unwrap: false, output: structures_1.ArgType.String, async execute(ctx) { if (!ctx.client.application.owner) await ctx.client.application.fetch().catch(ctx.noop); const owner = ctx.client.application.owner; return this.success(owner instanceof discord_js_1.Team ? owner.id : null); }, }); //# sourceMappingURL=botTeamID.js.map