Fix error detecting author of system messages
This commit is contained in:
parent
b29a04e5b3
commit
2d4441ebbc
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@ let commands: SimpleCommand[];
|
|||
client.on('messageCreate', async msg => {
|
||||
logger.debug(`Message -> ${msg.content}`);
|
||||
|
||||
if (msg.systemMessage !== undefined) return;
|
||||
|
||||
if (typeof msg.content != 'string' ||
|
||||
msg.authorId == client.user?.id ||
|
||||
!msg.channel?.server) return;
|
||||
|
|
Loading…
Reference in a new issue