Skip to content

Commit a774f67

Browse files
committed
fix some bugs
1 parent 73a6441 commit a774f67

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

Cargo.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mufbot-dc"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
edition = "2021"
55
license = "MIT"
66
authors = ["gamersi <[email protected]>", "xyloflake <[email protected]>"]
@@ -10,7 +10,7 @@ chrono = "0.4.38"
1010
dotenv = "0.15.0"
1111
once_cell = "1.19.0"
1212
poise = "0.6.1"
13-
reqwest = { version = "0.12.7", features = ["json"] }
13+
reqwest = { version = "0.12.8", features = ["json"] }
1414
serde_json = "1.0.128"
1515
sqlite = "0.36.1"
1616
tokio = { version = "1.40.0", features = ["macros", "rt-multi-thread"] }

src/discord/commands/rollout.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,10 @@ pub async fn create_rollout(
6767
ctx.send(response).await?;
6868

6969
while let Some(component_interaction) = serenity_prelude::ComponentInteractionCollector::new(ctx.serenity_context())
70-
.timeout(std::time::Duration::from_secs(120))
7170
.filter(move |mci| mci.data.custom_id.starts_with("approve-") || mci.data.custom_id.starts_with("reject-"))
7271
.await
7372
{
7473

75-
// check permissions
76-
7774
crate::discord::utils::no_perm::check_and_send_no_perm(ctx, &component_interaction.user).await?;
7875

7976
// If interactor and creator are same, disregard it because
@@ -99,7 +96,7 @@ pub async fn create_rollout(
9996
serenity_prelude::CreateInteractionResponse::Acknowledge
10097
).await?;
10198

102-
return Ok(());
99+
continue;
103100
}
104101

105102
if component_interaction.data.custom_id == format!("approve-{}", version) {

0 commit comments

Comments
 (0)