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.
1010
1111 availableCommands : `
1212Os seguintes comandos estão disponiveis:
13- - !bot
13+ - !about
1414- !coin
1515- !commands
1616- !cron
1717- !everyone
18- - !doc
1918- !links
2019- !lyric
2120- !report
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ async function getMembersList(chat) {
2929 * @returns {string[] } - Serialized phone numbers of all administrators.
3030 */
3131async function getAdmsList ( chat ) {
32+ if ( ! chat . isGroup ) {
33+ throw new Error ( `This chat isn't a group.` ) ;
34+ }
35+
3236 const members = await chat . participants ;
3337 const admsIdList = members . filter ( ( id ) => id . isAdmin ) ;
3438 const admsSerialList = getSerialList ( admsIdList ) ;
You can’t perform that action at this time.
0 commit comments