公会可用,但没有成员和频道。怎么了?

时间:2019-05-05 13:50:09

标签: python discord discord.py

输出错误,但是guild.unavailable == False

该机器人可以处理多个进程,并且该错误位于其子进程中。
召唤看起来像这样:

myPipe, childPipe = mp.Pipe()  
Process = mp.Process(target = MusicBot.loadNewBot, args =(childPipe, token.replace('\n',''),))

main-bot将该请求发送到child-bot时:

Bots[i].send([1, message.guild.id, VoiceChannelID])

child-bot接收到它们,并且此代码可用于以下查询:

guilds = await client.fetch_guilds(limit = 150).flatten()
print(guilds)
print(client.user)
guild = discord.Guild
for Guild in guilds:
    if(Guild.id == request[1]):
        guild = Guild
print(guild.members)
print(guild.voice_channels)
print(guild)
print(guild.unavailable)
# ...

这是输出:

[<Guild id=bla bla(that's right) name='test' chunked=False>]
bla bla(that's right again)
[]
[]
test
False

请告诉我怎么了。

0 个答案:

没有答案