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,
});
},
};
Rời mạng
Quầy trưng bày phá đảo thế giới ảo
45
Trò chơi phá đảo
4.132
Thành tựu trong trò chơi phá đảo
Hoạt động gần đây
3,3 giờ được ghi nhận
chơi lần cuối lúc 1 Thg06
2.743 giờ được ghi nhận
chơi lần cuối lúc 1 Thg06
54 giờ được ghi nhận
chơi lần cuối lúc 8 Thg03
6007 дней без секса 8 Thg06, 2023 @ 10:29pm 
+REP
76561199167784704 Cấm trao đổi 24 Thg02, 2023 @ 3:16am 
yo do u want to sell or exchange? i have a good offer
Layla 23 Thg02, 2023 @ 9:44am 
added for trade
cr0ll 16 Thg02, 2023 @ 8:10am 
neyropopa
У ОЛЕГА ОТЕЦ СДОХ 12 Thg01, 2023 @ 4:21am 
я балбес ♥♥♥♥♥♥
w3rio WIN.SKIN 3 Thg01, 2023 @ 1:00pm 
cwelu jebany