All checks were successful
Build and Push Docker Image / build (push) Successful in 1m27s
19 lines
693 B
JavaScript
19 lines
693 B
JavaScript
const { SlashCommandBuilder } = require('discord.js');
|
|
|
|
module.exports = {
|
|
data: new SlashCommandBuilder()
|
|
.setName('say')
|
|
.setDescription('speak on behalf of cockinator')
|
|
.addStringOption(option =>
|
|
option.setName('message')
|
|
.setDescription('The message to say')
|
|
.setRequired(true)
|
|
),
|
|
async execute(interaction) {
|
|
if (!config.parentsAndOrGuardians.includes(interaction.member.id)) {
|
|
return interaction.reply({ content: 'noe :(', ephemeral: true });
|
|
}
|
|
const message = interaction.options.getString('message');
|
|
await interaction.reply({ content: message });
|
|
},
|
|
}; |