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,
});
},
};
În prezent offline
Afișierul perfecționistului
45
Jocuri perfecte
4.142
Realizări în jocuri perfecte
Activitate recentă
8,9 ore înregistrate
ultima dată jucat pe 16 aug.
59 ore înregistrate
ultima dată jucat pe 16 aug.
3.778 ore înregistrate
ultima dată jucat pe 22 mai
0.55 avg 8 iun. 2023 la 22:29 
+REP
76561199167784704 Schimb banat 24 febr. 2023 la 3:16 
yo do u want to sell or exchange? i have a good offer
Vikaaaa 23 febr. 2023 la 9:44 
added for trade
croll 16 febr. 2023 la 8:10 
neyropopa
mdboloto 12 ian. 2023 la 4:21 
я балбес ♥♥♥
w3rio 3 ian. 2023 la 13:00 
cwelu jebany