https://github.com/maaaathis/discordpermissionconverter
Converts Discord permissions hash to human understandable words
https://github.com/maaaathis/discordpermissionconverter
discord permission
Last synced: about 2 months ago
JSON representation
Converts Discord permissions hash to human understandable words
- Host: GitHub
- URL: https://github.com/maaaathis/discordpermissionconverter
- Owner: maaaathis
- License: apache-2.0
- Created: 2023-01-25T22:23:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-14T19:47:39.000Z (8 months ago)
- Last Synced: 2025-03-26T03:33:24.103Z (2 months ago)
- Topics: discord, permission
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discord Permission Converter
Easily convert Discord permissions hashes to human-understandable words.
## Installation
This libary requires at least PHP 7.4 and PHP [Composer][] installed
```bash
composer require maaaathis/discordpermissionconverter
```
## Usage#### Get result as a sequential array:
```php
$PermissionConverter = new \Maaaathis\DiscordPermissionConverter\PermissionConverter;
$result = $PermissionConverter->convertPermission("551903302016");
```
or
#### Get result as a json array:
```php
$PermissionConverter = new \Maaaathis\DiscordPermissionConverter\PermissionConverter;
$result = $PermissionConverter->convertPermission("551903302016", true);
```
## Copyright and LicenseThe maaaathis/discordpermissionconverter library is copyright © [Mathis](https://github.com/Maaaathis) and
licensed for use under the Apache 2 License (APACHE-2). Please see [LICENSE][] for more
information.[composer]: http://getcomposer.org/
[license]: https://github.com/Maaaathis/DiscordPermissionConverter/blob/main/LICENSE