mirror of
https://github.com/AsgardEternal/DiscordWhitelist.git
synced 2025-01-02 09:49:13 -06:00
28 lines
443 B
Python
28 lines
443 B
Python
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class DiscordClientConfig:
|
|
login_token: str
|
|
|
|
|
|
@dataclass
|
|
class WhitelistMember:
|
|
discord_username: str
|
|
steam64: int
|
|
|
|
|
|
@dataclass
|
|
class WhitelistGroup:
|
|
discord_role_id: int
|
|
members: dict[int, WhitelistMember]
|
|
|
|
|
|
@dataclass
|
|
class Whitelist:
|
|
whitelist: dict[str, WhitelistGroup]
|
|
|
|
def __iter__(self):
|
|
for key in self.whitelist:
|
|
yield self.whitelist[key]
|