mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15:02 +00:00
General fixes. Update Knub to 9.6.1. Add info and server commands.
This commit is contained in:
parent
7ded84b924
commit
5359d0d5fe
7 changed files with 245 additions and 24 deletions
|
@ -113,10 +113,14 @@ export class LogsPlugin extends Plugin {
|
|||
);
|
||||
const mod = relevantAuditLogEntry ? relevantAuditLogEntry.user : unknownUser;
|
||||
|
||||
this.serverLogs.log(LogType.MEMBER_BAN, {
|
||||
user: stripObjectToScalars(user),
|
||||
mod: stripObjectToScalars(mod)
|
||||
});
|
||||
this.serverLogs.log(
|
||||
LogType.MEMBER_BAN,
|
||||
{
|
||||
user: stripObjectToScalars(user),
|
||||
mod: stripObjectToScalars(mod)
|
||||
},
|
||||
user.id
|
||||
);
|
||||
}
|
||||
|
||||
@d.event("guildBanRemove")
|
||||
|
@ -128,10 +132,14 @@ export class LogsPlugin extends Plugin {
|
|||
);
|
||||
const mod = relevantAuditLogEntry ? relevantAuditLogEntry.user : unknownUser;
|
||||
|
||||
this.serverLogs.log(LogType.MEMBER_UNBAN, {
|
||||
user: stripObjectToScalars(user),
|
||||
mod: stripObjectToScalars(mod)
|
||||
});
|
||||
this.serverLogs.log(
|
||||
LogType.MEMBER_UNBAN,
|
||||
{
|
||||
mod: stripObjectToScalars(mod),
|
||||
userId: user.id
|
||||
},
|
||||
user.id
|
||||
);
|
||||
}
|
||||
|
||||
@d.event("guildMemberUpdate")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue