first commit

This commit is contained in:
小喵 2022-07-11 18:09:15 +08:00 committed by Ming Tsay
commit db313f5eef
Signed by: mt
GPG key ID: 2BCF198BD3341FB3
47 changed files with 2006 additions and 0 deletions

27
app/Discord/Token.php Normal file
View file

@ -0,0 +1,27 @@
<?php
namespace MingTsay\Akanyan\Discord;
use stdClass;
class Token extends stdClass
{
public string $access_token;
public string $token_type;
public int $expires_in;
public string $refresh_token;
public string $scope;
public int $timestamp;
public function __construct(stdClass $payload)
{
$this->access_token = $payload->access_token;
$this->token_type = $payload->token_type;
$this->expires_in = $payload->expires_in;
$this->refresh_token = $payload->refresh_token;
$this->scope = $payload->scope;
$this->timestamp = time();
}
}