Module nari.types.event.party

Classes that represent changes to a party

Expand source code
"""Classes that represent changes to a party"""
from nari.types import Timestamp
from nari.types.event import Event


class PartyList(Event): # pylint: disable=too-few-public-methods
    """Represents changes to the party list"""
    def __init__(self, *, # pylint: disable=dangerous-default-value
                 timestamp: Timestamp,
                 ids: list[int],
                 other_ids: list[int] = [],
                ):
        super().__init__(timestamp)
        self.ids = ids
        self.other_ids = other_ids

    def __repr__(self):
        return f'<PartyList f{len(self.ids)} (other: {len(self.other_ids)})>'

Classes

class PartyList (*, timestamp: int, ids: list[int], other_ids: list[int] = [])

Represents changes to the party list

Expand source code
class PartyList(Event): # pylint: disable=too-few-public-methods
    """Represents changes to the party list"""
    def __init__(self, *, # pylint: disable=dangerous-default-value
                 timestamp: Timestamp,
                 ids: list[int],
                 other_ids: list[int] = [],
                ):
        super().__init__(timestamp)
        self.ids = ids
        self.other_ids = other_ids

    def __repr__(self):
        return f'<PartyList f{len(self.ids)} (other: {len(self.other_ids)})>'

Ancestors