Skip to content
Snippets Groups Projects
Commit e363fb69 authored by Levatax's avatar Levatax
Browse files

Update mute.js

parent 6fe93f0b
No related branches found
No related tags found
No related merge requests found
......@@ -11,13 +11,14 @@ exports.run = async(bot, message, args, connection) => {
if(!role){
try{
role = await message.guild.createRole({
role = await message.guild.roles.create({data:{
name: "Muted",
color: "#818080",
permissions:[]
permissions:[]}
})
message.guild.channels.forEach(async (channel, id) => {
await channel.overwritePermissions(role, {
message.guild.channels.cache.forEach(async (channel, id) => {
await channel.updateOverwrite(role, {
SEND_MESSAGES: false,
ADD_REACTIONS: false
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment