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.

User.cs 1.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Threading.Tasks;
  5. namespace Discord
  6. {
  7. public class User : IEntity<ulong>
  8. {
  9. public ulong Id { get; }
  10. public DiscordClient Discord { get; }
  11. public EntityState State { get; }
  12. public Server Server { get; }
  13. public string Name { get; }
  14. public ushort Discriminator { get; }
  15. public string AvatarId { get; }
  16. public string CurrentGame { get; }
  17. public UserStatus Status { get; }
  18. public DateTime JoinedAt { get; }
  19. public DateTime? LastActivityAt { get; }
  20. public string Mention => null;
  21. public bool IsSelfMuted => false;
  22. public bool IsSelfDeafened => false;
  23. public bool IsServerMuted => false;
  24. public bool IsServerDeafened => false;
  25. public bool IsServerSuppressed => false;
  26. public DateTime? LastOnlineAt => null;
  27. public VoiceChannel VoiceChannel => null;
  28. public string AvatarUrl => null;
  29. public IEnumerable<Role> Roles => null;
  30. public IEnumerable<IPublicChannel> Channels => null;
  31. public ServerPermissions ServerPermissions => default(ServerPermissions);
  32. public ChannelPermissions GetPermissions(IPublicChannel channel) => default(ChannelPermissions);
  33. public Task<PrivateChannel> GetPrivateChannel() => null;
  34. public Task<Message> SendMessage(string text) => null;
  35. public Task<Message> SendFile(string filePath) => null;
  36. public Task<Message> SendFile(string filename, Stream stream) => null;
  37. public bool HasRole(Role role) => false;
  38. public Task AddRoles(params Role[] roles) => null;
  39. public Task RemoveRoles(params Role[] roles) => null;
  40. public Task Update() => null;
  41. public Task Kick() => null;
  42. }
  43. }