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
Requires
- guzzlehttp/guzzle: ^7.8
- monolog/monolog: ^3.9
- predis/predis: ^3.2
Requires (Dev)
- phpstan/phpstan: ^2.1
This package is auto-updated.
Last update: 2025-10-12 09:42:04 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)
- Application
- Audit Log
- Auto Moderation
- Channel
- Emoji
- Guild
- Invite
- Poll
- Stage Instance
- Sticker
- User
- Voice
- Webhook