diff options
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)] |
