This commit is contained in:
2025-02-16 00:28:34 +01:00
commit 7dcbcc51d6
4 changed files with 1097 additions and 0 deletions

27
commands/ötlet.js Normal file
View File

@@ -0,0 +1,27 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
const { MessageEmbed } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('ötlet')
.setDescription('Adj egy ötletet!')
.addStringOption(option => option.setName('ötlet').setDescription('Add meg az ötletedet!').setRequired(true)),
async execute(interaction) {
const channel = interaction.guild.channels.cache.get('1317796717684326453');
if (!channel) {
return interaction.reply('Hiba történt! Fordulj tulajhoz!');
}
const text = interaction.options.getString('ötlet');
const authorTag = interaction.user.username;
const embed = new MessageEmbed()
.setTitle(`${authorTag} ötletelt egy kicsit, ezt írta le nekünk: `)
.setDescription(`\n${text}`)
.setColor('#00B7FF');
const sentMessage = await channel.send({ embeds: [embed] });
await sentMessage.react('1116088110091088074');
await sentMessage.react('1116088222016098314');
await interaction.reply({ content: '<a:done:1116050762158575656> Kész!', ephemeral: true });
},
};