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.
40 lines • 1.23 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const structures_1 = require("../structures");
exports.default = new structures_1.NativeFunction({
name: "$reply",
version: "1.0.0",
description: "Marks the response as a reply",
unwrap: true,
brackets: false,
args: [
{
name: "channel ID",
description: "The channel the message is at",
rest: false,
required: true,
type: structures_1.ArgType.Channel,
},
{
name: "message ID",
description: "The message to reply to",
rest: false,
required: true,
type: structures_1.ArgType.Message,
pointer: 0,
},
{
name: "disable ping",
description: "Whether to disable ping of reply",
rest: false,
type: structures_1.ArgType.Boolean
}
],
execute(ctx, [, message, disable]) {
ctx.container.reference = (message ?? ctx.message)?.id;
if (disable !== null)
ctx.container.allowedMentions.repliedUser = !disable;
return this.success();
},
});
//# sourceMappingURL=reply.js.map