naneynonn/discord-wrapper

Wrapper for the Discord API

Installs: 145

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/naneynonn/discord-wrapper

2.3.1 2025-08-12 09:23 UTC

README

Example

require 'vendor/autoload.php';

use Naneynonn\Api\Client as DiscordApiClient;
use Naneynonn\Enums\RequestTypes;

$config = [
  'bot' => [
    'token' => '',
  ]
];

$api = new DiscordApiClient($config);

$guild = $api->guild->getGuild(guild_id: '');
// or
$guild = $api->request(method: RequestTypes::GET, endpoint: '/guilds/{guild.id}', options: ['params' => ['guild.id' => '']], cache_ttl: 600);

All Resources (Wiki)

Cache and others