You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awaitreply.textReply(`This user has already been approved.`);
40
+
returnawaitreply.textReply(`This user has already been approved.`);
41
41
}else{
42
-
awaitreply.textReply(
42
+
returnawaitreply.textReply(
43
43
`The user with ID ${userId} has been successfully approved to join the group ${groupId}. You can view the list of approved users using /approvedlist, and manage disapproved users with /disapproved.`
awaitreply.textReply('The pinned message has been unpinned.');
373
+
returnawaitreply.textReply('The pinned message has been unpinned.');
375
374
}
376
375
/** Purge Command */
377
376
@RestrictToGroupChats()
@@ -417,7 +416,7 @@ Group Type: ${group?.type || 'Unknown'}
417
416
};
418
417
419
418
awaitdeleteMessagesInBatches(messagesToDelete);
420
-
awaitreply.send('Deleting done.');
419
+
returnawaitreply.send('Deleting done.');
421
420
}
422
421
/** Group Setting Command */
423
422
@RestrictToGroupChats()
@@ -459,6 +458,6 @@ Group Type: ${group?.type || 'Unknown'}
459
458
}
460
459
461
460
// Default response if no valid action is detected
462
-
awaitreply.textReply('Invalid usage of the /welcome command. Use "/welcome" to view the current message, "/welcome r" to remove it, or "/welcome [message]" to set a new welcome message.');
461
+
returnawaitreply.textReply('Invalid usage of the /welcome command. Use "/welcome" to view the current message, "/welcome r" to remove it, or "/welcome [message]" to set a new welcome message.');
0 commit comments