Discord.js: Make role command

Created on 5 Jul 2016  路  5Comments  路  Source: discordjs/discord.js

How to make a command to make a role like "!role create "name of role" #000000" (!role create test #000000) and to delete roles using !role delete "name of role", i am having problems, and if someone can help, how to create a variable who can be changed typing because i am looking to make some custom commands to my bot

Most helpful comment

Nice meme 馃憣

All 5 comments

Take a look at client.createRole and client.deleteRole.

To find a role by its name you can use the Cache helper function get
For example server.roles.get('name', 'ROLENAME')

rtfd

Thanks

that doesn't exist???

Look at the date on this issue.

Nice meme 馃憣

Was this page helpful?
0 / 5 - 0 ratings