- baris#0019
- Katılım
- 3 Ağu 2021
- Mesajlar
- 15
- Tepkime puanı
- 1
Merhaba, bu komutta sunucudaki sadece sesli kanallarda kaç kişi bulunduğunu görebilirsiniz, dilerseniz detaylandırarak say komudunada çevrilebilir.
JavaScript:
const Discord = require("discord.js")
module.exports.run = async (client, message, args) => {
if(message.author.bot || message.channel.type === "dm") return;
const voiceChannels = message.guild.channels.cache.filter(c => c.type === 'voice');
let count = 0;
for (const [id, voiceChannel] of voiceChannels) count += voiceChannel.members.cache.size;
const emoji = client.emojis.cache.find(emoji => emoji.name === "olumlu");
const barisjs = new Discord.MessageEmbed()
.setColor("BLACK")
.setDescription(`Ses kanallarında toplam **${count}** kullanıcı bulunmaktadır.`)
.setFooter(`Created By Baris.js`)
message.channel.send(barisjs)
message.react(emoji)
}
exports.conf = {
enabled: true,
guildOnly: false,
aliases: ["seslisay"],
permLevel: 0
};
exports.help = {
name: 'sesli-say',
description: 'sesli sayar',
usage: 'say'
};