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.

22 lines 680 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 NativeFunction_1 = require("../../structures/@internal/NativeFunction"); exports.default = new NativeFunction_1.NativeFunction({ name: "$locale", aliases: [ "$interactionLocale" ], version: "1.4.0", description: "Retrieves the user locale of the interaction", unwrap: true, output: discord_js_1.Locale, execute: async function (ctx) { return this.success(ctx.interaction?.locale); }, }); //# sourceMappingURL=locale.js.map