Fixed messages about not created channels
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user