diff --git a/personalchannels/core.py b/personalchannels/core.py index 85427390..788360e0 100644 --- a/personalchannels/core.py +++ b/personalchannels/core.py @@ -694,5 +694,5 @@ async def on_member_remove(self, member: discord.Member): async def on_guild_channel_delete(self, channel: discord.abc.GuildChannel): all_data: Dict[int, Any] = await self.config.all_members(guild=channel.guild) for member_id, data in all_data.items(): - if channel.id in data["channel"]: + if channel.id == data["channel"]: await self.config.member_from_ids(channel.guild.id, member_id).clear()