aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
773 stars 164 forks source link

An issue with audit log feature #1187

Closed efefixim closed 3 months ago

efefixim commented 3 months ago

Which package is the feature request for?

The core library

Feature

The problem with AuditLog is that it doesn't accurately display the count of messages. For instance, if you delete multiple messages, it only updates the same audit log with numbers like "2", "3", "4", indicating the quantity of messages deleted. However, the AuditLog function fails to provide any detailed count of the deleted messages.

Annotation 2024-06-08 091435

Ideal solution or implementation

Add count.

Alternative solutions or implementations

No response

Other context

No response

aiko-chan-ai commented 3 months ago
{
  channel: <ref *1> TextChannel {},
  count: 5
}
    const e = await client.guilds.cache
        .get('id')
        .fetchAuditLogs({
            user: 'id',
            type: 72, // Delete msg
        });
    console.log(e.entries.first().extra);

image

aiko-chan-ai commented 3 months ago

wdym