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:Jump to 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();...
3 Replies
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.
Sorry, I thought it might be a djs question but I wasn't 100% sure
Oh that would make sense, thanks for the help
No problem
But yeah, it's discord.js cause the type ClientApplication comes from DJS, not Sapphire