mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
[Streams] Remove stream alert if stream not found (#4939)
* Remove stream if not found * Address Jack's review.
This commit is contained in:
@@ -778,6 +778,9 @@ class Streams(commands.Cog):
|
||||
|
||||
stream.messages.clear()
|
||||
await self.save_streams()
|
||||
except StreamNotFound:
|
||||
to_remove.append(stream)
|
||||
continue
|
||||
else:
|
||||
if stream.messages:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user