From bced6d6717631f223ccf8b0c822544ba857e280f Mon Sep 17 00:00:00 2001 From: Bruno Caitano Date: Sat, 31 Dec 2022 20:17:22 -0400 Subject: [PATCH] fix: send data of event to process --- src/Discord.php | 2 +- src/Event.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.php b/src/Discord.php index 21ad3fe..4a7fe79 100644 --- a/src/Discord.php +++ b/src/Discord.php @@ -24,7 +24,7 @@ class Discord public function __construct(string $token) { - Logger::Info("Starting DiscordPHP 3.0.5"); + Logger::Info("Starting DiscordPHP 3.0.6"); $this->token = $token; diff --git a/src/Event.php b/src/Event.php index cb8cce2..42a06f3 100644 --- a/src/Event.php +++ b/src/Event.php @@ -91,7 +91,7 @@ public function executeEvent(array $event) if (array_key_exists($event["t"], $this->eventsHandler)) { try { - $this->eventsHandler[$event["t"]]->run($event); + $this->eventsHandler[$event["t"]]->run($event["d"]); } catch (Exception $e) { $className = get_class($this->eventsHandler[$event["t"]]);