{"size": 1297, "ext": "js", "max_stars_repo_path": "commands/grole.js", "max_stars_repo_name": "petapeta1/OtakuBot", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "commands/grole.js", "max_issues_repo_name": "petapeta1/OtakuBot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "commands/grole.js", "max_forks_repo_name": "petapeta1/OtakuBot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.4772727273, "max_line_length": 77, "alphanum_fraction": 0.6499614495}
const google = require("google");
const Discord = require(`discord.js`);

exports.run = (client, message) => {
  let args = message.content
    .split(" ")
    .slice(1)
    .join(" ");
  let role =
    message.guild.roles.find("name", args) || message.guild.roles.get(args);
  if (!args) return message.reply("اكتب اسم الرتبة");
  if (!role) return message.reply("هذه الرتبة غير موجودة");
  let iQp = new Discord.RichEmbed()
    .setAuthor(message.author.tag, message.author.avatarURL)
    .setTitle(message.guild.name)
    .setThumbnail(message.guild.iconURL)
    .addField("- اسم الرتبة", role.name, true)
    .addField("- اي دي الرتبة", role.id, true)
    .addField("- تم انشاء الرتبة", role.createdAt.toLocaleString(), true)
    .addField("- لون الرتبة", role.hexColor, true)
    .addField("- عدد الاعضاء الذي لديهم نفس الرتبة", role.members.size, true)
    .addField(
      "- مركز الرتبة بين كل الرتب",
      role.position - message.guild.roles.size,
      true
    )
    .addField("- خصائص الرتبة", role.permissions, true)
    .setFooter(message.author.tag, message.author.avatarURL);

  message.channel.send(iQp);
};
exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: [],
  permLevel: 0
};

exports.help = {
  name: "-grole",
  description: " ",
  usage: "-grole [role]"
};
