Asynchronously trigger an event across all addons.
(self, event: hooks.Hook)
| 283 | func(*event.args()) |
| 284 | |
| 285 | async def trigger_event(self, event: hooks.Hook): |
| 286 | """ |
| 287 | Asynchronously trigger an event across all addons. |
| 288 | """ |
| 289 | for i in self.chain: |
| 290 | try: |
| 291 | with safecall(): |
| 292 | await self.invoke_addon(i, event) |
| 293 | except exceptions.AddonHalt: |
| 294 | return |
| 295 | |
| 296 | def trigger(self, event: hooks.Hook): |
| 297 | """ |