From f2cd49662f74deb894518d5169fae533454bd6a6 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 5 Oct 2024 20:05:36 -0600 Subject: System manager now knows user_id of each bot --- src/config.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 7f18365..28fe422 100644 --- a/src/config.rs +++ b/src/config.rs @@ -3,6 +3,8 @@ use std::collections::HashMap; use regex::{Regex, RegexBuilder}; use serde::{Deserialize, Deserializer, de::Error}; +use crate::system::UserId; + #[derive(Deserialize)] pub enum AutoProxyScope { Global, @@ -67,6 +69,8 @@ pub struct Member { #[serde(deserialize_with = "parse_regex")] pub message_pattern: Regex, pub discord_token: String, + #[serde(skip)] + pub user_id: Option, pub presence: Option, pub status: Option, } -- cgit 1.4.1