Skip to content

Commit

Permalink
feat: set Watching activity type (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos authored Oct 8, 2024
2 parents d5bfdb7 + 79265e2 commit 9c78fc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ readme = "README.md"
exclude = [".github/*", "images/*.psd", "credentials.ini", ".gitignore"]

[dependencies]
discord-rich-presence = "0.2.4"
discord-rich-presence = "0.2.5"
ureq = { version = "2.10.1", features = ["json"] }
configparser = { version = "3.1.0", features = ["indexmap"] }
serde = { version = "1.0.208", features = ["derive"] }
Expand Down
3 changes: 2 additions & 1 deletion src/discord.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use discord_rich_presence::{
activity::{Activity, Assets, Button, Timestamps},
activity::{Activity, ActivityType, Assets, Button, Timestamps},
DiscordIpc, DiscordIpcClient,
};
use std::{thread::sleep, time::Duration};
Expand Down Expand Up @@ -123,6 +123,7 @@ impl Discord {
let payload = Activity::new()
.details(&payload_data.details)
.state(&payload_data.state)
.activity_type(ActivityType::Watching)
.assets(
Assets::new()
.large_image(&img)
Expand Down

0 comments on commit 9c78fc1

Please sign in to comment.