mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix
This commit is contained in:
parent
a1d188cc79
commit
a9e0466e33
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export async function log(pluginData: GuildPluginData<LogsPluginType>, type: Log
|
||||||
if (opts.excluded_roles) {
|
if (opts.excluded_roles) {
|
||||||
for (const value of Object.values(data || {})) {
|
for (const value of Object.values(data || {})) {
|
||||||
if (value instanceof SavedMessage) {
|
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 || []) {
|
for (const role of member?.roles || []) {
|
||||||
if (opts.excluded_roles.includes(role)) {
|
if (opts.excluded_roles.includes(role)) {
|
||||||
continue logChannelLoop;
|
continue logChannelLoop;
|
||||||
|
|
Loading…
Add table
Reference in a new issue