@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.
19 lines • 575 B
JavaScript
;
/*
* SPDX-License-Identifier: GPL-3.0-or-later
* Copyright © 2025 BotForge
*/
Object.defineProperty(exports, "__esModule", { value: true });
const NativeFunction_1 = require("../../structures/@internal/NativeFunction");
exports.default = new NativeFunction_1.NativeFunction({
name: "$authorID",
version: "1.0.0",
aliases: ["$userID"],
description: "Retrieves a user's id",
unwrap: false,
output: NativeFunction_1.ArgType.User,
execute(ctx) {
return this.success(ctx.user?.id);
},
});
//# sourceMappingURL=authorID.js.map