This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Shadow = require("../Utilis/events"); | |
const {MessageType, GroupSettingChange} = require('@adiwajshing/baileys') | |
const got = require("got") | |
const axios = require('axios') | |
async function checkImAdmin(message, user = message.client.user.jid) { | |
var grup = await message.client.groupMetadata(message.jid); | |
var spark = grup['participants'].map((member) => { | |
if (member.jid.split("@")[0] == user.split("@")[0] && member.isAdmin) return true; else; return false; |