- kimsesizbirisi3169_
- Katılım
- 24 Ara 2022
- Mesajlar
- 184
- Tepkime puanı
- 70
- Şehir
- Trabzon
Merhaba Arkadaşlar, Bu Konuda da Size Discord V14 Yavaş Mod Komutunu Göstereceğim. Umarm İşinize Yarar<3 ✰ iRhodes17#2137
JavaScript:
const Discord = require('discord.js')
const token = "BOT TOKENİ YAZ"
exports.run = async(client, message, args) => {
if (message.channel.type !== Discord.ChannelType.GuildText) return;
const limit = args[0] ? args[0] : 0;
if(!limit) return message.reply(`Doğru kullanım: \`!yavaşmod [0/21600]\``)
if(isNaN(limit)) return message.reply(`Lütfen sayı belirt.\nDoğru kullanım: \`!yavaşmod 120\``)
if (limit > 21600) return message.reply("Süre limiti maksimum **6** saat olabilir.")
message.reply(`Yazma süre limiti **${limit}** saniye olarak ayarlanmıştır.`)
var request = require('request');
request({
url: `https://discordapp.com/api/v9/channels/${message.channel.id}`,
method: "PATCH",
json: {
rate_limit_per_user: limit
},
headers: {
"Authorization": `Bot ${token}`
},
})
}
exports.conf = {
aliases: ["slow-mode", "slowmode", "yavas-mod", 'yavasmod', 'yavaşmod']
}
exports.help = {
name: 'yavaş-mod'
}