:orphan:

:py:mod:`slidge.group.participant`
==================================

.. py:module:: slidge.group.participant


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   slidge.group.participant.LegacyParticipant




.. py:class:: LegacyParticipant(muc, nickname = None, is_user=False, is_system=False, role = 'participant', affiliation = 'member')




   A legacy participant of a legacy group chat.

   .. py:method:: send_initial_presence(full_jid, nick_change=False, presence_id = None)

      Called when the user joins a MUC, as a mechanism
      to indicate to the joining XMPP client the list of "participants".

      Can be called this to trigger a "participant has joined the group" event.

      :param full_jid: Set this to only send to a specific user XMPP resource.
      :param nick_change: Used when the user joins and the MUC renames them (code 210)
      :param presence_id: set the presence ID. used internally by slidge


   .. py:method:: leave()

      Call this when the participant leaves the room


   .. py:method:: kick()

      Call this when the participant is kicked from the room


   .. py:method:: ban()

      Call this when the participant is banned from the room



