fix (rooms): Cancel rooms on system shutdown.

Fix typos in the `success_response` for `accountability_category`.
Make the `TimeSlot.cancel()` method more robust.
This commit is contained in:
2021-10-20 12:55:36 +03:00
parent ace44d0d7d
commit 42e47bea1a
2 changed files with 7 additions and 5 deletions

View File

@@ -409,12 +409,13 @@ class TimeSlot:
if self.channel:
try:
await self.channel.delete()
self.channel = None
except discord.HTTPException:
pass
if self.message:
try:
timestamp = self.start_time.timestamp()
timestamp = int(self.start_time.timestamp())
embed = discord.Embed(
title="Session <t:{}:t> - <t:{}:t>".format(
timestamp, timestamp + 3600