discord-auditlog
discord-auditlog copied to clipboard
Automatic per-guild setup
Is there a way to get it to set channels automatically by fetching channel names through a MongoDB entry for each guild using this package?
I am trying to do it using this:
const guilddb = await guildModel.findOne(
{
GuildID: guild.id
},
(err: any) => {
if (err) console.error(err);
}
)
})
Channel names would be guilddb.AuditChannel which returns the channel name.