Fixed messages about not created channels

This commit is contained in:
2025-04-26 20:01:52 +02:00
parent 64cd7b3bff
commit e45a56835a
3 changed files with 70 additions and 10 deletions

View File

@@ -270,9 +270,9 @@ class PycordUser:
pycord_guild: "PycordGuild",
pycord_event: "PycordEvent",
cache: Optional[Cache] = None,
):
) -> TextChannel | None:
if str(pycord_event._id) in self.event_channels.keys():
return
return None
discord_member: Member | None = guild.get_member(self.id)
discord_category: GuildChannel | None = bot.get_channel(pycord_guild.category_id)
@@ -316,6 +316,8 @@ class PycordUser:
await self.set_event_channel(pycord_event._id, channel.id, cache=cache)
return channel
async def lock_event_channel(
self,
guild: Guild,