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.

ServerPermissions.cs 2.6 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. namespace Discord
  2. {
  3. public struct ServerPermissions
  4. {
  5. public static ServerPermissions None { get; }
  6. public static ServerPermissions All { get; }
  7. public uint RawValue { get; }
  8. public bool CreateInstantInvite { get; }
  9. public bool BanMembers { get; }
  10. public bool KickMembers { get; }
  11. public bool ManageRoles { get; }
  12. public bool ManageChannels { get; }
  13. public bool ManageServer { get; }
  14. public bool ReadMessages { get; }
  15. public bool SendMessages { get; }
  16. public bool SendTTSMessages { get; }
  17. public bool ManageMessages { get; }
  18. public bool EmbedLinks { get; }
  19. public bool AttachFiles { get; }
  20. public bool ReadMessageHistory { get; }
  21. public bool MentionEveryone { get; }
  22. public bool Connect { get; }
  23. public bool Speak { get; }
  24. public bool MuteMembers { get; }
  25. public bool DeafenMembers { get; }
  26. public bool MoveMembers { get; }
  27. public bool UseVoiceActivation { get; }
  28. public ServerPermissions(bool? createInstantInvite = null, bool? manageRoles = null,
  29. bool? kickMembers = null, bool? banMembers = null, bool? manageChannel = null, bool? manageServer = null,
  30. bool? readMessages = null, bool? sendMessages = null, bool? sendTTSMessages = null, bool? manageMessages = null,
  31. bool? embedLinks = null, bool? attachFiles = null, bool? readMessageHistory = null, bool? mentionEveryone = null,
  32. bool? connect = null, bool? speak = null, bool? muteMembers = null, bool? deafenMembers = null,
  33. bool? moveMembers = null, bool? useVoiceActivation = null)
  34. : this()
  35. {
  36. }
  37. public ServerPermissions(uint rawValue)
  38. : this()
  39. {
  40. }
  41. public ServerPermissions Modify(ServerPermissions basePerms, bool? createInstantInvite = null, bool? manageRoles = null,
  42. bool? kickMembers = null, bool? banMembers = null, bool? manageChannel = null, bool? manageServer = null,
  43. bool? readMessages = null, bool? sendMessages = null, bool? sendTTSMessages = null, bool? manageMessages = null,
  44. bool? embedLinks = null, bool? attachFiles = null, bool? readMessageHistory = null, bool? mentionEveryone = null,
  45. bool? connect = null, bool? speak = null, bool? muteMembers = null, bool? deafenMembers = null,
  46. bool? moveMembers = null, bool? useVoiceActivation = null)
  47. => default(ServerPermissions);
  48. }
  49. }