naneynonn/discord-wrapper

Wrapper for the Discord API

Maintainers

Package info

github.com/Naneynonn/discord-wrapper

pkg:composer/naneynonn/discord-wrapper

Statistics

Installs: 189

Dependents: 0

Suggesters: 0

Stars: 5

Open Issues: 0

3.0.2 2026-03-25 13:06 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