You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

getting-event-users.md 617 B

12345678910111213141516
  1. ---
  2. uid: Guides.GuildEvents.GettingUsers
  3. title: Getting Guild Event Users
  4. ---
  5. # Getting Event Users
  6. You can get a collection of users who are currently interested in the event by calling `GetUsersAsync`. This method works like any other get users method as in it returns an async enumerable. This method also supports pagination by user id.
  7. ```cs
  8. // get all users and flatten the result into one collection.
  9. var users = await event.GetUsersAsync().FlattenAsync();
  10. // get users around the 613425648685547541 id.
  11. var aroundUsers = await event.GetUsersAsync(613425648685547541, Direction.Around).FlattenAsync();
  12. ```