Files
Discord.Net/docs/features/user-management.rst

23 lines
408 B
ReStructuredText

User Management
===============
Banning
-------
To ban a user, invoke the Ban function on a Server object.
.. code-block:: csharp6
_server.Ban(_user, 30);
The pruneDays parameter, which defaults to 0, will remove all messages from a user dating back to the specified amount of days.
Kicking
-------
To kick a user, invoke the Kick function on the User.
.. code-block:: csharp6
_user.Kick();