Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Isse Kun
Emektar Üye
Katılım
15 May 2017
Mesajlar
4,801
Çözümler
5
Tepki puanı
2,106
Ödüller
15
Sosyal
9 HİZMET YILI
Molly Malone's sotumuzu sunucularınıza eklemek için
Bağlantıları görmek için lütfen Giriş Yap

Botumuzun destek sunucusuna gelmek ve yardım almak için
Bağlantıları görmek için lütfen Giriş Yap

JavaScript:
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');

var prefix = ayarlar.prefix;

exports.run = async (bot, message, args) => {
    if (!message.member.hasPermission("MANAGE_ROLES")) return message.channel.sendEmbed(new Discord.RichEmbed().setDescription('Bu komutu kullanmak için **Rolleri Yönet** yetkisine sahip olmalısın.').setColor(10038562));
    let rMember = message.guild.member(message.mentions.users.first()) || message.guild.members.get(args[0]);
    if (!rMember) return message.channel.sendEmbed(new Discord.RichEmbed().setDescription(`Lütfen bir kullanıcı ismi gir.\nÖrnek: ` + ayarlar.prefix + `rolver **@İsim @Yetki**`).setColor(10038562).setAuthor(`${message.author.username} tarafından istendi.`, message.author.avatarURL).setTimestamp());
    let role = message.mentions.roles.first()

    if (!role) return message.channel.sendEmbed(new Discord.RichEmbed().setDescription(`Lütfen bir rol ismi gir.\nÖrnek: ` + ayarlar.prefix + `rolver **@İsim @Yetki**`).setColor(10038562).setAuthor(`${message.author.username} tarafından istendi.`, message.author.avatarURL).setTimestamp());
    let aRole = message.mentions.roles.first()
    if (!aRole) return message.channel.sendEmbed(new Discord.RichEmbed().setDescription(`Bu rolü bulamıyorum.\nÖrnek: ` + ayarlar.prefix + `rolver **@İsim @Yetki**`).setColor(10038562).setAuthor(`${message.author.username} tarafından istendi.`, message.author.avatarURL).setTimestamp());

    if (rMember.roles.has(aRole.id)) return message.channel.sendEmbed(new Discord.RichEmbed().setDescription('Bu kullanıcı zaten bu rolde.').setColor(10038562));
    await (rMember.addRole(aRole.id))
    message.channel.sendEmbed(new Discord.RichEmbed().setDescription(`${rMember} isimli üyeye \`${role.name}\` isimli yetki başarıyla verildi! :white_check_mark:`).setColor('RANDOM'));

};

exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: ['rolver', 'rolekle'],
  permLevel: "0"
};

exports.help = {
  name: "rolver",
  description: "Kişilere Rol Yetkisi Verir",
  usage: "rolver <mesaj>"
};
 
Efsane Üye
Katılım
28 Tem 2018
Mesajlar
10,240
Çözümler
17
Tepki puanı
1,728
7 HİZMET YILI
Sen Bu Bot İşlerine Gir Baya Anlıyon Aga
 
Isse Kun
Emektar Üye
Katılım
15 May 2017
Mesajlar
4,801
Çözümler
5
Tepki puanı
2,106
Ödüller
15
Sosyal
9 HİZMET YILI
Efsane Üye
Katılım
28 Tem 2018
Mesajlar
10,240
Çözümler
17
Tepki puanı
1,728
7 HİZMET YILI
Reis Biliyorum Seni Klan Filan Olur Paralı İsterler Onlar İçin Özel Kodlar Onların İstedikleri Anladın
 
JavaScript
Onaylı Üye
Katılım
13 Tem 2018
Mesajlar
58
Tepki puanı
11
Yaş
22
Sosyal
7 HİZMET YILI
Misss gibi komut eline koluna sağlık.
 
Üye
Katılım
25 Tem 2019
Mesajlar
1
Tepki puanı
0
Ödüller
2
Yaş
26
6 HİZMET YILI
Hocam komut nasıl çalıştırılıyor acaba pek bilgim yok yeniyim de bu işlerde
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...