the first commit

This commit is contained in:
adrianvic 2023-09-21 14:51:06 -03:00
commit d5920470cc
18 changed files with 1887 additions and 0 deletions

View file

@ -0,0 +1,22 @@
const { SlashCommandBuilder, ChannelType } = require(`discord.js`)
const { EmbedBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName(`t`)
.setDescription(`Indicates a thought in roleplay`)
.addStringOption(option =>
option.setName('what')
.setRequired(true)),
async execute(interaction) {
const desc = interaction.options.getString(`what`)
const member = interaction.guild.members.cache.get(interaction.user.id);
const nickname = member.nickname;
const responseEmbed = new EmbedBuilder()
.setTitle(`${nickname} is thinking:`)
.setDescription(desc)
interaction.reply({ embeds: [responseEmbed] });
},
}