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-management.rst 398 B

12345678910111213141516171819202122
  1. User Management
  2. ===============
  3. Banning
  4. -------
  5. To ban a user, invoke the Ban function on a Server object.
  6. .. code-block:: c#
  7. _server.Ban(_user, 30);
  8. The pruneDays parameter, which defaults to 0, will remove all messages from a user dating back to the specified amount of days.
  9. Kicking
  10. -------
  11. To kick a user, invoke the Kick function on the User.
  12. .. code-block:: c#
  13. _user.Kick();