chore: format
This commit is contained in:
@@ -26,21 +26,19 @@ pub static COMMAND: LazyLock<Command> = LazyLock::new(|| {
|
||||
.build()
|
||||
});
|
||||
|
||||
|
||||
#[tracing::instrument]
|
||||
pub async fn handle(state: State, interaction: Interaction) {
|
||||
let revision = build_info::COMMIT_HASH;
|
||||
|
||||
let bot_owner_user_id = state.discord_bot_owner_user_id;
|
||||
|
||||
let is_bot_owner =
|
||||
interaction
|
||||
.member
|
||||
.as_ref()
|
||||
.and_then(|member| member.user.as_ref().map(|user| user.id))
|
||||
.map(|user_id| user_id == bot_owner_user_id)
|
||||
.unwrap_or(false);
|
||||
|
||||
let is_bot_owner = interaction
|
||||
.member
|
||||
.as_ref()
|
||||
.and_then(|member| member.user.as_ref().map(|user| user.id))
|
||||
.map(|user_id| user_id == bot_owner_user_id)
|
||||
.unwrap_or(false);
|
||||
|
||||
let bot_owner_mention = format!("<@{}>", bot_owner_user_id);
|
||||
|
||||
let opt_in_mention = format!(
|
||||
@@ -58,7 +56,7 @@ pub async fn handle(state: State, interaction: Interaction) {
|
||||
.create_response(
|
||||
interaction.id,
|
||||
&interaction.token,
|
||||
&InteractionResponse {
|
||||
&InteractionResponse {
|
||||
kind: InteractionResponseType::ChannelMessageWithSource,
|
||||
data: Some(
|
||||
InteractionResponseDataBuilder::new().embeds([
|
||||
@@ -87,7 +85,7 @@ pub async fn handle(state: State, interaction: Interaction) {
|
||||
})
|
||||
.await
|
||||
.expect("TODO");
|
||||
|
||||
|
||||
if is_bot_owner {
|
||||
let heat_script_description = state
|
||||
.bot_data_manager
|
||||
|
||||
Reference in New Issue
Block a user