improve empty tempvoice channel cleanup logic

This commit is contained in:
leander committed 2026-10-24 03:49:12 +02:00
1 parent bb2428f34b
commit e7ce56a1e5
1 file changed
+2 -1
+2 -1
View File
@@ -439,7 +439,8 @@ class TempVoiceHelper:
self.bot.logger.info(f"Created temporary voice channel {channel} in {interaction.guild}")
self.temp_vc_channels[channel] = {"created": datetime.now(), "no_members_since": None}
now = datetime.now()
self.temp_vc_channels[channel] = {"created": now, "no_members_since": now}
try:
await interaction.user.move_to(channel)