1@client.command(pass_context=True)
2async def link(ctx):
3 server = client.get_server("server_id")
4 link = client.create_invite(destination=server,xkcd=True,max_age=0,max_uses=number)
5 await client.say(link)
6 #max_age=0-> Never expire link
7 #max_uses-> limit to usage the link
8 #xkcd-> The URL fragment used for the invite if it is human readable.
9