@getsolara/solara.js
Version:
A lightweight and modular Discord bot framework built on discord.js v14, with truly optional feature packages.
14 lines • 462 B
JavaScript
const { hyperlink } = require('discord.js');
module.exports = {
name: "$hyperlink",
description: "Creates a Discord hyperlink. Args: text;url",
takesBrackets: true,
execute: async (context, args) => {
if (args.length < 2) return "[Error: $hyperlink requires text and url]";
try {
return hyperlink(args[0], args[1]);
} catch (e) {
return "[Error creating hyperlink]";
}
}
};