Say Command - PT2
Simple say command, but anonymous.
const { SlashCommandBuilder } = require("discord.js");
module.exports = {
data: new SlashCommandBuilder()
.setName('say')
.setDescription('Say a message, as the bot')
.addStringOption(option => (
option,
.setName('message')
.setDescription('The message to say')
.setRequired(true)
)),
run: async ({ client, interaction }) => {
const message = interaction.options.getString("message");
},
};About Objects
About Ephemeral
Back to Command
Last updated