diff --git a/src/plugins/Logs.ts b/src/plugins/Logs.ts index 1a92590a..e6766e08 100644 --- a/src/plugins/Logs.ts +++ b/src/plugins/Logs.ts @@ -182,7 +182,7 @@ export class LogsPlugin extends ZeppelinPlugin { member = await this.getMember(user.id); } - const memberConfig = this.getMatchingConfig({ member, userId: user.id }); + const memberConfig = (member.guild && this.getMatchingConfig({ member, userId: user.id })) || ({} as any); if (memberConfig.ping_user) { // Ping/mention the user