Generate room for discord bot

I had an idea of making a discord bot with a function so it can make a room with a command. I was wondering if there is any API for that.