如何在discord.py中查找具有特定角色的用户

时间:2020-08-07 14:47:35

标签: python python-3.x discord discord.py discord.py-rewrite

我正在尝试创建一个不和谐的bot,以查找具有特定角色的用户,以便它可以针对此组用户执行某些操作。我已经编写了列出服务器中所有成员的代码,但是我认为这样做没有帮助。

import discord
#some code
client = discord.Client()
#some code
client.run("my token")

1 个答案:

答案 0 :(得分:0)

您可以使用以下内容,像这样type PagedResponse<T> = { [prop: string]: Array<T>; // <- this prop might have different name nextPageToken: number; total: number; };

ref for commands

$get_members ROLENAME