diff options
| author | seth <[email protected]> | 2023-11-30 22:44:26 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-01 07:12:49 -0500 |
| commit | 41dfa94258215769b9d844875e79097d4a498770 (patch) | |
| tree | 5fb5a42545477ea1958ca6e5a1c1ae9b8d4899f7 /src/commands/teawiespam.rs | |
| parent | 76c0f94e6d7aa108424b34826eb7d8514b026287 (diff) | |
refactor: expand Settings
Diffstat (limited to 'src/commands/teawiespam.rs')
| -rw-r--r-- | src/commands/teawiespam.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/teawiespam.rs b/src/commands/teawiespam.rs index da01af9..aeea255 100644 --- a/src/commands/teawiespam.rs +++ b/src/commands/teawiespam.rs @@ -1,4 +1,3 @@ -use crate::utils; use crate::Context; use color_eyre::eyre::Result; @@ -8,7 +7,8 @@ use log::*; #[poise::command(slash_command, prefix_command)] pub async fn teawiespam(ctx: Context<'_>) -> Result<()> { let gid = ctx.guild_id().unwrap_or_default(); - if !utils::is_guild_allowed(gid) { + + if !ctx.data().settings.is_guild_allowed(gid) { info!("not running teawiespam command in {gid}"); return Ok(()); } |
