Skip to content

Commit

Permalink
Respond directly
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Feb 8, 2024
1 parent c78399b commit 9707ba9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions discord_bot/src/commands/ticket_reopen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ impl EventHandler for TicketReopenHandler {
return;
}

let Some((mut guild_channel, _owner_id)) = check_permissions(&ctx, &component).await else {
return;
};

let responds = component
.quick_modal(
&ctx,
CreateQuickModal::new("Why do you want to reopen this ticket?")
.paragraph_field("Reason"),
)
.await;

let Some((mut guild_channel, _owner_id)) = check_permissions(&ctx, &component).await else {
return;
};

let responds = match responds {
Ok(Some(responds)) if responds.inputs.len() > 0 => responds,
Err(err) => {
Expand Down

0 comments on commit 9707ba9

Please sign in to comment.