mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
Add class doc blocks to Audit Logs (#1438)
This commit is contained in:
parent
c5efa985fc
commit
1ddae43fed
1 changed files with 7 additions and 0 deletions
|
|
@ -38,6 +38,10 @@ const Actions = {
|
||||||
EMOJI_DELETE: 62,
|
EMOJI_DELETE: 62,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Audit logs entries are held in this class
|
||||||
|
*/
|
||||||
class GuildAuditLogs {
|
class GuildAuditLogs {
|
||||||
constructor(guild, data) {
|
constructor(guild, data) {
|
||||||
if (data.users) for (const user of data.users) guild.client.dataManager.newUser(user);
|
if (data.users) for (const user of data.users) guild.client.dataManager.newUser(user);
|
||||||
|
|
@ -124,6 +128,9 @@ class GuildAuditLogs {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Audit logs entry
|
||||||
|
*/
|
||||||
class GuildAuditLogsEntry {
|
class GuildAuditLogsEntry {
|
||||||
constructor(guild, data) {
|
constructor(guild, data) {
|
||||||
const targetType = GuildAuditLogs.targetType(data.action_type);
|
const targetType = GuildAuditLogs.targetType(data.action_type);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue