From 56ec18a67ce5c73b15736f98591d19a8162cb924 Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Mon, 10 Oct 2022 01:55:32 +0300 Subject: [PATCH] Update GroupChat.js --- src/structures/GroupChat.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/structures/GroupChat.js b/src/structures/GroupChat.js index cf68b49..dca31f1 100644 --- a/src/structures/GroupChat.js +++ b/src/structures/GroupChat.js @@ -77,40 +77,40 @@ class GroupChat extends Chat { /** * Adds a list of participants by ID to the group * @param {Array} participantIds - * @param {?number} sleep optional, amount to sleep in milliseconds before adding the next participant + * @param {?number} default 100ms, amount to sleep in milliseconds before adding the next participant * @returns {Promise>} */ - async addParticipants(participantIds, sleep = null) { + async addParticipants(participantIds, sleep = 100) { return this._changeParticipants(participantIds, 'add', sleep); } /** * Removes a list of participants by ID to the group * @param {Array} participantIds - * @param {?number} sleep optional, amount to sleep in milliseconds before removing the next participant + * @param {?number} default 100ms, amount to sleep in milliseconds before removing the next participant * @returns {Promise>} */ - async removeParticipants(participantIds, sleep = null) { + async removeParticipants(participantIds, sleep = 100) { return this._changeParticipants(participantIds, 'remove', sleep); } /** * Promote participants to admins by IDs * @param {Array} participantIds - * @param {?number} sleep optional, amount to sleep in milliseconds before promoting the next participant + * @param {?number} default 100ms, amount to sleep in milliseconds before promoting the next participant * @returns {Promise>} */ - async promoteParticipants(participantIds, sleep = null) { + async promoteParticipants(participantIds, sleep = 100) { return this._changeParticipants(participantIds, 'promote', sleep); } /** * Demotes admins to regular participants by IDs * @param {Array} participantIds - * @param {?number} sleep optional, amount to sleep in milliseconds before demoting the next participant + * @param {?number} default 100ms, amount to sleep in milliseconds before demoting the next participant * @returns {Promise>} */ - async demoteParticipants(participantIds, sleep = null) { + async demoteParticipants(participantIds, sleep = 100) { return this._changeParticipants(participantIds, 'demote', sleep); }