Skip to content

Commit

Permalink
Do not trigger webhook on empty input
Browse files Browse the repository at this point in the history
  • Loading branch information
axonasif committed Jul 19, 2023
1 parent b70ed37 commit 84c345b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/event/interaction_create/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async fn company_name_submitted_response(
if let Some(component) = &mci.data.components.get(0)
&& let Some(input_field) = component.components.get(0)
&& let ActionRowComponent::InputText(it) = input_field
&& !it.value.is_empty()
&& let Some(config) = BOT_CONFIG.get() && let Some(misc) = &config.misc
{
reqwest::Client::new()
Expand Down

0 comments on commit 84c345b

Please sign in to comment.