コード例 #1
0
    def leave_server(self, serverid):
        """
		the userbot will leave the specific server
		"""
        return Server(self.token).leave_server(serverid, self.proxy)
コード例 #2
0
 def get_channels(self, serverid):
     return Server(self.token).get_channels(serverid)
コード例 #3
0
    def join_server(self, invite):
        """
		it joins the server from the specific invite parameter that the
		user has entered
		"""
        return Server(self.token).join_server(invite)
コード例 #4
0
    def ban(self, chatid, userid, reason):
        """
		the userbot will ban the user from the server
		"""
        return Server(self.token).ban(chatid, userid, reason, self.proxy)
コード例 #5
0
    def kick(self, chatid, userid, reason):
        """
		the userbot will kick the specific user from the server
		"""
        return Server(self.token).kick(chatid, userid, reason, self.proxy)
コード例 #6
0
    def createServer(self, logo, name, region):
        """
		it creates a server with the spefic logo, name, and region
		"""
        return Server(self.token).createServer(logo, name, region, self.proxy)