WebSocket Events Documentation
TopPHP
Components



Parts
Webhooks

TopPHP\Components\Bot
P
$id : string
P
$owners : array
P
$bots : Bots
P
$token : string
P
$endpoint : string
P
$fillable : array
P
$needed : array
P
$parent : TopPHP

M
__construct() :
M
stats() : object
M
hasBeenVotedBy() : bool
M
hasBeenVoted() : bool
M
votedBy() : bool
M
votes() : array|NULL
M
updateStats() : void
$id
public string $id;
$owners
public array $owners;
$bots
public Bots $bots;
$token
protected string $token;
$endpoint
protected string $endpoint;
$fillable
protected array $fillable = [
$needed
protected array $needed = [
$parent
protected TopPHP $parent;
__construct()
__construct( object $botdata , TopPHP $parent )
Parameters
$botdata object :
$parent TopPHP :
stats()
public stats( ) : object
hasBeenVotedBy()
public hasBeenVotedBy( string $id ) : bool
Parameters
$id string :
hasBeenVoted()
public hasBeenVoted( string $id ) : bool
Parameters
$id string :
votedBy()
public votedBy( string $id ) : bool
Parameters
$id string :
votes()
public votes( ) : array - NULL
updateStats()
public updateStats( array $body ) : void
Parameters
$body array :


Powered by OxedDocs