We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f6bbd5 commit 631bba3Copy full SHA for 631bba3
backend/src/plugins/Logs/events/LogsGuildMemberRoleChangeEvt.ts
@@ -35,7 +35,7 @@ export const LogsGuildMemberRoleChangeEvt = guildPluginEventListener<LogsPluginT
35
}
36
37
const member = await pluginData.guild.members.fetch(auditLogEntry.targetId!);
38
- const mod = await pluginData.client.users.fetch(auditLogEntry.executorId!);
+ const mod = auditLogEntry.executorId ? await pluginData.client.users.fetch(auditLogEntry.executorId) : null;
39
for (const change of auditLogEntry.changes) {
40
if (isRoleAddChange(change)) {
41
const addedRoles = change.new.map((r) => resolveRole(pluginData.guild, r.id));
0 commit comments