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,
});
},
};
現在オフラインです。
完了主義者ショーケース
45
全実績解除
4,132
全実績解除ゲームでの実績
最近のアクティビティ
記録時間: 3.3 時間
6月1日 に最後にプレイ
記録時間: 2,743 時間
6月1日 に最後にプレイ
記録時間: 54 時間
3月8日 に最後にプレイ
6007 дней без секса 2023年6月8日 22時29分 
+REP
76561199167784704 トレード禁止中 2023年2月24日 3時16分 
yo do u want to sell or exchange? i have a good offer
Layla 2023年2月23日 9時44分 
added for trade
cr0ll 2023年2月16日 8時10分 
neyropopa
У ОЛЕГА ОТЕЦ СДОХ 2023年1月12日 4時21分 
я балбес ♥♥♥♥♥♥
w3rio WIN.SKIN 2023年1月3日 13時00分 
cwelu jebany