Send Command
Custom response function created for our command handler.
async execute(moi, args, client, { type, send }) {
send(type, moi, { content: "Message Content Here",
embeds: [embeds],
components: [components] }
}const embed = Utility.embed({
author: "Hello", // Author name
authorIcon: "url", // URL for the author icon
title: "Hello", // Embed title
description: "Hello World", // Embed description
fields: [
{
name: "Hello World", // Field name
value: "Hello World", // Field value
inline: true // Whether the field is inline (true) or not (false)
}
],
color: "default", // Embed color: can be "default", "error", "success", or any hex color
timestamp: true, // Show timestamp: true to include, false to exclude
image: "url", // URL for the image in the embed
thumbnail: "url", // URL for the thumbnail image in the embed
footer: "Hello World", // Footer text
footerIcon: "url", // URL for the footer icon
url: "url" // URL the title will link to
});
send(type, moi, { content: "", embeds: [embed] }) // This wil send your embed in command channel.The send function is only used in the command section. If you need a response for an interaction or message create event, use interaction.reply() interaction.channel.send() or message.channel.send() , message.reply().
Last updated
