revolution/discord-manager is a Laravel package for discord manager.
It currently has 3 GitHub stars and 17.036 downloads on Packagist (latest version 5.3.0).
Install it with composer require revolution/discord-manager.
Discover more Laravel packages by revolution
or browse all Laravel packages to compare alternatives.
Last updated
Note Since v5, only Interactions command is provided. Interactions command is webhook-based, it is easy to use in Laravel. v4 still support Gateway API.
composer require revolution/discord-manager
DISCORD_BOT_TOKEN=
# APPLICATION ID
DISCORD_BOT=
# PUBLIC KEY
DISCORD_PUBLIC_KEY=
# GUILD ID
DISCORD_GUILD=
composer remove revolution/discord-manager
config/discord_interactions.phpapp/Discord/ and other files.DISCORD_* in .envphp artisan vendor:publish --tag=discord-interactions-config
INTERACTIONS ENDPOINT URL in Discord's developer portal.https://example/discord/webhook
php artisan discord:make:interaction HelloCommand
You need to define and register the commands you actually use in config/discord_interactions.php.
php artisan discord:interactions:register
php artisan make:listener InteractionsListener
use Revolution\DiscordManager\Events\InteractionsWebhook;
use Revolution\DiscordManager\Facades\DiscordManager;
//
/**
* Handle the event.
*
* @param InteractionsWebhook $event
* @return void
*/
public function handle(InteractionsWebhook $event)
{
DiscordManager::interaction($event->request);
}
app/Discord/.https://github.com/kawax/discord-interactions
MIT