Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

mute

a guest Oct 12th, 2018 76 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. client.on('message', message => {
  2.  
  3.     if(message.content === prefix + "f!mutechannel") {
  4.                         if(!message.channel.guild) return message.reply('** This command only for servers**');
  5.  
  6. if(!message.member.hasPermission('MANAGE_MESSAGES')) return message.reply(' **__ليس لديك صلاحيات__**');
  7.            message.channel.overwritePermissions(message.guild.id, {
  8.          SEND_MESSAGES: false
  9.  
  10.            }).then(() => {
  11.                message.reply("**__تم تقفيل الشات__ :white_check_mark: **")
  12.            });
  13.              }
  14. //FIRE BOT
  15.  if(message.content === prefix + "f!unmutechannel") {
  16.                      if(!message.channel.guild) return message.reply('** This command only for servers**');
  17.  
  18. if(!message.member.hasPermission('MANAGE_MESSAGES')) return message.reply('**__ليس لديك صلاحيات__**');
  19.            message.channel.overwritePermissions(message.guild.id, {
  20.          SEND_MESSAGES: true
  21.  
  22.            }).then(() => {
  23.                message.reply("**__تم فتح الشات__:white_check_mark:**")
  24.            });
  25.              }
  26.              
  27.      
  28.    
  29. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top