Skip to content

Commit

Permalink
Fixed documentation (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
toohard2explain authored Jan 26, 2023
1 parent bfe5975 commit 2a89fe5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/PermissionConverter.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php namespace Maaaathis\DiscordPermissionConverter;

/**
* PermissionConverter
*
* This class is used to convert a discord permission hash to a readable array.
*
* @author Maaaathis
*/
* PermissionConverter
*
* This class is used to convert a discord permission hash to a readable array.
*
* @author Maaaathis
*/
class PermissionConverter {

/** @var array $permissions define all discord permissions */
Expand Down Expand Up @@ -53,16 +53,16 @@ class PermissionConverter {
"USE_EMBEDDED_ACTIVITIES" => 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 "[]";
Expand Down

0 comments on commit 2a89fe5

Please sign in to comment.