Giter Site home page Giter Site logo

Comments (3)

aiko-chan-ai avatar aiko-chan-ai commented on August 19, 2024

Hello, I don't get it why the activity doesn't show up when using the ActivityPlatform type on user accounts. Am I missing something?
Here are my example codes:

Xbox activity:

client.on("ready", () => {
    client.user.setPresence({
        status: "online",
        activities :[{
            type: 0,
            platform: "xbox",
            name: "Minecraft",
            application_id: "438122941302046720",
            timestamps :{
                start: Math.floor(new Date().getTime())
            }
        }]
    })
})

Samsung activity:

client.on("ready", () => {
    client.user.setPresence({
        status: "online",
        activities :[{
            type: 0,
            platform: "samsung",
            name: "Minecraft",
            application_id: "606736488545124381",
            timestamps :{
                start: Math.floor(new Date().getTime())
            }
        }]
    })
})

I tried all of the available platform types: desktop, xbox, samsung, android, ios, ps4 and ps5, but none of them worked.
I also get no errors when using them.

But the activity shows completely fine when removing the platform line (shows "Playing a game" instead of "Samsung Galaxy" or "Xbox").

it's pretty much like rpc button, can't add game state parameter .-.
Can't add using opcode, I think there must be an rpc similar to discord client pc

from discord.js-selfbot-v13.

 avatar commented on August 19, 2024

it's pretty much like rpc button, can't add game state parameter .-. Can't add using opcode, I think there must be an rpc similar to discord client pc

It's not a rich presence, it's a normal game activity using the xbox and samsung integration.
My actual question is, why isn't the activity working when using them in the code?

from discord.js-selfbot-v13.

aiko-chan-ai avatar aiko-chan-ai commented on August 19, 2024

Hello, I don't get it why the activity doesn't show up when using the ActivityPlatform type on user accounts. Am I missing something?
Here are my example codes:
Xbox activity:

client.on("ready", () => {
    client.user.setPresence({
        status: "online",
        activities :[{
            type: 0,
            platform: "xbox",
            name: "Minecraft",
            application_id: "438122941302046720",
            timestamps :{
                start: Math.floor(new Date().getTime())
            }
        }]
    })
})

Samsung activity:

client.on("ready", () => {
    client.user.setPresence({
        status: "online",
        activities :[{
            type: 0,
            platform: "samsung",
            name: "Minecraft",
            application_id: "606736488545124381",
            timestamps :{
                start: Math.floor(new Date().getTime())
            }
        }]
    })
})

I tried all of the available platform types: desktop, xbox, samsung, android, ios, ps4 and ps5, but none of them worked.
I also get no errors when using them.
But the activity shows completely fine when removing the platform line (shows "Playing a game" instead of "Samsung Galaxy" or "Xbox").

it's pretty much like rpc button, can't add game state parameter .-. Can't add using opcode, I think there must be an rpc similar to discord client pc

It's not a rich presence, it's a normal game activity using the xbox and samsung integration. My actual question is, why isn't the activity working when using them in the code?

could that be a limitation of discord api ? idk

from discord.js-selfbot-v13.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.