#Why is guild.categories returning an empty list?

1 messages · Page 1 of 1 (latest)

robust rover
#

Why is guild.categories returning []

warped anvil
robust rover
#

get_channel returns None too

warped anvil
#

hmmm

robust rover
#

checked permission they are the same

warped anvil
#

so guild.channels is also returning None? or is that fine

robust rover
warped anvil
#

hmmmmmmmmmm

warped anvil
robust rover
warped anvil
#

weird

robust rover
warped anvil
#

wait

warped anvil
#

like during a cog load

robust rover
#

yep

warped anvil
#

then it's always gonna fail

robust rover
#

lol

warped anvil
#

the cache is only gonna be filled after on_ready has fired

#

you should use an on_ready listener inside your cog, and inside that you can access the cache

robust rover
#

ooh

robust rover
#

oop I have a wait until ready there

#

removing it didnt make any changes

warped anvil
robust rover
#

f#ck it, I put a 2 seconds sleep in main on_ready() so it works now