【发布时间】:2021-08-01 05:45:46
【问题描述】:
所以,我想做的是让机器人发送线下和线上的人数。
@bot.command()
async def members(message):
id = bot.get_guild(server token here)
await message.channel.send(f'Total-Members: {id.member_count}')
这只让机器人说出总成员的数量,而没有任何进一步的说明。你能帮我么?我想让机器人说出总成员、离线成员、在线成员和机器人。
【问题讨论】:
-
相关:stackoverflow.com/questions/57370231/… 还有一个非常有用的文档链接。
标签: python discord.py