Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.02 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.02 KB

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

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.