mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
properly log error
This commit is contained in:
parent
21315f490b
commit
1a55308047
|
@ -198,7 +198,7 @@ client.on('messageCreate', async message => {
|
|||
metrics.messages.inc({ source: 'discord', type: 'create' });
|
||||
})
|
||||
.catch(async e => {
|
||||
console.error(`Failed to send message`, e.response.data);
|
||||
console.error(`Failed to send message: ${e}`);
|
||||
if (reply) {
|
||||
console.info('Reytring without reply');
|
||||
await sendBridgeMessage(undefined);
|
||||
|
|
Loading…
Reference in a new issue