Skip to content

Commit

Permalink
Collapse config description
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxydog committed Nov 8, 2023
1 parent 34b6cdc commit 2d8f40f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/membership/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::bot::client::ApiRef;
use crate::cmd::membership::submission::Submission;
use crate::cmd::{CommandEntry, CommandOptionResolver};
use crate::util::builder::{ButtonBuilder, Modal, ModalBuilder, TextInputBuilder};
use crate::util::extension::{EmbedAuthorExtension, ReactionTypeExtension};
use crate::util::extension::{EmbedAuthorExtension, ReactionTypeExtension, StrExtension};
use crate::util::traits::{IntoImageSource, PreferLocale};
use crate::util::{Anchor, DataId, Result, BRANDING};

Expand Down Expand Up @@ -135,7 +135,7 @@ impl TryFrom<&CommandOptionResolver<'_>> for ConfigEntrypoint {

fn try_from(resolver: &CommandOptionResolver<'_>) -> std::result::Result<Self, Self::Error> {
let title = Box::from(resolver.get_str("title")?);
let description = Box::from(resolver.get_str("description")?);
let description = resolver.get_str("description")?.collapse().into_boxed_str();

Ok(Self { title, description, open: true })
}
Expand Down

0 comments on commit 2d8f40f

Please sign in to comment.