abenevaut/laravel-discord-client

Laravel Http Client Infrastructure

0.0.2 2025-01-28 16:36 UTC

This package is auto-updated.

Last update: 2025-01-28 16:36:47 UTC


README

Installation

You can install the package via composer:

composer require abenevaut/laravel-discord-client

Add discord service to your config/services.php file:

'discord' => [
    'baseUrl' => 'https://discord.com/api', // Discord API URL
    'debug' => env('BLUESKY_DEBUG', false), // Debug mode
],

Usage

use Abenevaut\DiscordClient\Facades\Discord;

Discord::getClient(): DiscordClient; // Get the Discord client
Discord::countFollowers(string $invitationLink): int; // Get the number of followers of a discord server, invitation link looks like "https://discord.gg/pwwPEXcFfU" (prefer the use link without expiration)