Learn to Code via Tutorials on Repl.it!

← Back to all posts
How to make a mute command
Corasite (2)

Mute command

At fist, mute commands can be hard. But here is a basic mute command you can make to help moderate your Discord server.

Now I'm not going to tell you the full code but here is some tips that can help you:

Tip one: user.roles.set(mute ID here)

Tip Two: var user=message.mentions.members.first() ? message.mentions.members.first() : message.guild.members.cache.get(args[0])
if(!user) return message.reply("Please provide a valid user.")

That's it for today. I hope I helped you!

Corasite (2)

Hello everyone, I hope I helped you with your coding!