client.application has a bunch of null values
Hi there,
I'm very new to Sapphire so I've been going through the documentation/guide and am at the step to configure your own preconditions. Going off the example in the documentation where the bot owner id is grabbed from a configuration file. I'm trying to access mine through
this.container.client.application.owner.id
, however this.container.client.application
has a bunch of null
values.
When I throw it all to my console, these are the results:
Is any extra set-up required for these values to be filled, or what's the reason they're all null values?Solution:Jump to solution
Sounds like either your printing it before the bot fully connected to discord or your connection isn't working at all. Either way, this is a discordjs matter, not a sapphire matter.
2 Replies