Skip to content

Instantly share code, notes, and snippets.

@canuxBro
canuxBro / shadow_pack.js
Last active December 24, 2021 03:25 — forked from spark-shadow/shadow_pack.js
Group subject & desc chanager
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;