Skip to content

Commit

Permalink
fix(icons): append ?v=4 to the asset URLs to prompt Discord to refres…
Browse files Browse the repository at this point in the history
…h its file cache
  • Loading branch information
vyfor committed Apr 17, 2024
1 parent aac34bd commit fb4bcc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn language_presence(
let presence_details = cursor_position
.map_or(details.clone(), |pos| format!("{}:{}", details, pos));
let presence_large_image = format!(
"{}/language/{}.png?v=3",
"{}/language/{}.png?v=4",
GITHUB_ASSETS_URL,
if filename.is_empty() && filetype.is_empty() {
"text"
Expand All @@ -106,7 +106,7 @@ fn file_browser_presence(
) -> (String, String, String) {
let presence_details = config.file_browser_text.replace("{}", tooltip);
let presence_large_image =
format!("{}/file_browser/{}.png?v=3", GITHUB_ASSETS_URL, icon);
format!("{}/file_browser/{}.png?v=4", GITHUB_ASSETS_URL, icon);
let presence_large_text = tooltip.to_string();

(presence_details, presence_large_image, presence_large_text)
Expand All @@ -120,7 +120,7 @@ fn plugin_manager_presence(
) -> (String, String, String) {
let presence_details = config.plugin_manager_text.replace("{}", tooltip);
let presence_large_image =
format!("{}/plugin_manager/{}.png?v=3", GITHUB_ASSETS_URL, icon);
format!("{}/plugin_manager/{}.png?v=4", GITHUB_ASSETS_URL, icon);
let presence_large_text = tooltip.to_string();

(presence_details, presence_large_image, presence_large_text)
Expand Down

0 comments on commit fb4bcc4

Please sign in to comment.