From ef056edf92b678265a4666e1f9405e3b0ce66a42 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 16 Aug 2024 21:14:30 -0400 Subject: repo: overhaul for multitenancy --- src/config.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index a5ac928..fae5a23 100644 --- a/src/config.rs +++ b/src/config.rs @@ -68,31 +68,15 @@ pub struct DiscordConfig { #[envconfig(nested = true)] pub auth: DiscordAuth, - #[envconfig(from = "TARGET_GUILD")] - guild: u64, - #[envconfig(from = "OWNER_ID")] owner: u64, - - #[envconfig(from = "VOICE_CHANNEL")] - voice_channel: u64, } impl DiscordConfig { - #[inline] - pub fn guild(&self) -> GuildId { - self.guild.into() - } - #[inline] pub fn owner(&self) -> UserId { self.owner.into() } - - #[inline] - pub fn voice_channel(&self) -> ChannelId { - self.voice_channel.into() - } } #[derive(Envconfig)] -- cgit v1.3.1