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.

permissions.cs 496 B

123456789101112131415
  1. /* --- OUTDATED --- */
  2. // Find a User's Channel Permissions
  3. var userChannelPermissions = user.GetPermissions(channel);
  4. // Find a User's Server Permissions
  5. var userServerPermissions = user.ServerPermissions();
  6. var userServerPermissions = server.GetPermissions(user);
  7. // Set a User's Channel Permissions (using DualChannelPermissions)
  8. var userPerms = user.GetPermissions(channel);
  9. userPerms.ReadMessageHistory = false;
  10. userPerms.AttachFiles = null;
  11. channel.AddPermissionsRule(user, userPerms);