maaaathis / discordpermissionconverter
Converts Discord permissions hash to a human readable format.
v1.1.0
2023-05-05 07:02 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: 9.*
README
Easily convert Discord permissions hashes to human-understandable words.
Installation
This libary requires at least PHP 7.4 and PHP Composer installed
composer require maaaathis/discordpermissionconverter
Usage
Get result as a sequential array:
$PermissionConverter = new \Maaaathis\DiscordPermissionConverter\PermissionConverter; $result = $PermissionConverter->convertPermission("551903302016");
or
Get result as a json array:
$PermissionConverter = new \Maaaathis\DiscordPermissionConverter\PermissionConverter; $result = $PermissionConverter->convertPermission("551903302016", true);
Copyright and License
The maaaathis/discordpermissionconverter library is copyright © Mathis and licensed for use under the Apache 2 License (APACHE-2). Please see LICENSE for more information.