We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8813093 + 5adf115 commit c7f41d3Copy full SHA for c7f41d3
src/commands/commands.js
@@ -10,11 +10,10 @@ Lista todos os comandos disponíveis.
10
11
availableCommands: `
12
Os seguintes comandos estão disponiveis:
13
-- !bot
+- !about
14
- !coin
15
- !commands
16
- !cron
17
-- !doc
18
- !links
19
- !lyric
20
- !report
src/utils/chattools.js
@@ -29,6 +29,10 @@ async function getMembersList(chat) {
29
* @returns {string[]} - Serialized phone numbers of all administrators.
30
*/
31
async function getAdmsList(chat) {
32
+ if (!chat.isGroup) {
33
+ throw new Error(`This chat isn't a group.`);
34
+ }
35
+
36
const members = await chat.participants;
37
const admsIdList = members.filter((id) => id.isAdmin);
38
const admsSerialList = getSerialList(admsIdList);
0 commit comments