Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buttons option not work in macOS #66

Closed
seu1a opened this issue Aug 20, 2024 · 1 comment
Closed

buttons option not work in macOS #66

seu1a opened this issue Aug 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@seu1a
Copy link

seu1a commented Aug 20, 2024

I made simple http server with this awesome package
so I coded some functions. it was working perfectly ❤️
but I have some problem at below code ⏬

public async setActivity(activity: ActivityBody) {
    await this.client.user?.setActivity({
      details: `${activity.nickname} · ${activity.view}명 · 📺`,
      state: `💫 · ${activity.title}`,
      largeImageKey: `${activity.image}`,
      smallImageKey: "afreeca",
      smallImageText: "AfreecaTV",
      type: 3,
      buttons: [
        {
          label: "test1",
          url: "https://www.afreecatv.com/",
        },
        {
          label: "test2",
          url: "https://www.afreecatv.com/",
        },
      ],
    });
  }

ActivityBody is custom interface to transfer data from http request. Here is it 👇

interface ActivityBody {
  title: string;
  nickname: string;
  view: number;
  image: string;
}

when I trigger the #setActivity, my activity looks like this

스크린샷 2024-08-20 19 33 45 스크린샷 2024-08-20 19 34 07

Sorry for that the language is korean not english.. 😭
I sure that only buttons option is not work

I checked the return of #setActivity the result is below

스크린샷 2024-08-20 19 27 12

it shows perfectly so I confused..

below is my environment)

  • OS: macOS
  • OS Version: Version 14.5
  • Discord Version: stable 319737 (74c37b3)
@seu1a seu1a added the bug Something isn't working label Aug 20, 2024
@seu1a
Copy link
Author

seu1a commented Aug 20, 2024

It was desktop client issue (on mac)

related issue: discordjs/RPC#180

the capture is from my android

스크린샷 2024-08-20 20 12 34

@seu1a seu1a closed this as completed Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant