Fix enum bug
This commit is contained in:
@@ -30,14 +30,15 @@ drb_api = DRBCDBAPI(CLIENT_API_URL)
|
||||
srv_api = RadioAPIClient(SERVER_API_URL)
|
||||
|
||||
# --- Define the client status object ---
|
||||
class StatusValues(str, Enum):
|
||||
class DiscordStatusValues(str, Enum):
|
||||
INVOICE = "in_voice" # The discord client is in at least one voice channel
|
||||
ONLINE = "online" # The discord client is online
|
||||
OFFLINE = "offline" # The discord client is offline
|
||||
class DiscordStatusValues(StatusValues):
|
||||
INVOICE = "in_voice" # The discord client is in at least one voice channel
|
||||
|
||||
class OP25StatusValues(StatusValues):
|
||||
class OP25StatusValues(str, Enum):
|
||||
LISTENING = "listening" # OP25 is online and listening
|
||||
ONLINE = "online" # OP25 is online
|
||||
OFFLINE = "offline" # OP25 is offline
|
||||
|
||||
|
||||
client_status = {
|
||||
|
||||
Reference in New Issue
Block a user