let handler = async (m, { conn,usedPrefix, command, text }) => {
if(isNaN(text) && !text.match(/@/g)){
	
}else if(isNaN(text)) {
var number = text.split`@`[1]
}else if(!isNaN(text)) {
var number = text
}
if(!text && !m.quoted) return conn.reply(m.chat, `âœ³ï¸� Using the command \n *${usedPrefix + command}* @tag`, m)
if(number.length > 13 || (number.length < 11 && number.length > 0)) return conn.reply(m.chat, `âœ³ï¸� Number incorrect`, m)
  
try {
if(text) {
var user = number + '@s.whatsapp.net'
} else if(m.quoted.sender) {
var user = m.quoted.sender
} else if(m.mentionedJid) {
var user = number + '@s.whatsapp.net'
} 
} catch (e) {
} finally {
conn.groupParticipantsUpdate(m.chat, [user], 'demote')
m.reply(`âœ… ğ��”ğ��¬ğ���ğ��« ğ��¡ğ��šğ��¬ ğ��›ğ���ğ���ğ��§ ğ���ğ���ğ��¦ğ��¨ğ��­ğ���ğ���`)
}

}
handler.help = ['demote (@tag)']
handler.tags = ['group']
handler.command = ['demote', 'degradar', 'd'] 
handler.group = true
handler.admin = true
handler.botAdmin = true
handler.fail = null

export default handler
