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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 : IModel<ulong>
  8. {
  9. public DiscordClient Client { get; }
  10. public ulong Id { get; }
  11. public Server Server { get; }
  12. public string Name { get; }
  13. public ushort Discriminator { get; }
  14. public string AvatarId { get; }
  15. public string CurrentGame { get; }
  16. public UserStatus Status { get; }
  17. public DateTime JoinedAt { get; }
  18. public DateTime? LastActivityAt { get; }
  19. public Channel PrivateChannel => null;
  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 Channel VoiceChannel => null;
  28. public string AvatarUrl => null;
  29. public IEnumerable<Role> Roles => null;
  30. public IEnumerable<Channel> Channels => null;
  31. public Task Kick() => null;
  32. public ServerPermissions ServerPermissions => default(ServerPermissions);
  33. public ChannelPermissions GetPermissions(Channel channel) => default(ChannelPermissions);
  34. public Task<Channel> CreatePMChannel() => null;
  35. public Task<Message> SendMessage(string text) => null;
  36. public Task<Message> SendFile(string filePath) => null;
  37. public Task<Message> SendFile(string filename, Stream stream) => null;
  38. public bool HasRole(Role role) => false;
  39. public Task AddRoles(params Role[] roles) => null;
  40. public Task RemoveRoles(params Role[] roles) => null;
  41. public Task Save() => null;
  42. }
  43. }