mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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:
parent
9a7c178db5
commit
3c742e39d2
@ -778,6 +778,9 @@ class Streams(commands.Cog):
|
|||||||
|
|
||||||
stream.messages.clear()
|
stream.messages.clear()
|
||||||
await self.save_streams()
|
await self.save_streams()
|
||||||
|
except StreamNotFound:
|
||||||
|
to_remove.append(stream)
|
||||||
|
continue
|
||||||
else:
|
else:
|
||||||
if stream.messages:
|
if stream.messages:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user