This commit is contained in:
Dragory 2021-05-24 20:57:05 +03:00
parent a1d188cc79
commit a9e0466e33
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -45,7 +45,7 @@ export async function log(pluginData: GuildPluginData<LogsPluginType>, 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;