Skip to content
← Back to Community
How to make a mute command
Profile icon
h
has Hacker Plan
Corasite

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!

Voters
Profile icon
DigitColt1
Profile icon
KhoiDuong9
Profile icon
DavidMencia
Profile icon
AkiX001
Profile icon
KidCuddi
Profile icon
Sain20213
Profile icon
btfuss
Profile icon
Corasite
Comments
hotnewtop
Profile icon
Corasite

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

Profile icon
SreerupDas

lalwlwlwlwlwl