mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
handle tempvoice manual deletion cases
This commit is contained in:
1 parent
938d1d8e77
commit
1340a5cca4
1 file changed
+2
@@ -393,6 +393,8 @@ class TempVoiceHelper:
|
||||
if (datetime.now() - data["no_members_since"]).total_seconds() >= 60:
|
||||
try:
|
||||
await channel.delete(reason="tempvoice kanal inaktiv i 1 minutt")
|
||||
except discord.NotFound:
|
||||
self.bot.logger.info(f"Temporary voice channel {channel} was already deleted")
|
||||
except discord.Forbidden:
|
||||
self.bot.logger.info(f"Failed to delete temporary voice channel {channel}")
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user