const Discord = require('discord.js')
exports.run = async(client, message, args) => {
let oyuncular = "https://discord.gg/QatNdFVDvc"
if(!args[0]) {
const embed = new Discord.MessageEmbed()
.setAuthor('Yardım', client.user.avatarURL())
.setDescription('Oyuncular Şehri')
.addField('Komutlar:',
`[g!yardım Genel](${oyuncular})
[g!yardım Eğlence](${oyuncular})
[g!yardım Kullanıcı](${oyuncular})
[g!yardım Moderasyon](${oyuncular})
[g!yardım Moderasyon2](${oyuncular})
[g!yardım Yapılandırma](${oyuncular})
[g!yardım Sunucu](${oyuncular})
[g!yardım Resim](${oyuncular})
[g!yardım nsfw](${oyuncular})`)
.addField('» Oyuncular Şehri',
`Türk Oyuncu Topluluğu [Oyuncular Şehri](https://oyuncularsehri.com)`)
.setImage('https://cdn.discordapp.com/attachments/702883614756700212/722109027794026577/mlogo_1.png')
.setThumbnail(client.user.avatarURL())
.setColor("BLUE")
.setFooter('Bu komutu kullanan kullanıcı ' + message.author.tag, message.author.avatarURL())
message.channel.send(embed)
}
if(args[0] === 'genel' | args[0] === 'eğlence' | args[0] === 'kullanıcı' | args[0] === 'moderasyon' | args[0] === 'moderasyon2' | args[0] === 'yapılandırma' | args[0] === 'sunucu' | args[0] === 'resim' | args[0] === 'nsfw') {
const embed = new Discord.MessageEmbed()
.setAuthor(args[0], client.user.avatarURL())
.setDescription(client.commands.filter(c=>c.conf.kategori === args[0]).map(kmt=>kmt.help.name).join('\:white_small_square: - g!\n ') + '» Linkler\n[Davet Et](https://discord.com) | [Destek Sunucusu](' + codare + ') | [Oy Ver](https://discord.com) | [Web Sitesi](https://discord.com)')
.setThumbnail(client.user.avatarURL())
.setColor("BLUE")
.setFooter('Bu komutu kullanan kullanıcı ' + message.author.tag, message.author.avatarURL())
message.channel.send(embed)
} else {
message.channel.send('Böyle bir kategori yok')
}
}
exports.conf = {
aliases: []
}
exports.help = {
name: "yardım"
}
TeşekkürlerMerhaba @Volkan123, bu ihtiyacını giderecektir.
JavaScript:const Discord = require('discord.js') exports.run = async(client, message, args) => { let oyuncular = "https://discord.gg/QatNdFVDvc" if(!args[0]) { const embed = new Discord.MessageEmbed() .setAuthor('Yardım', client.user.avatarURL()) .setDescription('Oyuncular Şehri') .addField('Komutlar:', `[g!yardım Genel](${oyuncular}) [g!yardım Eğlence](${oyuncular}) [g!yardım Kullanıcı](${oyuncular}) [g!yardım Moderasyon](${oyuncular}) [g!yardım Moderasyon2](${oyuncular}) [g!yardım Yapılandırma](${oyuncular}) [g!yardım Sunucu](${oyuncular}) [g!yardım Resim](${oyuncular}) [g!yardım nsfw](${oyuncular})`) .addField('» Oyuncular Şehri', `Türk Oyuncu Topluluğu [Oyuncular Şehri](https://oyuncularsehri.com)`) .setImage('https://cdn.discordapp.com/attachments/702883614756700212/722109027794026577/mlogo_1.png') .setThumbnail(client.user.avatarURL()) .setColor("BLUE") .setFooter('Bu komutu kullanan kullanıcı ' + message.author.tag, message.author.avatarURL()) message.channel.send(embed) } if(args[0] === 'genel' | args[0] === 'eğlence' | args[0] === 'kullanıcı' | args[0] === 'moderasyon' | args[0] === 'moderasyon2' | args[0] === 'yapılandırma' | args[0] === 'sunucu' | args[0] === 'resim' | args[0] === 'nsfw') { const embed = new Discord.MessageEmbed() .setAuthor(args[0], client.user.avatarURL()) .setDescription(client.commands.filter(c=>c.conf.kategori === args[0]).map(kmt=>kmt.help.name).join('\:white_small_square: - g!\n ') + '» Linkler\n[Davet Et](https://discord.com) | [Destek Sunucusu](' + codare + ') | [Oy Ver](https://discord.com) | [Web Sitesi](https://discord.com)') .setThumbnail(client.user.avatarURL()) .setColor("BLUE") .setFooter('Bu komutu kullanan kullanıcı ' + message.author.tag, message.author.avatarURL()) message.channel.send(embed) } else { message.channel.send('Böyle bir kategori yok') } } exports.conf = { aliases: [] } exports.help = { name: "yardım" }