Application Data is null

So, I'm trying to get the owners of my application (for a team-members-based precondition for stuff like eval) but this.container.client.application has most of the data as null. It gives me the ID, flags, and that's about it. Is there anything I need to do to get that to show? Sorry if this is a stupid question it's been a while since I've worked with discord bots
Solution:
@hyperfirers firstly, this is a discord.js question, not related to the sapphire framework. Secondly, you need to fetch the application before accessing the ClientApplication properties and methods. ```js const app = await <Client>.application.fetch();...
Jump to solution
3 Replies
Solution
b1nzee
b1nzee2y ago
@hyperfirers firstly, this is a discord.js question, not related to the sapphire framework. Secondly, you need to fetch the application before accessing the ClientApplication properties and methods.
const app = await <Client>.application.fetch();
console.log(app);
const app = await <Client>.application.fetch();
console.log(app);
Hyper
HyperOP2y ago
Sorry, I thought it might be a djs question but I wasn't 100% sure Oh that would make sense, thanks for the help
b1nzee
b1nzee2y ago
No problem But yeah, it's discord.js cause the type ClientApplication comes from DJS, not Sapphire
Want results from more Discord servers?
Add your server