I've tried to find a solution online for this but I couldn't find any, so I'm asking it here, and I know there is probably something really simple that I'm doing wrong. Whenever I am trying to edit a role with discord.js using role.edit() it always tells me that role.edit is not defined (yes I defined "role")
role.edit({
color: '#8585ff'
})
var role = message.guild.roles.cache.find(role => role.name === "Lamo");
await role.edit({
color: '#8585ff'
})
This should work fine, read the docs please
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.