PHP code example of briqueaubob / restcord-enums
1. Go to this page and download the library: Download briqueaubob/restcord-enums library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
briqueaubob / restcord-enums example snippets
use RestCord\DiscordClient;
use RestCord\Enums\ChannelType;
$client = new DiscordClient([ 'token' => 'bot-token' ]);
$client->guild->createGuildChannel([
'guild.id' => 81384788765712384,
'name' => 'new-channel',
'type' => ChannelType::GUILD_VOICE->value
])