@getsolara/solara.js
Version:
A lightweight and modular Discord bot framework built on discord.js v14, with truly optional feature packages.
14 lines • 541 B
JavaScript
module.exports = {
name: "$botTyping",
description: "Makes the bot appear as typing in the current channel. Duration is temporary.",
takesBrackets: false,
execute: async (context, args) => {
if (context.channel) {
try { await context.channel.sendTyping(); }
catch (e) { console.warn(`$botTyping: Failed to send typing indicator: ${e.message}`); }
} else {
return "[Error: Cannot determine channel context for $botTyping]";
}
return "";
}
};