From a9e0466e33b0a102322ac041bfe28b66bf904cbb Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 24 May 2021 20:57:05 +0300 Subject: [PATCH] Fix --- backend/src/plugins/Logs/util/log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Logs/util/log.ts b/backend/src/plugins/Logs/util/log.ts index 14d3da42..6072284e 100644 --- a/backend/src/plugins/Logs/util/log.ts +++ b/backend/src/plugins/Logs/util/log.ts @@ -45,7 +45,7 @@ export async function log(pluginData: GuildPluginData, type: Log if (opts.excluded_roles) { for (const value of Object.values(data || {})) { if (value instanceof SavedMessage) { - const member = pluginData.guild.members.get(data.message.user_id); + const member = pluginData.guild.members.get(value.user_id); for (const role of member?.roles || []) { if (opts.excluded_roles.includes(role)) { continue logChannelLoop;