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,
});
},
};
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,
});
},
};
Sin conexión
Coleccionista de juegos
Expositor de completista
45
Juegos completados
4.142
Logros en juegos completados
Actividad reciente
8,9 h registradas
última sesión: 16 AGO
59 h registradas
última sesión: 16 AGO
Avance en los logros   0 de 249
3.778 h registradas
última sesión: 22 MAY
Comentarios
0.55 avg 8 JUN 2023 a las 22:29 
+REP
76561199167784704 Intercambios bloqueados 24 FEB 2023 a las 3:16 
yo do u want to sell or exchange? i have a good offer
Vikaaaa 23 FEB 2023 a las 9:44 
added for trade
croll 16 FEB 2023 a las 8:10 
neyropopa
mdboloto 12 ENE 2023 a las 4:21 
я балбес ♥♥♥
w3rio 3 ENE 2023 a las 13:00 
cwelu jebany