UNPKG

bdjs

Version:

A potent package for creating Discord bots.

13 lines (12 loc) 541 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Function_1 = require("../structures/Function"); const discord_js_1 = require("discord.js"); exports.default = new Function_1.BaseFunction({ description: 'Check whether interaction is replied or not.', code: async function (d) { if (!(d.ctx?.raw instanceof discord_js_1.BaseInteraction)) throw new d.error(d, 'disallowed', d.function?.name, 'interactions'); return d.ctx?.raw.isRepliable() && d.ctx?.raw.replied; } });