simplified ternary
This commit is contained in:
parent
4047b7f921
commit
60caa3153b
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ export const LogsGuildBanAddEvt = logsEvt({
|
||||||
GuildAuditLogs.Actions.MEMBER_BAN_ADD as number,
|
GuildAuditLogs.Actions.MEMBER_BAN_ADD as number,
|
||||||
user.id,
|
user.id,
|
||||||
);
|
);
|
||||||
const mod = relevantAuditLogEntry ? relevantAuditLogEntry.executor : null;
|
const mod = relevantAuditLogEntry?.executor ?? null;
|
||||||
|
|
||||||
pluginData.state.guildLogs.log(
|
pluginData.state.guildLogs.log(
|
||||||
LogType.MEMBER_BAN,
|
LogType.MEMBER_BAN,
|
||||||
|
@ -41,7 +41,7 @@ export const LogsGuildBanRemoveEvt = logsEvt({
|
||||||
GuildAuditLogs.Actions.MEMBER_BAN_REMOVE as number,
|
GuildAuditLogs.Actions.MEMBER_BAN_REMOVE as number,
|
||||||
user.id,
|
user.id,
|
||||||
);
|
);
|
||||||
const mod = relevantAuditLogEntry ? relevantAuditLogEntry.executor : null;
|
const mod = relevantAuditLogEntry?.executor ?? null;
|
||||||
|
|
||||||
pluginData.state.guildLogs.log(
|
pluginData.state.guildLogs.log(
|
||||||
LogType.MEMBER_UNBAN,
|
LogType.MEMBER_UNBAN,
|
||||||
|
|
Loading…
Add table
Reference in a new issue