Fixed categories and some timestamps
This commit is contained in:
@@ -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:
|
||||
|
@@ -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}",
|
||||
)
|
||||
|
Reference in New Issue
Block a user