Discord integration for Gamecraft
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.

27 lines
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. }