text: const mentionedRoles = d => {
    
    let code = d.command.code
    
    const r = code.split("$mentionedRoles[").length - 1
    
    const inside = code.split("$mentionedRoles[")[r].split("]")[0]
    
    const [ mention ] = inside.split(";")
    
    if (isNaN(mention)) return d.error(`❌ Invalid mention number in \`$mentionedRoles[${inside}]\``)
    
    const role = d.message.mentions.roles.array()[Number(mention) - 1]
    
    return {
      code: code.replaceLast(`$mentionedRoles[${inside}]`, role ? role.id : "") 
    } 
  }
  
  module.exports = mentionedRoles 