输出错误,但是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
请告诉我怎么了。