【发布时间】:2019-05-29 15:36:02
【问题描述】:
我在 time.sleep 上有一个频道列表和一个正在运行的后台线程。我的目标是将来自 list_of_msgs=[] 的随机消息发送到来自 channel_list=[] 的随机频道。
这就是我填充频道列表的方式:
chan_list = []
for server in self.bot.servers:
for channel in server.channels:
if channel.type == discord.ChannelType.text:
chan_list.append(channel)
print(', '.join(map(str, chan_list))) ###for testing###
将列表中的消息发送到另一个列表上的频道的正确方法是什么?
【问题讨论】:
标签: python python-3.x discord discord.py