API AcceptBattlefieldPort

Confirms entry into a Battleground you are queued for that is ready. AcceptBattlefieldPort(index, accept)

Arguments

 * index : Number - The battlefield in queue to enter.
 * accept : Boolean - Whether or not to accept entry to the battlefield.

Details
Passing 0 or nil as an accept argument will cause you to leave the queue for the battlefield, if you are inside a battlefield you will leave it regardless if it's ended or not.