discord-auditlog icon indicating copy to clipboard operation
discord-auditlog copied to clipboard

Automatic per-guild setup

Open nikosszzz opened this issue 2 years ago • 0 comments

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.

nikosszzz avatar Jun 11 '22 07:06 nikosszzz