(Channel) Invites - Cleanse/discord-hypertext GitHub Wiki

Channel Invites API

Back to the Channel API

Create Channel Invite

$discord = new Discord($email_address, $password);
$channelId = '<your_guild_id>';
$discord->api('channel')->invites()->create($channelId);

Returns an array with invite details.