djs-systems
Version:
The simplest way to build complex Discord bots.
18 lines (17 loc) • 636 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.emitError = void 0;
const SimplyError_1 = require("../error/SimplyError");
/**
* Produce error messages just like Simply DJS
* @param options
* @link `Documentation:` https://simplyd.js.org/docs/misc/emitError
* @example simplydjs.emitError({ function: "messageCreate", tip: "Error in message event" })
*/
async function emitError(options = {
tip: 'Get ya help here -> [https://discord.gg/3JzDV9T5Fn]'
}) {
// Just throws the SimplyError
throw new SimplyError_1.SimplyError(options);
}
exports.emitError = emitError;