Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想按频道 ID 获取文本频道中所有用户的列表。我用那个代码试过这个:
var channel = ctx.Guild.GetChannel(id); var users = channel.Users; foreach (var item in users) { Console.WriteLine(item); }
(id = 频道 ID)
但不是所有用户的列表,我只有两个用户:我和机器人。