debugging

This commit is contained in:
Erik 2021-06-11 04:23:21 +03:00
parent 12312de869
commit ce80bda8cc
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -94,6 +94,10 @@ class GuildLogger extends Observer {
if (ignore && ignore.includes(message.channel.id)) return undefined;
const hook = await message.guild.getWebhook('messageLog');
if (!hook) {
this.client.logger.debug(`Missing messageLog hook in ${message.guild.name} (${message.guild.id})`);
return;
}
const embed = {
// author: {