Source code for bot_api.events.death_event
from dataclasses import dataclass
from .bot_event import BotEvent
[docs]
@dataclass(frozen=True, repr=True)
class DeathEvent(BotEvent):
"""
Represents an event triggered when the bot has died.
"""
@property
def critical(self) -> bool:
"""
Overrides the default implementation to mark this event as critical.
Returns:
bool: Always returns True since a death event is critical.
"""
return True