From 2a89fe5a473d683d0eb087a0c22dcfc24eedcba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Levi=20He=C3=9Fmann?= Date: Thu, 26 Jan 2023 21:19:00 +0100 Subject: [PATCH] Fixed documentation (#3) --- src/PermissionConverter.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/PermissionConverter.php b/src/PermissionConverter.php index 0649eba..60da646 100644 --- a/src/PermissionConverter.php +++ b/src/PermissionConverter.php @@ -1,12 +1,12 @@ 0x8000000000, "MODERATE_MEMBERS" => 0x10000000000 ); - + /** - * convertPermission - * - * Converts a discord permission hash to a readable array. - * - * @param int $hash The discord permission hash to convert - * - * @return array The converted readable permission array - */ + * convertPermission + * + * Converts a discord permission hash to a readable array. + * + * @param int $hash The discord permission hash to convert + * + * @return array|false|string The converted readable permission array + */ public function convertPermission($hash, $json = false) { if(!isset($hash) | $hash == "") { return "[]";