File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,11 @@ Lista todos os comandos disponíveis.
10
10
11
11
availableCommands : `
12
12
Os seguintes comandos estão disponiveis:
13
- - !bot
13
+ - !about
14
14
- !coin
15
15
- !commands
16
16
- !cron
17
17
- !everyone
18
- - !doc
19
18
- !links
20
19
- !lyric
21
20
- !report
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ async function getMembersList(chat) {
29
29
* @returns {string[] } - Serialized phone numbers of all administrators.
30
30
*/
31
31
async function getAdmsList ( chat ) {
32
+ if ( ! chat . isGroup ) {
33
+ throw new Error ( `This chat isn't a group.` ) ;
34
+ }
35
+
32
36
const members = await chat . participants ;
33
37
const admsIdList = members . filter ( ( id ) => id . isAdmin ) ;
34
38
const admsSerialList = getSerialList ( admsIdList ) ;
You can’t perform that action at this time.
0 commit comments