diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-16 21:14:30 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-16 21:15:07 -0400 |
| commit | ef056edf92b678265a4666e1f9405e3b0ce66a42 (patch) | |
| tree | b3766d47ae2898d2a46f108de4e2be0ede6c400b /src/config.rs | |
| parent | c5ce454319a7d54d3967c6ea7695543e943a37b2 (diff) | |
repo: overhaul for multitenancy
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 16 |
1 files changed, 0 insertions, 16 deletions
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)] |
