Skip to content

Commit

Permalink
feat: set "listening to" activity type
Browse files Browse the repository at this point in the history
Fix #85
  • Loading branch information
NextFire committed Aug 19, 2024
1 parent 55e1058 commit 9c247ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions music-rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ async function setActivity(rpc: Client): Promise<number> {

// EVERYTHING must be less than or equal to 128 chars long
const activity: Activity = {
// @ts-ignore: "listening to" is allowed in recent Discord versions
type: 2,
details: formatStr(props.name),
timestamps: { end },
assets: { large_image: "appicon" },
Expand Down

0 comments on commit 9c247ae

Please sign in to comment.