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.
27 lines • 832 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const structures_1 = require("../structures");
exports.default = new structures_1.NativeFunction({
name: "$startTyping",
version: "1.0.0",
description: "Starts typing in a channel",
unwrap: true,
brackets: true,
args: [
{
name: "channel ID",
description: "The channel to start typing at",
required: true,
rest: false,
type: structures_1.ArgType.Channel,
check: (i) => i.isTextBased(),
},
],
async execute(ctx, [ch]) {
const channel = ch ?? ctx.channel;
if (channel.isTextBased())
await channel.sendTyping().catch(() => null);
return this.success();
},
});
//# sourceMappingURL=startTyping.js.map
;