#discord-rpc: client.application

1 messages · Page 1 of 1 (latest)

vagrant fable

Hey guys, is it normal that client.application is null?

I created another discord-rpc project to test stuff, here's the code:

import { Client } from "discord-rpc";

const client = new Client({
    transport: "ipc"
});

client.on("ready", () => {
    console.log("Logged in as", client.application?.name);
    console.log("Authed for user", client.user?.username);
});

client.login({
    clientId: "839894528953810944"
}).then(() => {
    console.log(client);
});