Fogel
canvas.replace(12,33)   Azerbaijan
 
 
help command discord.js

const fs = require('fs');
const { SlashCommandBuilder } = require('@discordjs/builders');
const { languages } = require('../assets/descriptions');
const { getChat } = require('../database');
const util = require('util');

const readdir = util.promisify(fs.readdir);

const commandFiles = readdir('./commands').then(files => files.filter(file => file.endsWith('.js')));

module.exports = {
data: new SlashCommandBuilder()
.setName('help')
.setDescription(languages.help.main['en-US'])
.setDescriptionLocalizations(languages.help.main),
async execute(interaction) {
let chat = await getChat(interaction.guildId);
let lang = chat.lang === 'en' ? 'en-US' : chat.lang;
let commands = await commandFiles;
let str = '';

for (const file of commands) {
const command = require(`./${file}`);
let name = command.data.name;
let description = command.data.description_localizations[lang];
str += `**/${name}** - *${description}*\n`;
}

return await interaction.reply({
content: str,
ephemeral: true,
});
},
};
Zurzeit offline
Kürzliche Aktivitäten
8 Std. insgesamt
zuletzt gespielt am 27. Dez. 2024
Errungenschaften   19 von 93
3.778 Std. insgesamt
zuletzt gespielt am 20. Sep. 2024
28 Std. insgesamt
zuletzt gespielt am 20. Sep. 2024
Errungenschaften   18 von 178
режу шлюхам горло 8. Juni 2023 um 22:29 
+REP
76561199167784704 Vom Handel ausgeschlossen 24. Feb. 2023 um 3:16 
yo do u want to sell or exchange? i have a good offer
Vikaaaa 23. Feb. 2023 um 9:44 
added for trade
cr0ll 16. Feb. 2023 um 8:10 
neyropopa
plplzc 12. Jan. 2023 um 4:21 
я балбес ♥♥♥
w3r1o 3. Jan. 2023 um 13:00 
cwelu jebany