Looking to hire Laravel developers? Try LaraJobs

laravel-discord-client maintained by abenevaut

Description
Laravel Http Client Infrastructure
Last update
2025/01/28 17:36 (dev-master)
License
Links
Downloads
15

Comments
comments powered by Disqus

laravel-discord-client

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)