Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit 241f70d

Browse files
committed
Removed DiscordPHP deprecated function usage
1 parent 89ec4f2 commit 241f70d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Discord/Parts/Interaction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @property string $id
2424
* @property string $type
2525
* @property array $data
26-
* @property string $guild_id
26+
* @property string|null $guild_id
2727
* @property string $channel_id
2828
* @property \Discord\Parts\Member\Member|array $member
2929
* @property string $token
@@ -82,7 +82,7 @@ public function __construct($attributes = [], Discord $discord = null, Http $htt
8282
$this->application_id = $application_id;
8383

8484
if (is_null($this->http) && ! is_null($this->discord)) {
85-
$this->http = $this->discord->getHttp();
85+
$this->http = $this->discord->getHttpClient();
8686
}
8787

8888
if (is_null($this->application_id) && ! is_null($this->discord)) {

0 commit comments

Comments
 (0)