(self, *, ip=None, name=None, uid=None, time=None, banreason=None)
return self._return_proxy("banadd", cparams, uparams, options)
Usage::

            banadd [ip={regexp}] [name={regexp}] [uid={clientUID}] [time={timeInSeconds}] [banreason={text}]

        Adds a new ban rule on the selected virtual server. All parameters are optional
        but at least one of the following must be set: ip, name, or uid.

        Example::

           banadd ip=1.2.3.4 banreason=just\s4\sfun
           banid=1
           error id=0 msg=ok

        Example::

            >>> ts3cmd.banadd(ip="127.0.0.1")
            ...
            >>> ts3cmd.banadd(name="Ben")
            ...
            >>> ts3cmd.banadd(name="Ben", time=3600, banreason="I hate you!")
Usage::
Usage ::
def banadd(self, *, ip=None, name=None, uid=None, time=None, banreason=None):
        """
        Usage::

            banadd [ip={regexp}] [name={regexp}] [uid={clientUID}] [time={timeInSeconds}] [banreason={text}]

        Adds a new ban rule on the selected virtual server. All parameters are optional
        but at least one of the following must be set: ip, name, or uid.

        Example::

           banadd ip=1.2.3.4 banreason=just\s4\sfun
           banid=1
           error id=0 msg=ok

        Example::

            >>> ts3cmd.banadd(ip="127.0.0.1")
            ...
            >>> ts3cmd.banadd(name="Ben")
            ...
            >>> ts3cmd.banadd(name="Ben", time=3600, banreason="I hate you!")
        """
        cparams = OrderedDict()
        uparams = list()
        options = list()

        cparams["ip"] = ip
        cparams["name"] = name
        cparams["uid"] = uid
        cparams["time"] = time
        cparams["banreason"] = banreason
        return self._return_proxy("banadd", cparams, uparams, options)
def banadd ( self , * , ip = None , name = None , uid = None , time = None , banreason = None ) : cparams = OrderedDict ( ) uparams = list ( ) options = list ( ) cparams [ "ip" ] = ip cparams [ "name" ] = name cparams [ "uid" ] = uid cparams [ "time" ] = time cparams [ "banreason" ] = banreason return self . _return_proxy ( "banadd" , cparams , uparams , options )