summaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-16 23:19:29 -0500
committerseth <[email protected]>2023-11-18 01:42:03 +0000
commit13b54108494b7492b3772ff477ed9a02c56c7972 (patch)
tree416247f2cb3404613f60373b59f65c592ce19173 /src/utils.rs
parent86318aa4aa8a7547e6398342a0c7b609e307dd5d (diff)
chore: cleanup imports
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 8773b14..780ecc9 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -1,5 +1,4 @@
-use crate::consts::*;
-use crate::Error;
+use crate::{consts, Error};
use once_cell::sync::Lazy;
use poise::serenity_prelude::GuildId;
@@ -46,7 +45,7 @@ pub fn floor_char_boundary(s: &str, index: usize) -> usize {
pub fn is_guild_allowed(gid: GuildId) -> bool {
static ALLOWED_GUILDS: Lazy<Vec<GuildId>> = Lazy::new(|| {
parse_snowflakes_from_env("ALLOWED_GUILDS", GuildId)
- .unwrap_or_else(|| vec![TEAWIE_GUILD, GuildId(1091969030694375444)])
+ .unwrap_or_else(|| vec![consts::TEAWIE_GUILD, GuildId(1091969030694375444)])
});
ALLOWED_GUILDS.contains(&gid)