Skip to content

Instantly share code, notes, and snippets.

@xtremexe
Created May 27, 2023 15:05
Show Gist options
  • Save xtremexe/214aa4a090fb4cc4c4fc645236974538 to your computer and use it in GitHub Desktop.
Save xtremexe/214aa4a090fb4cc4c4fc645236974538 to your computer and use it in GitHub Desktop.
const {Function} = require("../lib/");
Function({pattern: 'ujid ?(.*)', fromMe: true, onlyGroup: true,desc: 'get all members jids in group', type: 'whatsapp'}, async (m, text, client) => {
let u = await client.groupMetadata(m.jid)
let users = u.participants.map(e=>e.id)
let msg = `*ALL MEMBERS JIDS OF* : ${u.subject}\n`
m.reply(msg+"\n"+users)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment