bot.exts.core.log#

Cog to log.

Module Contents#

Classes#

Log

Logging for server events and staff actions.

Functions#

setup(→ None)

Load the Log cog.

Attributes#

log

bot.exts.core.log.log[source]#
class bot.exts.core.log.Log(bot: bot.bot.Bot)[source]#

Bases: discord.ext.commands.Cog

Logging for server events and staff actions.

async send_log_message(icon_url: str | None, colour: discord.Colour | int, title: str | None, text: str, thumbnail: str | discord.Asset | None = None, channel_id: int = Channels.mod_log, ping_mods: bool = False, files: list[discord.File] | None = None, content: str | None = None, additional_embeds: list[discord.Embed] | None = None, timestamp_override: datetime.datetime | None = None, footer: str | None = None) discord.ext.commands.Context[source]#

Generate log embed and send to logging channel.

async bot.exts.core.log.setup(bot: bot.bot.Bot) None[source]#

Load the Log cog.