Fixed categories and some timestamps

This commit is contained in:
2025-04-28 01:21:20 +02:00
parent 99653c6fe1
commit b212236b10
4 changed files with 9 additions and 7 deletions

View File

@@ -303,7 +303,7 @@ class PycordBot(LibPycordBot):
event_name: Optional[str] = None,
guild_id: Optional[int] = None,
) -> PycordEvent:
if event_id is None or (event_name is None and guild_id is None):
if event_id is None and (event_name is None or guild_id is None):
raise AttributeError("Either event ID or name with guild ID must be provided")
if event_id is not None:

View File

@@ -305,7 +305,7 @@ class PycordUser:
channel: TextChannel = await guild.create_text_channel(
f"{discord_member.name}_{shake_256(str(pycord_event._id).encode()).hexdigest(3)}",
category=discord_category,
category=discord_category.category,
overwrites=permission_overwrites,
reason=f"Event channel of {self.id} for event {pycord_event._id}",
)