feat(eventlog): Add eventlog setting.

Also refactors the GeneralSettings to use the new style.
This commit is contained in:
2023-10-10 16:05:57 +03:00
parent 4e8eb366f3
commit fe81945391
7 changed files with 339 additions and 106 deletions

View File

@@ -93,3 +93,12 @@ class LionGuild(Timezoned):
"""
if self.data.name != guild.name:
await self.data.update(name=guild.name)
async def _event_log(self, ...):
...
def event_log(self, **kwargs):
asyncio.create_task(self._event_log(**kwargs), name='event-log')
def error_log(self, ...):
...