Skip to content

Commit

Permalink
feat: add file name to gist preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Kneemund committed Feb 11, 2024
1 parent e76c450 commit 4125b82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bot/file_preview/gist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use once_cell::sync::Lazy;
use regex::Regex;
use reqwest::Url;
use serde::{Deserialize, Serialize};
use serenity::utils::MessageBuilder;
use serenity::all::MessageBuilder;

use crate::HTTP_CLIENT;

Expand Down Expand Up @@ -90,7 +90,9 @@ impl GistFilePreview {
.push(selected_file_name);

let mut metadata_content_builder = MessageBuilder::new();
metadata_content_builder.push_bold_line_safe(metadata.owner);
metadata_content_builder
.push_bold_line_safe(metadata.owner)
.push_line_safe(selected_file_name);

if !metadata.description.is_empty() {
metadata_content_builder
Expand Down

0 comments on commit 4125b82

Please sign in to comment.