mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
12 lines
315 B
Python
12 lines
315 B
Python
|
|
from collections import namedtuple
|
||
|
|
|
||
|
|
from typing import List
|
||
|
|
|
||
|
|
from pluralkit import db
|
||
|
|
from pluralkit.member import Member
|
||
|
|
|
||
|
|
|
||
|
|
class Switch(namedtuple("Switch", ["id", "system", "timestamp", "members"])):
|
||
|
|
async def fetch_members(self, conn) -> List[Member]:
|
||
|
|
return await db.get_members(conn, self.members)
|