Discord Self Role Command

How do i make a self role command so when i do (prefix)selfrole @role it gives me that role