mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Фикс clear без фильтрации
This commit is contained in:
parent
2782691100
commit
60a7a4f949
1 changed files with 2 additions and 2 deletions
|
@ -117,8 +117,8 @@ class Clear extends BaseCommand {
|
|||
limit: option,
|
||||
});
|
||||
|
||||
if ((!member && !user_id) || (member && user_id)) return interaction.replyT("moderation/clear:REQUIRE_ID_USER", null, { edit: true });
|
||||
if (member || user_id) messages = messages.filter(m => m.author.id === (member?.id || user_id));
|
||||
if (user_id && member) return interaction.replyT("moderation/clear:REQUIRE_ID_USER", null, { edit: true });
|
||||
if (user_id || member) messages = messages.filter(m => m.author.id === (user_id || member.id));
|
||||
|
||||
interaction.channel.bulkDelete(messages.filter(m => !m.pinned), true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue