Render alerts list functionality as embeds and make more pretty
This commit is contained in:
@@ -49,4 +49,10 @@ class History:
|
||||
self._history.append(datum)
|
||||
return await self._process_update_triggers()
|
||||
|
||||
async def find_update_trigger_from_alert(self, alert: Alert) -> UpdateTrigger:
|
||||
for trigger in self._update_triggers:
|
||||
if trigger.alert == alert:
|
||||
return trigger
|
||||
raise ValueError
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user