|
|
@ -4,6 +4,8 @@ namespace Darksparrow\DeegraphInteractions\QueryBuilder\PermissionsQuery; |
|
|
|
|
|
|
|
final class PermissionQueryResponse |
|
|
|
{ |
|
|
|
public array $Permissions = []; |
|
|
|
|
|
|
|
public bool $CanAct = false; |
|
|
|
public bool $CanDelete = false; |
|
|
|
public bool $CanRead = false; |
|
|
@ -13,6 +15,8 @@ final class PermissionQueryResponse |
|
|
|
{ |
|
|
|
foreach ($deegraphResponse["@permissions"] as $permission) |
|
|
|
{ |
|
|
|
$this->Permissions[] = $permission; |
|
|
|
|
|
|
|
switch($permission) |
|
|
|
{ |
|
|
|
case "ACT": |
|
|
|