Discord.js-Bot-Development | Bot library
kandi X-RAY | Discord.js-Bot-Development Summary
kandi X-RAY | Discord.js-Bot-Development Summary
Discord.js-Bot-Development
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Discord.js-Bot-Development
Discord.js-Bot-Development Key Features
Discord.js-Bot-Development Examples and Code Snippets
Community Discussions
Trending Discussions on Discord.js-Bot-Development
QUESTION
Whenever I type the following command //unmute
, it shows me This member isn't muted!
although the person I specified is truly muted. I've been stuck on this command for a few hours and I can't seem to find the problem. (The mute command is from this , I changed up some things.)
ANSWER
Answered 2018-Sep-23 at 09:40Thanks to @Profit for answering in the comment section of the main question. The problem is solved.
Add .id
to if (!unmute.roles.has(muterole
Here))
.
After that, now it should look like this: if (!unmute.roles.has(muterole.id))
.
.has
is used to check whether an element with the specified key exists.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Discord.js-Bot-Development
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page