PHPackages                             reysa/discord-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. reysa/discord-api

ActiveLibrary[API Development](/categories/api)

reysa/discord-api
=================

Discord API helper for Laravel

v1.0.0(5mo ago)00MITPHPPHP &gt;=8.2

Since Nov 30Pushed 5mo agoCompare

[ Source](https://github.com/alirezabehnamnik/laravel-discord-api)[ Packagist](https://packagist.org/packages/reysa/discord-api)[ RSS](/packages/reysa-discord-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Reysa Discord API (v1)
======================

[](#reysa-discord-api-v1)

A small Laravel helper package for working with parts of the Discord HTTP API.

> **Note:** This is version **1** of the package. It does **not** cover all Discord API endpoints yet.
> More endpoints and features will be added in future versions.

Official Discord API documentation:

---

Features (v1)
-------------

[](#features-v1)

Currently supported helpers:

- Get guild invites
- Delete a guild invite
- Get a single message from a channel
- Get a guild member
- Get guild roles
- Give one or multiple roles to a user
- Remove one or multiple roles from a user
- Set a member nickname
- Send a direct message to a user
- Send an embed-style payload to a user
- Send a message/payload to a channel
- Get a single message from a channel
- Get recent messages from a channel
- Edit an existing message’s embeds in a channel

---

Requirements
------------

[](#requirements)

Check `composer.json` for exact constraints, but the package is designed to work with:

- PHP: `>= 8.2`
- Laravel: `7.x` up to `11.x` (via `illuminate/support` `^7.0|^8.0|^9.0|^10.0|^11.0`)

---

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require reysa/discord-api
```

Laravel’s package auto-discovery will automatically register the service provider and facade.

You can also find the package on Packagist:

---

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=discord-api-config
```

This will create `config/discord-api.php` in your Laravel application:

```
