diff --git a/src/modules/moderation/cog.py b/src/modules/moderation/cog.py index d6736de9..05ae6846 100644 --- a/src/modules/moderation/cog.py +++ b/src/modules/moderation/cog.py @@ -109,7 +109,7 @@ class ModerationCog(LionCog): try: return await member.send(**kwargs) except discord.HTTPException: - alert_channel = await self.settings.AlertChannel.get(member.guild.id) + alert_channel = (await self.settings.AlertChannel.get(member.guild.id)).value if alert_channel: try: return await alert_channel.send(content=member.mention, **kwargs) diff --git a/src/modules/moderation/settings.py b/src/modules/moderation/settings.py index 44343886..68143313 100644 --- a/src/modules/moderation/settings.py +++ b/src/modules/moderation/settings.py @@ -87,6 +87,7 @@ class ModerationSettings(SettingGroup): _model = CoreData.Guild _column = CoreData.Guild.alert_channel.name + _allow_object = False @property def update_message(self) -> str: