how do I get the names of the roles from a map that give only true or false? [discord]

前端 未结 0 1190
滥情空心
滥情空心 2021-02-02 04:22

this string only returns true or false, how do I get the names of the roles?

console.log(message.guild.roles.cache.map(r => r.name.startsWith(\'pro\')).join(\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题