Created
May 27, 2023 15:05
-
-
Save xtremexe/214aa4a090fb4cc4c4fc645236974538 to your computer and use it in GitHub Desktop.
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 {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