botmaster | The chatbot framework for your serious projects | Bot library
kandi X-RAY | botmaster Summary
kandi X-RAY | botmaster Summary
The chatbot framework for your serious projects
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 botmaster
botmaster Key Features
botmaster Examples and Code Snippets
Community Discussions
Trending Discussions on botmaster
QUESTION
I am trying to code a discord.js bot. Right now i am working on a tempmute system but can't seem to find out a way of removing a role from a user with only
their id to work with! I have searched around the interwebs but i couldn't seem to find anything that helped me.
ex. Discord.js docs and An idiots guide
My code:
...ANSWER
Answered 2018-Mar-13 at 20:35client.fetchUser(id)
returns a promise, and from that promise you'll get a user.
You can't remove roles from users. You need a GuildMember to remove a role.
Instead of: var unmute = client.fetchUser(Id)
, you'll need something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install botmaster
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