This repository has moved! Please check out the latest version at the new location https://git.exmods.org/NGnius/GameSDKcraft
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

27 line
742B

  1. using System;
  2. using System.Runtime.InteropServices;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Discord
  6. {
  7. public partial class LobbyManager
  8. {
  9. public IEnumerable<User> GetMemberUsers(Int64 lobbyID)
  10. {
  11. var memberCount = MemberCount(lobbyID);
  12. var members = new List<User>();
  13. for (var i = 0; i < memberCount; i++)
  14. {
  15. members.Add(GetMemberUser(lobbyID, GetMemberUserId(lobbyID, i)));
  16. }
  17. return members;
  18. }
  19. public void SendLobbyMessage(Int64 lobbyID, string data, SendLobbyMessageHandler handler)
  20. {
  21. SendLobbyMessage(lobbyID, Encoding.UTF8.GetBytes(data), handler);
  22. }
  23. }
  24. }